@@ -19,11 +19,11 @@ |
||
| 19 | 19 | */ |
| 20 | 20 | |
| 21 | 21 | return [ |
| 22 | - MetaJsonLdContainer::CONTAINER_TYPE . JsonLdService::GENERAL_HANDLE => [ |
|
| 22 | + MetaJsonLdContainer::CONTAINER_TYPE.JsonLdService::GENERAL_HANDLE => [ |
|
| 23 | 23 | 'name' => 'General', |
| 24 | 24 | 'description' => 'JsonLd Tags', |
| 25 | 25 | 'handle' => JsonLdService::GENERAL_HANDLE, |
| 26 | - 'class' => (string)MetaJsonLdContainer::class, |
|
| 26 | + 'class' => (string) MetaJsonLdContainer::class, |
|
| 27 | 27 | 'include' => true, |
| 28 | 28 | 'dependencies' => [ |
| 29 | 29 | ], |
@@ -21,11 +21,11 @@ |
||
| 21 | 21 | */ |
| 22 | 22 | |
| 23 | 23 | return [ |
| 24 | - MetaLinkContainer::CONTAINER_TYPE . LinkService::GENERAL_HANDLE => [ |
|
| 24 | + MetaLinkContainer::CONTAINER_TYPE.LinkService::GENERAL_HANDLE => [ |
|
| 25 | 25 | 'name' => 'General', |
| 26 | 26 | 'description' => 'Link Tags', |
| 27 | 27 | 'handle' => LinkService::GENERAL_HANDLE, |
| 28 | - 'class' => (string)MetaLinkContainer::class, |
|
| 28 | + 'class' => (string) MetaLinkContainer::class, |
|
| 29 | 29 | 'include' => true, |
| 30 | 30 | 'dependencies' => [ |
| 31 | 31 | ], |
@@ -64,7 +64,7 @@ discard block |
||
| 64 | 64 | { |
| 65 | 65 | $baseUrl = UrlHelper::hostInfo(UrlHelper::siteUrl($path)); |
| 66 | 66 | |
| 67 | - return rtrim($baseUrl, '/') . '/' . ltrim($path, '/'); |
|
| 67 | + return rtrim($baseUrl, '/').'/'.ltrim($path, '/'); |
|
| 68 | 68 | } |
| 69 | 69 | |
| 70 | 70 | /** |
@@ -107,7 +107,7 @@ discard block |
||
| 107 | 107 | |
| 108 | 108 | $metaSiteVars = Seomatic::$plugin->metaContainers->metaSiteVars; |
| 109 | 109 | if ($metaSiteVars && !empty($metaSiteVars->siteLinksQueryInput)) { |
| 110 | - $result = 'required name=' . $metaSiteVars->siteLinksQueryInput; |
|
| 110 | + $result = 'required name='.$metaSiteVars->siteLinksQueryInput; |
|
| 111 | 111 | } |
| 112 | 112 | |
| 113 | 113 | return $result; |
@@ -568,8 +568,8 @@ discard block |
||
| 568 | 568 | */ |
| 569 | 569 | public function isInherited(InheritableSettingsModel $settingCollection, $settingName) |
| 570 | 570 | { |
| 571 | - $explicitInherit = array_key_exists($settingName, (array)$settingCollection->inherited); |
|
| 572 | - $explicitOverride = array_key_exists($settingName, (array)$settingCollection->overrides); |
|
| 571 | + $explicitInherit = array_key_exists($settingName, (array) $settingCollection->inherited); |
|
| 572 | + $explicitOverride = array_key_exists($settingName, (array) $settingCollection->overrides); |
|
| 573 | 573 | |
| 574 | 574 | if ($explicitInherit || $explicitOverride) { |
| 575 | 575 | return $explicitInherit && !$explicitOverride; |
@@ -65,7 +65,7 @@ discard block |
||
| 65 | 65 | */ |
| 66 | 66 | public function add($metaItem, string $handle = self::GENERAL_HANDLE) |
| 67 | 67 | { |
| 68 | - $key = MetaTitleContainer::CONTAINER_TYPE . $handle; |
|
| 68 | + $key = MetaTitleContainer::CONTAINER_TYPE.$handle; |
|
| 69 | 69 | Seomatic::$plugin->metaContainers->addToMetaContainer($metaItem, $key); |
| 70 | 70 | |
| 71 | 71 | /** @var MetaTitle $metaItem */ |
@@ -89,7 +89,7 @@ discard block |
||
| 89 | 89 | */ |
| 90 | 90 | public function container(string $handle = self::GENERAL_HANDLE) |
| 91 | 91 | { |
| 92 | - $key = MetaTitleContainer::CONTAINER_TYPE . $handle; |
|
| 92 | + $key = MetaTitleContainer::CONTAINER_TYPE.$handle; |
|
| 93 | 93 | |
| 94 | 94 | return Seomatic::$plugin->metaContainers->getMetaContainer($key); |
| 95 | 95 | } |
@@ -76,7 +76,7 @@ discard block |
||
| 76 | 76 | */ |
| 77 | 77 | public function add($metaItem, string $handle = self::GENERAL_HANDLE) |
| 78 | 78 | { |
| 79 | - $key = MetaTagContainer::CONTAINER_TYPE . $handle; |
|
| 79 | + $key = MetaTagContainer::CONTAINER_TYPE.$handle; |
|
| 80 | 80 | Seomatic::$plugin->metaContainers->addToMetaContainer($metaItem, $key); |
| 81 | 81 | |
| 82 | 82 | /** @var MetaTag $metaItem */ |
@@ -100,7 +100,7 @@ discard block |
||
| 100 | 100 | */ |
| 101 | 101 | public function container(string $handle = self::GENERAL_HANDLE) |
| 102 | 102 | { |
| 103 | - $key = MetaTagContainer::CONTAINER_TYPE . $handle; |
|
| 103 | + $key = MetaTagContainer::CONTAINER_TYPE.$handle; |
|
| 104 | 104 | |
| 105 | 105 | return Seomatic::$plugin->metaContainers->getMetaContainer($key); |
| 106 | 106 | } |
@@ -65,7 +65,7 @@ discard block |
||
| 65 | 65 | */ |
| 66 | 66 | public function add($metaItem, string $handle = self::GENERAL_HANDLE) |
| 67 | 67 | { |
| 68 | - $key = MetaScriptContainer::CONTAINER_TYPE . $handle; |
|
| 68 | + $key = MetaScriptContainer::CONTAINER_TYPE.$handle; |
|
| 69 | 69 | Seomatic::$plugin->metaContainers->addToMetaContainer($metaItem, $key); |
| 70 | 70 | |
| 71 | 71 | /** @var MetaScript $metaItem */ |
@@ -89,7 +89,7 @@ discard block |
||
| 89 | 89 | */ |
| 90 | 90 | public function container(string $handle = self::GENERAL_HANDLE) |
| 91 | 91 | { |
| 92 | - $key = MetaScriptContainer::CONTAINER_TYPE . $handle; |
|
| 92 | + $key = MetaScriptContainer::CONTAINER_TYPE.$handle; |
|
| 93 | 93 | |
| 94 | 94 | return Seomatic::$plugin->metaContainers->getMetaContainer($key); |
| 95 | 95 | } |
@@ -72,7 +72,7 @@ discard block |
||
| 72 | 72 | */ |
| 73 | 73 | public function add($metaItem, string $handle = self::GENERAL_HANDLE): MetaJsonLd |
| 74 | 74 | { |
| 75 | - $key = MetaJsonLdContainer::CONTAINER_TYPE . $handle; |
|
| 75 | + $key = MetaJsonLdContainer::CONTAINER_TYPE.$handle; |
|
| 76 | 76 | Seomatic::$plugin->metaContainers->addToMetaContainer($metaItem, $key); |
| 77 | 77 | |
| 78 | 78 | /** @var MetaJsonLd $metaItem */ |
@@ -96,7 +96,7 @@ discard block |
||
| 96 | 96 | */ |
| 97 | 97 | public function container(string $handle = self::GENERAL_HANDLE) |
| 98 | 98 | { |
| 99 | - $key = MetaJsonLdContainer::CONTAINER_TYPE . $handle; |
|
| 99 | + $key = MetaJsonLdContainer::CONTAINER_TYPE.$handle; |
|
| 100 | 100 | |
| 101 | 101 | return Seomatic::$plugin->metaContainers->getMetaContainer($key); |
| 102 | 102 | } |
@@ -75,7 +75,7 @@ discard block |
||
| 75 | 75 | */ |
| 76 | 76 | public function add($metaItem, string $handle = self::GENERAL_HANDLE) |
| 77 | 77 | { |
| 78 | - $key = MetaLinkContainer::CONTAINER_TYPE . $handle; |
|
| 78 | + $key = MetaLinkContainer::CONTAINER_TYPE.$handle; |
|
| 79 | 79 | Seomatic::$plugin->metaContainers->addToMetaContainer($metaItem, $key); |
| 80 | 80 | |
| 81 | 81 | /** @var MetaLink $metaItem */ |
@@ -99,7 +99,7 @@ discard block |
||
| 99 | 99 | */ |
| 100 | 100 | public function container(string $handle = self::GENERAL_HANDLE) |
| 101 | 101 | { |
| 102 | - $key = MetaLinkContainer::CONTAINER_TYPE . $handle; |
|
| 102 | + $key = MetaLinkContainer::CONTAINER_TYPE.$handle; |
|
| 103 | 103 | |
| 104 | 104 | return Seomatic::$plugin->metaContainers->getMetaContainer($key); |
| 105 | 105 | } |
@@ -104,7 +104,7 @@ discard block |
||
| 104 | 104 | Event::on( |
| 105 | 105 | ProductTypes::class, |
| 106 | 106 | ProductTypes::EVENT_AFTER_SAVE_PRODUCTTYPE, |
| 107 | - function (ProductTypeEvent $event) { |
|
| 107 | + function(ProductTypeEvent $event) { |
|
| 108 | 108 | Craft::debug( |
| 109 | 109 | 'ProductTypes::EVENT_AFTER_SAVE_PRODUCTTYPE', |
| 110 | 110 | __METHOD__ |
@@ -119,7 +119,7 @@ discard block |
||
| 119 | 119 | Event::on( |
| 120 | 120 | ProductTypes::class, |
| 121 | 121 | ProductTypes::EVENT_AFTER_SAVE_PRODUCTTYPE, |
| 122 | - static function (ProductTypeEvent $event) { |
|
| 122 | + static function(ProductTypeEvent $event) { |
|
| 123 | 123 | Craft::debug( |
| 124 | 124 | 'ProductTypes::EVENT_AFTER_SAVE_PRODUCTTYPE', |
| 125 | 125 | __METHOD__ |
@@ -175,7 +175,7 @@ discard block |
||
| 175 | 175 | // Commerce Product Types sidebar |
| 176 | 176 | $commerce = CommercePlugin::getInstance(); |
| 177 | 177 | if ($commerce !== null) { |
| 178 | - Seomatic::$view->hook('cp.commerce.product.edit.details', static function (&$context) { |
|
| 178 | + Seomatic::$view->hook('cp.commerce.product.edit.details', static function(&$context) { |
|
| 179 | 179 | $html = ''; |
| 180 | 180 | Seomatic::$view->registerAssetBundle(SeomaticAsset::class); |
| 181 | 181 | /** @var $product Product */ |
@@ -382,7 +382,7 @@ discard block |
||
| 382 | 382 | ConfigHelper::getConfigFromFile(self::configFilePath()), |
| 383 | 383 | [ |
| 384 | 384 | 'sourceId' => $sourceModel->id, |
| 385 | - 'sourceName' => (string)$sourceModel->name, |
|
| 385 | + 'sourceName' => (string) $sourceModel->name, |
|
| 386 | 386 | 'sourceHandle' => $sourceModel->handle, |
| 387 | 387 | ] |
| 388 | 388 | ); |