From 9bfaf0c1413a561df7a6b858e4c90cd15878c789 Mon Sep 17 00:00:00 2001 From: Roman Zipp Date: Fri, 27 Oct 2023 21:05:50 +0200 Subject: [PATCH] Unify imports in shorthand setter trait --- src/Services/Traits/ShorthandSetterTrait.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/Services/Traits/ShorthandSetterTrait.php b/src/Services/Traits/ShorthandSetterTrait.php index 9b6d6e7..23c5b2f 100644 --- a/src/Services/Traits/ShorthandSetterTrait.php +++ b/src/Services/Traits/ShorthandSetterTrait.php @@ -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; @@ -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; @@ -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; @@ -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; @@ -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) ); }