@@ -109,7 +109,7 @@ discard block |
||
109 | 109 | Event::on( |
110 | 110 | Sections::class, |
111 | 111 | Sections::EVENT_AFTER_SAVE_SECTION, |
112 | - function (SectionEvent $event) { |
|
112 | + function(SectionEvent $event) { |
|
113 | 113 | Craft::debug( |
114 | 114 | 'Sections::EVENT_AFTER_SAVE_SECTION', |
115 | 115 | __METHOD__ |
@@ -132,7 +132,7 @@ discard block |
||
132 | 132 | Event::on( |
133 | 133 | Sections::class, |
134 | 134 | Sections::EVENT_AFTER_DELETE_SECTION, |
135 | - function (SectionEvent $event) { |
|
135 | + function(SectionEvent $event) { |
|
136 | 136 | Craft::debug( |
137 | 137 | 'Sections::EVENT_AFTER_DELETE_SECTION', |
138 | 138 | __METHOD__ |
@@ -160,7 +160,7 @@ discard block |
||
160 | 160 | // Install only for non-console Control Panel requests |
161 | 161 | if ($request->getIsCpRequest() && !$request->getIsConsoleRequest()) { |
162 | 162 | // Entries sidebar |
163 | - Seomatic::$view->hook('cp.entries.edit.details', function (&$context) { |
|
163 | + Seomatic::$view->hook('cp.entries.edit.details', function(&$context) { |
|
164 | 164 | $html = ''; |
165 | 165 | Seomatic::$view->registerAssetBundle(SeomaticAsset::class); |
166 | 166 | /** @var $entry Entry */ |
@@ -342,7 +342,7 @@ discard block |
||
342 | 342 | ConfigHelper::getConfigFromFile(self::configFilePath()), |
343 | 343 | [ |
344 | 344 | 'sourceId' => $sourceModel->id, |
345 | - 'sourceName' => (string)$sourceModel->name, |
|
345 | + 'sourceName' => (string) $sourceModel->name, |
|
346 | 346 | 'sourceHandle' => $sourceModel->handle, |
347 | 347 | 'sourceType' => $sourceModel->type, |
348 | 348 | ] |
@@ -107,7 +107,7 @@ discard block |
||
107 | 107 | BaseEvent::on( |
108 | 108 | CalendarsService::class, |
109 | 109 | CalendarsService::EVENT_AFTER_SAVE, |
110 | - function (SaveModelEvent $event) { |
|
110 | + function(SaveModelEvent $event) { |
|
111 | 111 | Craft::debug( |
112 | 112 | 'CalendarsService::EVENT_AFTER_SAVE', |
113 | 113 | __METHOD__ |
@@ -132,7 +132,7 @@ discard block |
||
132 | 132 | BaseEvent::on( |
133 | 133 | CalendarsService::class, |
134 | 134 | CalendarsService::EVENT_AFTER_DELETE, |
135 | - function (DeleteModelEvent $event) { |
|
135 | + function(DeleteModelEvent $event) { |
|
136 | 136 | Craft::debug( |
137 | 137 | 'CalendarsService::EVENT_AFTER_DELETE', |
138 | 138 | __METHOD__ |
@@ -162,7 +162,7 @@ discard block |
||
162 | 162 | // Install only for non-console Control Panel requests |
163 | 163 | if ($request->getIsCpRequest() && !$request->getIsConsoleRequest()) { |
164 | 164 | // Events sidebar |
165 | - Seomatic::$view->hook('cp.solspace.calendar.events.edit.details', function (&$context) { |
|
165 | + Seomatic::$view->hook('cp.solspace.calendar.events.edit.details', function(&$context) { |
|
166 | 166 | $html = ''; |
167 | 167 | Seomatic::$view->registerAssetBundle(SeomaticAsset::class); |
168 | 168 | /** @var Event $event */ |
@@ -358,7 +358,7 @@ discard block |
||
358 | 358 | ConfigHelper::getConfigFromFile(self::configFilePath()), |
359 | 359 | [ |
360 | 360 | 'sourceId' => $sourceModel->id, |
361 | - 'sourceName' => (string)$sourceModel->name, |
|
361 | + 'sourceName' => (string) $sourceModel->name, |
|
362 | 362 | 'sourceHandle' => $sourceModel->handle, |
363 | 363 | ] |
364 | 364 | ); |
@@ -107,7 +107,7 @@ discard block |
||
107 | 107 | Event::on( |
108 | 108 | ProductTypes::class, |
109 | 109 | ProductTypes::EVENT_AFTER_SAVE_PRODUCTTYPE, |
110 | - function (ProductTypeEvent $event) { |
|
110 | + function(ProductTypeEvent $event) { |
|
111 | 111 | Craft::debug( |
112 | 112 | 'ProductTypes::EVENT_AFTER_SAVE_PRODUCTTYPE', |
113 | 113 | __METHOD__ |
@@ -163,7 +163,7 @@ discard block |
||
163 | 163 | // Commerce Product Types sidebar |
164 | 164 | $commerce = CommercePlugin::getInstance(); |
165 | 165 | if ($commerce !== null) { |
166 | - Seomatic::$view->hook('cp.commerce.product.edit.details', function (&$context) { |
|
166 | + Seomatic::$view->hook('cp.commerce.product.edit.details', function(&$context) { |
|
167 | 167 | $html = ''; |
168 | 168 | Seomatic::$view->registerAssetBundle(SeomaticAsset::class); |
169 | 169 | /** @var $product Product */ |
@@ -359,7 +359,7 @@ discard block |
||
359 | 359 | ConfigHelper::getConfigFromFile(self::configFilePath()), |
360 | 360 | [ |
361 | 361 | 'sourceId' => $sourceModel->id, |
362 | - 'sourceName' => (string)$sourceModel->name, |
|
362 | + 'sourceName' => (string) $sourceModel->name, |
|
363 | 363 | 'sourceHandle' => $sourceModel->handle, |
364 | 364 | ] |
365 | 365 | ); |
@@ -106,7 +106,7 @@ discard block |
||
106 | 106 | Event::on( |
107 | 107 | Categories::class, |
108 | 108 | Categories::EVENT_AFTER_SAVE_GROUP, |
109 | - function (CategoryGroupEvent $event) { |
|
109 | + function(CategoryGroupEvent $event) { |
|
110 | 110 | Craft::debug( |
111 | 111 | 'Categories::EVENT_AFTER_SAVE_GROUP', |
112 | 112 | __METHOD__ |
@@ -129,7 +129,7 @@ discard block |
||
129 | 129 | Event::on( |
130 | 130 | Categories::class, |
131 | 131 | Categories::EVENT_AFTER_DELETE_GROUP, |
132 | - function (CategoryGroupEvent $event) { |
|
132 | + function(CategoryGroupEvent $event) { |
|
133 | 133 | Craft::debug( |
134 | 134 | 'Categories::EVENT_AFTER_DELETE_GROUP', |
135 | 135 | __METHOD__ |
@@ -157,7 +157,7 @@ discard block |
||
157 | 157 | // Install only for non-console Control Panel requests |
158 | 158 | if ($request->getIsCpRequest() && !$request->getIsConsoleRequest()) { |
159 | 159 | // Category Groups sidebar |
160 | - Seomatic::$view->hook('cp.categories.edit.details', function (&$context) { |
|
160 | + Seomatic::$view->hook('cp.categories.edit.details', function(&$context) { |
|
161 | 161 | $html = ''; |
162 | 162 | Seomatic::$view->registerAssetBundle(SeomaticAsset::class); |
163 | 163 | /** @var $category Category */ |
@@ -340,7 +340,7 @@ discard block |
||
340 | 340 | ConfigHelper::getConfigFromFile(self::configFilePath()), |
341 | 341 | [ |
342 | 342 | 'sourceId' => $sourceModel->id, |
343 | - 'sourceName' => (string)$sourceModel->name, |
|
343 | + 'sourceName' => (string) $sourceModel->name, |
|
344 | 344 | 'sourceHandle' => $sourceModel->handle, |
345 | 345 | ] |
346 | 346 | ); |
@@ -293,7 +293,7 @@ discard block |
||
293 | 293 | /** @var Section|CategoryGroup|ProductType $sourceModel */ |
294 | 294 | $sourceModel = $seoElement::sourceModelFromId($sourceId); |
295 | 295 | if ($sourceModel !== null) { |
296 | - $metaBundle->sourceName = (string)$sourceModel->name; |
|
296 | + $metaBundle->sourceName = (string) $sourceModel->name; |
|
297 | 297 | $metaBundle->sourceHandle = $sourceModel->handle; |
298 | 298 | } |
299 | 299 | } |
@@ -731,7 +731,7 @@ discard block |
||
731 | 731 | $metaBundleDefaults = ArrayHelper::merge( |
732 | 732 | $seoElement::metaBundleConfig($sourceModel), |
733 | 733 | [ |
734 | - 'sourceTemplate' => (string)$siteSetting->template, |
|
734 | + 'sourceTemplate' => (string) $siteSetting->template, |
|
735 | 735 | 'sourceSiteId' => $siteSetting->siteId, |
736 | 736 | 'sourceAltSiteSettings' => $siteSettingsArray, |
737 | 737 | 'sourceDateUpdated' => $dateUpdated, |