@@ -106,7 +106,7 @@ discard block |
||
106 | 106 | Event::on( |
107 | 107 | ProductTypes::class, |
108 | 108 | ProductTypes::EVENT_AFTER_SAVE_PRODUCTTYPE, |
109 | - function (ProductTypeEvent $event) { |
|
109 | + function(ProductTypeEvent $event) { |
|
110 | 110 | Craft::debug( |
111 | 111 | 'ProductTypes::EVENT_AFTER_SAVE_PRODUCTTYPE', |
112 | 112 | __METHOD__ |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | Event::on( |
122 | 122 | ProductTypes::class, |
123 | 123 | ProductTypes::EVENT_AFTER_SAVE_PRODUCTTYPE, |
124 | - static function (ProductTypeEvent $event) { |
|
124 | + static function(ProductTypeEvent $event) { |
|
125 | 125 | Craft::debug( |
126 | 126 | 'ProductTypes::EVENT_AFTER_SAVE_PRODUCTTYPE', |
127 | 127 | __METHOD__ |
@@ -184,7 +184,7 @@ discard block |
||
184 | 184 | // Commerce Product Types sidebar |
185 | 185 | $commerce = CommercePlugin::getInstance(); |
186 | 186 | if ($commerce !== null) { |
187 | - Seomatic::$view->hook('cp.commerce.product.edit.details', static function (&$context) { |
|
187 | + Seomatic::$view->hook('cp.commerce.product.edit.details', static function(&$context) { |
|
188 | 188 | $html = ''; |
189 | 189 | Seomatic::$view->registerAssetBundle(SeomaticAsset::class); |
190 | 190 | /** @var $product Product */ |
@@ -211,7 +211,7 @@ discard block |
||
211 | 211 | Event::on( |
212 | 212 | Product::class, |
213 | 213 | Product::EVENT_DEFINE_SIDEBAR_HTML, |
214 | - static function (DefineHtmlEvent $event) { |
|
214 | + static function(DefineHtmlEvent $event) { |
|
215 | 215 | Craft::debug( |
216 | 216 | 'Product::EVENT_DEFINE_SIDEBAR_HTML', |
217 | 217 | __METHOD__ |
@@ -420,7 +420,7 @@ discard block |
||
420 | 420 | ConfigHelper::getConfigFromFile(self::configFilePath()), |
421 | 421 | [ |
422 | 422 | 'sourceId' => $sourceModel->id, |
423 | - 'sourceName' => (string)$sourceModel->name, |
|
423 | + 'sourceName' => (string) $sourceModel->name, |
|
424 | 424 | 'sourceHandle' => $sourceModel->handle, |
425 | 425 | ] |
426 | 426 | ); |