diff --git a/README.md b/README.md index 71a7b1a..de652c4 100644 --- a/README.md +++ b/README.md @@ -140,8 +140,8 @@ To add more tags to the document head, you can use the `tag()` and `rawTag()` me ```php seo()->tag('fb:image', asset('foo')); -seo()->rawTag(''); -seo()->rawTag('fb_url', ''); // Keyed, allows overrides later on +seo()->rawTag(''); +seo()->rawTag('fb_url', ''); // Keyed, allows overrides later on ``` ### Canonical URL diff --git a/resources/views/components/extensions/twitter.blade.php b/resources/views/components/extensions/twitter.blade.php index 661ddb4..2adcf5a 100644 --- a/resources/views/components/extensions/twitter.blade.php +++ b/resources/views/components/extensions/twitter.blade.php @@ -1,6 +1,6 @@ -@if(seo('twitter.creator')) @endif -@if(seo('twitter.site')) @endif -@if(seo('twitter.title')) @endif -@if(seo('twitter.description')) @endif -@if(seo('twitter.image')) @endif +@if(seo('twitter.creator')) @endif +@if(seo('twitter.site')) @endif +@if(seo('twitter.title')) @endif +@if(seo('twitter.description')) @endif +@if(seo('twitter.image')) @endif diff --git a/src/SEOManager.php b/src/SEOManager.php index 2cfd4c4..ce2df3a 100644 --- a/src/SEOManager.php +++ b/src/SEOManager.php @@ -264,7 +264,7 @@ public function tag(string $property, string $content): static { $content = e($content); - $this->rawTag("meta.{$property}", ""); + $this->rawTag("meta.{$property}", ""); return $this; } diff --git a/tests/Pest/ExtensionTest.php b/tests/Pest/ExtensionTest.php index caefdba..22be51a 100644 --- a/tests/Pest/ExtensionTest.php +++ b/tests/Pest/ExtensionTest.php @@ -40,7 +40,7 @@ seo()->facebookTitle('abc'); - expect(meta())->toContain(''); + expect(meta())->toContain(''); }); test('twitter falls back to the default values', function () { @@ -56,7 +56,7 @@ expect(seo('twitter.description'))->toBe('bar'); expect(seo('description'))->toBe('baz'); - expect(meta())->toContain(''); + expect(meta())->toContain(''); }); test('extensions are automatically enabled when values for them are set', function () { diff --git a/tests/Pest/ManagerTest.php b/tests/Pest/ManagerTest.php index aa9f25b..a78b165 100644 --- a/tests/Pest/ManagerTest.php +++ b/tests/Pest/ManagerTest.php @@ -86,7 +86,7 @@ test('meta tags can be added to the template', function () { seo()->tag('fb:image', 'foo'); - expect(meta())->toContain(''); + expect(meta())->toContain(''); }); test('raw tags can be added to the template', function () { @@ -114,8 +114,8 @@ seo()->withUrl(); expect(meta()) - ->toContain('') - ->toContain(''); + ->toContain('') + ->toContain(''); }); test('canonical url can be changed', function () { @@ -124,8 +124,8 @@ seo()->url('http://foo.com/bar'); expect(meta()) - ->toContain('') - ->toContain(''); + ->toContain('') + ->toContain(''); }); test('og:title can be overridden using a tag', function () { @@ -134,16 +134,16 @@ expect(meta()) ->toContain('foo') - ->toContain(''); + ->toContain(''); }); test('type can be overridden using the type method', function () { - expect(meta())->toContain(''); // default + expect(meta())->toContain(''); // default seo()->type('foo'); expect(meta()) - ->toContain('') // overridden + ->toContain('') // overridden ->not()->toContain('website'); }); @@ -155,5 +155,5 @@ test('og:locale can be added to the template', function () { seo()->locale('de_DE'); - expect(meta())->toContain(''); + expect(meta())->toContain(''); }); diff --git a/tests/Pest/SanitizationTest.php b/tests/Pest/SanitizationTest.php index b1daa82..b2b420f 100644 --- a/tests/Pest/SanitizationTest.php +++ b/tests/Pest/SanitizationTest.php @@ -13,8 +13,8 @@ expect($meta)->not()->toContain('content="Testing string " with several \' XSS characters " . \' ."'); expect($meta)->not()->toContain("content=\"{$unsanitizedContent}\""); - expect($meta)->toContain(""); - expect($meta)->toContain(""); + expect($meta)->toContain(""); + expect($meta)->toContain(""); })->with([ ['site', 'og:site_name'], ['url', 'og:url'], @@ -37,8 +37,8 @@ expect($meta)->not()->toContain('content="Testing string " with several \' XSS characters " . \' ."'); expect($meta)->not()->toContain("content=\"{$unsanitizedContent}\""); - expect($meta)->toContain(""); - expect($meta)->toContain(""); + expect($meta)->toContain(""); + expect($meta)->toContain(""); })->with([ ['twitterCreator', 'twitter:creator'], ['twitterSite', 'twitter:site'], @@ -65,8 +65,8 @@ expect($meta)->toContain("{$sanitizedContent}"); expect($meta)->toContain("Testing string " with several ' XSS characters </title> " . ' ."); - expect($meta)->toContain(""); - expect($meta)->toContain(""); + expect($meta)->toContain(""); + expect($meta)->toContain(""); }); test('seo blade directive calls are sanitized', function () { diff --git a/tests/views/components/facebook.blade.php b/tests/views/components/facebook.blade.php index 170548c..0333ed2 100644 --- a/tests/views/components/facebook.blade.php +++ b/tests/views/components/facebook.blade.php @@ -1 +1 @@ - +