@@ -22,7 +22,7 @@ |
||
| 22 | 22 | 'name' => 'Frontend Templates', |
| 23 | 23 | 'description' => 'Templates that are rendered on the frontend', |
| 24 | 24 | 'handle' => FrontendTemplates::FRONTENDTEMPLATES_CONTAINER, |
| 25 | - 'class' => (string)FrontendTemplateContainer::class, |
|
| 25 | + 'class' => (string) FrontendTemplateContainer::class, |
|
| 26 | 26 | 'include' => true, |
| 27 | 27 | 'data' => [ |
| 28 | 28 | FrontendTemplates::HUMANS_TXT_HANDLE => [ |
@@ -24,7 +24,7 @@ discard block |
||
| 24 | 24 | 'name' => 'General', |
| 25 | 25 | 'description' => 'General Meta Tags', |
| 26 | 26 | 'handle' => TagService::GENERAL_HANDLE, |
| 27 | - 'class' => (string)MetaTagContainer::class, |
|
| 27 | + 'class' => (string) MetaTagContainer::class, |
|
| 28 | 28 | 'include' => true, |
| 29 | 29 | 'dependencies' => [ |
| 30 | 30 | ], |
@@ -80,7 +80,7 @@ discard block |
||
| 80 | 80 | 'name' => 'Facebook', |
| 81 | 81 | 'description' => 'Facebook OpenGraph Meta Tags', |
| 82 | 82 | 'handle' => TagService::FACEBOOK_HANDLE, |
| 83 | - 'class' => (string)MetaTagContainer::class, |
|
| 83 | + 'class' => (string) MetaTagContainer::class, |
|
| 84 | 84 | 'include' => true, |
| 85 | 85 | 'dependencies' => [ |
| 86 | 86 | ], |
@@ -195,7 +195,7 @@ discard block |
||
| 195 | 195 | 'description' => 'Twitter Card Meta Tags', |
| 196 | 196 | 'handle' => TagService::TWITTER_HANDLE, |
| 197 | 197 | 'include' => true, |
| 198 | - 'class' => (string)MetaTagContainer::class, |
|
| 198 | + 'class' => (string) MetaTagContainer::class, |
|
| 199 | 199 | 'dependencies' => [ |
| 200 | 200 | Dependency::SITE_DEPENDENCY => ['twitterHandle'], |
| 201 | 201 | ], |
@@ -278,7 +278,7 @@ discard block |
||
| 278 | 278 | 'name' => 'Miscellaneous', |
| 279 | 279 | 'description' => 'Miscellaneous Meta Tags', |
| 280 | 280 | 'handle' => TagService::MISC_HANDLE, |
| 281 | - 'class' => (string)MetaTagContainer::class, |
|
| 281 | + 'class' => (string) MetaTagContainer::class, |
|
| 282 | 282 | 'include' => true, |
| 283 | 283 | 'dependencies' => [ |
| 284 | 284 | ], |
@@ -26,7 +26,7 @@ discard block |
||
| 26 | 26 | 'name' => 'General', |
| 27 | 27 | 'description' => 'Script Tags', |
| 28 | 28 | 'handle' => ScriptService::GENERAL_HANDLE, |
| 29 | - 'class' => (string)MetaScriptContainer::class, |
|
| 29 | + 'class' => (string) MetaScriptContainer::class, |
|
| 30 | 30 | 'include' => true, |
| 31 | 31 | 'dependencies' => [ |
| 32 | 32 | ], |
@@ -197,7 +197,7 @@ discard block |
||
| 197 | 197 | 'instructions' => 'The name to use for the JavaScript DataLayer variable. The value of this variable will be set to the `dataLayer` Twig template variable.', |
| 198 | 198 | 'type' => 'string', |
| 199 | 199 | 'value' => 'dl', |
| 200 | - ], 'googleTagManagerUrl' => [ |
|
| 200 | + ], 'googleTagManagerUrl' => [ |
|
| 201 | 201 | 'title' => 'Google Tag Manager Script URL', |
| 202 | 202 | 'instructions' => 'The URL to the Google Tag Manager script. Normally this should not be changed, unless you locally cache it.', |
| 203 | 203 | 'type' => 'string', |
@@ -68,7 +68,7 @@ |
||
| 68 | 68 | if ($shouldRender) { |
| 69 | 69 | if (!empty($data['content'])) { |
| 70 | 70 | // Truncate the Description tag content |
| 71 | - $data['content'] = (string)Stringy::create($data['content'])->safeTruncate( |
|
| 71 | + $data['content'] = (string) Stringy::create($data['content'])->safeTruncate( |
|
| 72 | 72 | Seomatic::$settings->maxDescriptionLength, |
| 73 | 73 | '…' |
| 74 | 74 | ); |
@@ -68,7 +68,7 @@ |
||
| 68 | 68 | if ($shouldRender) { |
| 69 | 69 | if (!empty($data['content'])) { |
| 70 | 70 | // Truncate the Description tag content |
| 71 | - $data['content'] = (string)Stringy::create($data['content'])->safeTruncate( |
|
| 71 | + $data['content'] = (string) Stringy::create($data['content'])->safeTruncate( |
|
| 72 | 72 | 200, |
| 73 | 73 | '…' |
| 74 | 74 | ); |
@@ -128,7 +128,7 @@ |
||
| 128 | 128 | } |
| 129 | 129 | $lengthAdjust = mb_strlen($prefix.$suffix); |
| 130 | 130 | // Truncate the og:title tag content |
| 131 | - $data['content'] = (string)Stringy::create($data['content'])->safeTruncate( |
|
| 131 | + $data['content'] = (string) Stringy::create($data['content'])->safeTruncate( |
|
| 132 | 132 | Seomatic::$settings->maxTitleLength - $lengthAdjust, |
| 133 | 133 | '…' |
| 134 | 134 | ); |
@@ -68,7 +68,7 @@ |
||
| 68 | 68 | if ($shouldRender) { |
| 69 | 69 | if (!empty($data['content'])) { |
| 70 | 70 | // Truncate the Description tag content |
| 71 | - $data['content'] = (string)Stringy::create($data['content'])->safeTruncate( |
|
| 71 | + $data['content'] = (string) Stringy::create($data['content'])->safeTruncate( |
|
| 72 | 72 | 300, |
| 73 | 73 | '…' |
| 74 | 74 | ); |
@@ -130,7 +130,7 @@ |
||
| 130 | 130 | } |
| 131 | 131 | $lengthAdjust = mb_strlen($prefix.$suffix); |
| 132 | 132 | // Truncate the twitter:title tag content |
| 133 | - $data['content'] = (string)Stringy::create($data['content'])->safeTruncate( |
|
| 133 | + $data['content'] = (string) Stringy::create($data['content'])->safeTruncate( |
|
| 134 | 134 | Seomatic::$settings->maxTitleLength - $lengthAdjust, |
| 135 | 135 | '…' |
| 136 | 136 | ); |
@@ -127,7 +127,7 @@ |
||
| 127 | 127 | ], |
| 128 | 128 | ]); |
| 129 | 129 | |
| 130 | - return $cache->getOrSet($this::CACHE_KEY.$groupId.self::CUSTOM_SCOPE.$handle.$siteId, function () use ( |
|
| 130 | + return $cache->getOrSet($this::CACHE_KEY.$groupId.self::CUSTOM_SCOPE.$handle.$siteId, function() use ( |
|
| 131 | 131 | $handle, |
| 132 | 132 | $siteId |
| 133 | 133 | ) { |