Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
ralphjsmit committed May 18, 2022
2 parents f8664b2 + 50c5b60 commit f93d512
Show file tree
Hide file tree
Showing 10 changed files with 25 additions and 12 deletions.
16 changes: 8 additions & 8 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ tab_width = 4
ij_continuation_indent_size = 8
ij_formatter_off_tag = @formatter:off
ij_formatter_on_tag = @formatter:on
ij_formatter_tags_enabled = false
ij_formatter_tags_enabled = true
ij_smart_tabs = false
ij_visual_guides = none
ij_wrap_on_typing = true
Expand Down Expand Up @@ -339,7 +339,7 @@ ij_shell_redirect_followed_by_space = false
ij_shell_switch_cases_indented = false
ij_shell_use_unix_line_separator = true

[{*.cjs,*.js}]
[{*.browsersync,*.cjs,*.js}]
ij_continuation_indent_size = 4
ij_smart_tabs = true
ij_javascript_align_imports = false
Expand Down Expand Up @@ -604,7 +604,7 @@ ij_coffeescript_use_public_modifier = false
ij_coffeescript_use_semicolon_after_statement = false
ij_coffeescript_var_declaration_wrap = normal

[{*.ctp,*.hphp,*.inc,*.module,*.php,*.php4,*.php5,*.phtml,FileTypeNotFound,php}]
[{*.ctp,*.hphp,*.inc,*.module,*.php,*.php.stub,*.php4,*.php5,*.phtml,FileTypeNotFound,php}]
max_line_length = 999
ij_continuation_indent_size = 4
ij_wrap_on_typing = false
Expand All @@ -622,7 +622,7 @@ ij_php_align_multiline_for = true
ij_php_align_multiline_parameters = false
ij_php_align_multiline_parameters_in_calls = false
ij_php_align_multiline_ternary_operation = true
ij_php_align_named_arguments = true
ij_php_align_named_arguments = false
ij_php_align_phpdoc_comments = false
ij_php_align_phpdoc_param_names = false
ij_php_anonymous_brace_style = next_line
Expand All @@ -638,11 +638,11 @@ ij_php_binary_operation_wrap = off
ij_php_blank_lines_after_class_header = 0
ij_php_blank_lines_after_function = 1
ij_php_blank_lines_after_imports = 1
ij_php_blank_lines_after_opening_tag = 0
ij_php_blank_lines_after_opening_tag = 1
ij_php_blank_lines_after_package = 1
ij_php_blank_lines_around_class = 1
ij_php_blank_lines_around_constants = 0
ij_php_blank_lines_around_field = 0
ij_php_blank_lines_around_field = 1
ij_php_blank_lines_around_method = 1
ij_php_blank_lines_before_class_end = 0
ij_php_blank_lines_before_imports = 1
Expand Down Expand Up @@ -826,8 +826,8 @@ ij_php_version_weight = 28
ij_php_while_brace_force = never
ij_php_while_on_new_line = false

[{*.har,*.jsb2,*.jsb3,*.json,.babelrc,.eslintrc,.stylelintrc,bowerrc,composer.lock,jest.config}]
indent_size = 4
[{*.har,*.jsb2,*.jsb3,*.json,.babelrc,.eslintrc,.prettierrc,.stylelintrc,bowerrc,composer.lock,jest.config}]
ij_continuation_indent_size = 4
ij_json_keep_blank_lines_in_code = 0
ij_json_keep_indents_on_empty_lines = false
ij_json_keep_line_breaks = true
Expand Down
1 change: 1 addition & 0 deletions src/SEOManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
class SEOManager
{
protected array $tagTransformers = [];

protected array $SEODataTransformers = [];

public function SEODataTransformer(Closure $transformer): static
Expand Down
8 changes: 8 additions & 0 deletions src/Schema/ArticleSchema.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,21 @@
class ArticleSchema extends Schema
{
public array $authors = [];

public ?Carbon $datePublished = null;

public ?Carbon $dateModified = null;

public ?string $description = null;

public ?string $headline = null;

public ?string $image = null;

public string $type = 'Article';

public ?string $url = null;

public ?string $articleBody = null;

public function addAuthor(string $authorName): static
Expand Down
1 change: 1 addition & 0 deletions src/Schema/Schema.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ abstract class Schema extends Tag
public string $context = 'https://schema.org/';

public Collection $markup;

public array $markupTransformers = [];

public string $tag = 'script';
Expand Down
1 change: 1 addition & 0 deletions src/Support/ImageMeta.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
class ImageMeta
{
public ?int $width = null;

public ?int $height = null;

public function __construct(string $path)
Expand Down
2 changes: 2 additions & 0 deletions src/Support/SitemapTag.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
class SitemapTag extends LinkTag
{
public string $rel = 'sitemap';

public string $type = 'application/xml';

public string $title = 'Sitemap';

public function __construct(
Expand Down
2 changes: 1 addition & 1 deletion src/Tags/AuthorTag.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public static function initialize(?SEOData $SEOData): MetaTag|null
}

return new MetaTag(
name : 'author',
name: 'author',
content: trim($author)
);
}
Expand Down
2 changes: 1 addition & 1 deletion src/Tags/DescriptionTag.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public static function initialize(?SEOData $SEOData): MetaTag|null
}

return new MetaTag(
name : 'description',
name: 'description',
content: trim($description)
);
}
Expand Down
2 changes: 1 addition & 1 deletion src/Tags/FaviconTag.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public static function initialize(?SEOData $SEOData): static|null
}

return new static(
rel : 'shortcut icon',
rel: 'shortcut icon',
href: $favicon,
);
}
Expand Down
2 changes: 1 addition & 1 deletion src/Tags/ImageTag.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public static function initialize(?SEOData $SEOData): MetaTag|null
}

return new MetaTag(
name : 'image',
name: 'image',
content: trim($image)
);
}
Expand Down

0 comments on commit f93d512

Please sign in to comment.