Skip to content

Commit

Permalink
Unify imports in shorthand setter trait
Browse files Browse the repository at this point in the history
  • Loading branch information
romanzipp committed Oct 27, 2023
1 parent 80bd4ba commit 9bfaf0c
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/Services/Traits/ShorthandSetterTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
use romanzipp\Seo\Structs\Meta\Charset;
use romanzipp\Seo\Structs\Meta\CsrfToken;
use romanzipp\Seo\Structs\Meta\Description;
use romanzipp\Seo\Structs\Meta\EmbedX;
use romanzipp\Seo\Structs\Meta\OpenGraph;
use romanzipp\Seo\Structs\Meta\Twitter;
use romanzipp\Seo\Structs\Meta\Viewport;
Expand Down Expand Up @@ -46,7 +47,7 @@ public function title(string $title = null, bool $escape = true): self

$this->addIf(
$config['embedx'] ?? true,
Meta\EmbedX::make()->name('title')->content($title, $escape)
EmbedX::make()->name('title')->content($title, $escape)
);

return $this;
Expand Down Expand Up @@ -81,7 +82,7 @@ public function description(string $description = null, bool $escape = true): se

$this->addIf(
$config['embedx'] ?? true,
Meta\EmbedX::make()->name('description')->content($description, $escape)
EmbedX::make()->name('description')->content($description, $escape)
);

return $this;
Expand Down Expand Up @@ -116,7 +117,7 @@ public function image(string $image = null, bool $escape = true): self

$this->addIf(
$config['embedx'] ?? true,
Meta\EmbedX::make()->name('image')->content($image, $escape)
EmbedX::make()->name('image')->content($image, $escape)
);

return $this;
Expand Down Expand Up @@ -184,7 +185,7 @@ public function og(string $property, $content = null, bool $escape = true): self
public function embedx(string $property, $content = null, bool $escape = true): self
{
return $this->add(
Meta\EmbedX::make()->name($property)->content($content, $escape)
EmbedX::make()->name($property)->content($content, $escape)
);
}

Expand Down

0 comments on commit 9bfaf0c

Please sign in to comment.