@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | /** |
| 47 | 47 | * @var bool|array |
| 48 | 48 | */ |
| 49 | - protected array|bool|int $allowAnonymous = [ |
|
| 49 | + protected array | bool | int $allowAnonymous = [ |
|
| 50 | 50 | ]; |
| 51 | 51 | |
| 52 | 52 | // Public Methods |
@@ -100,7 +100,7 @@ discard block |
||
| 100 | 100 | // Query the db table |
| 101 | 101 | $offset = ($page - 1) * $per_page; |
| 102 | 102 | $currentSiteHandle = ''; |
| 103 | - if ((int)$siteId !== 0) { |
|
| 103 | + if ((int) $siteId !== 0) { |
|
| 104 | 104 | $site = Craft::$app->getSites()->getSiteById($siteId); |
| 105 | 105 | if ($site !== null) { |
| 106 | 106 | $currentSiteHandle = $site->handle; |
@@ -155,11 +155,11 @@ discard block |
||
| 155 | 155 | $numGrades = \count(SettingsController::SETUP_GRADES); |
| 156 | 156 | $numFields = \count(SettingsController::SEO_SETUP_FIELDS); |
| 157 | 157 | foreach (SettingsController::SEO_SETUP_FIELDS as $setupField => $setupLabel) { |
| 158 | - $stat += (int)!empty($metaBundle->metaGlobalVars[$setupField]); |
|
| 158 | + $stat += (int) !empty($metaBundle->metaGlobalVars[$setupField]); |
|
| 159 | 159 | $value = $variables['contentSetupChecklist'][$setupField]['value'] ?? 0; |
| 160 | 160 | $variables['contentSetupChecklist'][$setupField] = [ |
| 161 | 161 | 'label' => $setupLabel, |
| 162 | - 'value' => $value + (int)!empty($metaBundle->metaGlobalVars[$setupField]), |
|
| 162 | + 'value' => $value + (int) !empty($metaBundle->metaGlobalVars[$setupField]), |
|
| 163 | 163 | ]; |
| 164 | 164 | } |
| 165 | 165 | $stat = round($numGrades - (($stat * $numGrades) / $numFields)); |
@@ -30,7 +30,7 @@ |
||
| 30 | 30 | /** |
| 31 | 31 | * @inheritdoc |
| 32 | 32 | */ |
| 33 | - protected array|bool|int $allowAnonymous = [ |
|
| 33 | + protected array | bool | int $allowAnonymous = [ |
|
| 34 | 34 | 'get-type', |
| 35 | 35 | 'get-decomposed-type', |
| 36 | 36 | 'get-type-array', |
@@ -32,7 +32,7 @@ discard block |
||
| 32 | 32 | /** |
| 33 | 33 | * @inheritdoc |
| 34 | 34 | */ |
| 35 | - protected array|bool|int $allowAnonymous = [ |
|
| 35 | + protected array | bool | int $allowAnonymous = [ |
|
| 36 | 36 | 'social-media', |
| 37 | 37 | ]; |
| 38 | 38 | |
@@ -53,7 +53,7 @@ discard block |
||
| 53 | 53 | $html = ''; |
| 54 | 54 | |
| 55 | 55 | // Don't allow the preview to be accessed publicly |
| 56 | - $this->requireAuthorization(Seomatic::SEOMATIC_PREVIEW_AUTHORIZATION_KEY . $elementId); |
|
| 56 | + $this->requireAuthorization(Seomatic::SEOMATIC_PREVIEW_AUTHORIZATION_KEY.$elementId); |
|
| 57 | 57 | |
| 58 | 58 | /** @var Element $element */ |
| 59 | 59 | $element = Craft::$app->getElements()->getElementById($elementId, null, $siteId); |
@@ -34,7 +34,7 @@ discard block |
||
| 34 | 34 | /** |
| 35 | 35 | * @inheritdoc |
| 36 | 36 | */ |
| 37 | - protected array|bool|int $allowAnonymous = [ |
|
| 37 | + protected array | bool | int $allowAnonymous = [ |
|
| 38 | 38 | 'seo-file-link', |
| 39 | 39 | ]; |
| 40 | 40 | |
@@ -83,7 +83,7 @@ discard block |
||
| 83 | 83 | } |
| 84 | 84 | // Add the Link header |
| 85 | 85 | if (!empty($canonical)) { |
| 86 | - $headerValue = '<' . $canonical . '>; rel="canonical"'; |
|
| 86 | + $headerValue = '<'.$canonical.'>; rel="canonical"'; |
|
| 87 | 87 | $response->headers->add('Link', $headerValue); |
| 88 | 88 | } |
| 89 | 89 | // Ensure the file type is allowed |
@@ -160,7 +160,7 @@ discard block |
||
| 160 | 160 | // Get the page number of this request |
| 161 | 161 | $request = Craft::$app->getRequest(); |
| 162 | 162 | if (!$request->isConsoleRequest) { |
| 163 | - $this->paginationPage = (string)$request->pageNum; |
|
| 163 | + $this->paginationPage = (string) $request->pageNum; |
|
| 164 | 164 | } |
| 165 | 165 | } |
| 166 | 166 | |
@@ -176,10 +176,10 @@ discard block |
||
| 176 | 176 | $uniqueKey = $dependency->tags[3] ?? self::GLOBALS_CACHE_KEY; |
| 177 | 177 | $uniqueKey .= $bodyPosition; |
| 178 | 178 | $scriptData = Craft::$app->getCache()->getOrSet( |
| 179 | - self::GLOBALS_CACHE_KEY . $uniqueKey, |
|
| 180 | - function () use ($uniqueKey, $bodyPosition) { |
|
| 179 | + self::GLOBALS_CACHE_KEY.$uniqueKey, |
|
| 180 | + function() use ($uniqueKey, $bodyPosition) { |
|
| 181 | 181 | Craft::info( |
| 182 | - self::SCRIPTS_CACHE_KEY . ' cache miss: ' . $uniqueKey, |
|
| 182 | + self::SCRIPTS_CACHE_KEY.' cache miss: '.$uniqueKey, |
|
| 183 | 183 | __METHOD__ |
| 184 | 184 | ); |
| 185 | 185 | $scriptData = []; |
@@ -191,7 +191,7 @@ discard block |
||
| 191 | 191 | foreach ($scriptContainer->data as $metaScript) { |
| 192 | 192 | /** @var MetaScript $metaScript */ |
| 193 | 193 | if (!empty($metaScript->bodyTemplatePath) |
| 194 | - && ((int)$metaScript->bodyPosition === $bodyPosition)) { |
|
| 194 | + && ((int) $metaScript->bodyPosition === $bodyPosition)) { |
|
| 195 | 195 | $scriptData[] = $metaScript->renderBodyHtml(); |
| 196 | 196 | } |
| 197 | 197 | } |
@@ -271,10 +271,10 @@ discard block |
||
| 271 | 271 | $dependency = $this->containerDependency; |
| 272 | 272 | $uniqueKey = $dependency->tags[3] ?? self::GLOBALS_CACHE_KEY; |
| 273 | 273 | list($this->metaGlobalVars, $this->metaSiteVars) = Craft::$app->getCache()->getOrSet( |
| 274 | - self::GLOBALS_CACHE_KEY . $uniqueKey, |
|
| 275 | - function () use ($uniqueKey) { |
|
| 274 | + self::GLOBALS_CACHE_KEY.$uniqueKey, |
|
| 275 | + function() use ($uniqueKey) { |
|
| 276 | 276 | Craft::info( |
| 277 | - self::GLOBALS_CACHE_KEY . ' cache miss: ' . $uniqueKey, |
|
| 277 | + self::GLOBALS_CACHE_KEY.' cache miss: '.$uniqueKey, |
|
| 278 | 278 | __METHOD__ |
| 279 | 279 | ); |
| 280 | 280 | |
@@ -395,7 +395,7 @@ discard block |
||
| 395 | 395 | ?? 1; |
| 396 | 396 | } |
| 397 | 397 | // Handle pagination |
| 398 | - $paginationPage = 'page' . $this->paginationPage; |
|
| 398 | + $paginationPage = 'page'.$this->paginationPage; |
|
| 399 | 399 | // Get the path for the current request |
| 400 | 400 | $request = Craft::$app->getRequest(); |
| 401 | 401 | $requestPath = '/'; |
@@ -411,21 +411,21 @@ discard block |
||
| 411 | 411 | } |
| 412 | 412 | } |
| 413 | 413 | // Get our cache key |
| 414 | - $cacheKey = $uri . $siteId . $paginationPage . $requestPath . $this->getAllowedUrlParams(); |
|
| 414 | + $cacheKey = $uri.$siteId.$paginationPage.$requestPath.$this->getAllowedUrlParams(); |
|
| 415 | 415 | // For requests with a status code of >= 400, use one cache key |
| 416 | 416 | if (!$request->isConsoleRequest) { |
| 417 | 417 | $response = Craft::$app->getResponse(); |
| 418 | 418 | if ($response->statusCode >= 400) { |
| 419 | - $cacheKey = $siteId . self::INVALID_RESPONSE_CACHE_KEY . $response->statusCode; |
|
| 419 | + $cacheKey = $siteId.self::INVALID_RESPONSE_CACHE_KEY.$response->statusCode; |
|
| 420 | 420 | } |
| 421 | 421 | } |
| 422 | 422 | // Load the meta containers |
| 423 | 423 | $dependency = new TagDependency([ |
| 424 | 424 | 'tags' => [ |
| 425 | 425 | self::GLOBAL_METACONTAINER_CACHE_TAG, |
| 426 | - self::METACONTAINER_CACHE_TAG . $metaBundleSourceId . $metaBundleSourceType . $siteId, |
|
| 427 | - self::METACONTAINER_CACHE_TAG . $uri . $siteId, |
|
| 428 | - self::METACONTAINER_CACHE_TAG . $cacheKey, |
|
| 426 | + self::METACONTAINER_CACHE_TAG.$metaBundleSourceId.$metaBundleSourceType.$siteId, |
|
| 427 | + self::METACONTAINER_CACHE_TAG.$uri.$siteId, |
|
| 428 | + self::METACONTAINER_CACHE_TAG.$cacheKey, |
|
| 429 | 429 | ], |
| 430 | 430 | ]); |
| 431 | 431 | $this->containerDependency = $dependency; |
@@ -441,10 +441,10 @@ discard block |
||
| 441 | 441 | } else { |
| 442 | 442 | $cache = Craft::$app->getCache(); |
| 443 | 443 | list($this->metaGlobalVars, $this->metaSiteVars, $this->metaSitemapVars, $this->metaContainers) = $cache->getOrSet( |
| 444 | - self::CACHE_KEY . $cacheKey, |
|
| 445 | - function () use ($uri, $siteId) { |
|
| 444 | + self::CACHE_KEY.$cacheKey, |
|
| 445 | + function() use ($uri, $siteId) { |
|
| 446 | 446 | Craft::info( |
| 447 | - 'Meta container cache miss: ' . $uri . '/' . $siteId, |
|
| 447 | + 'Meta container cache miss: '.$uri.'/'.$siteId, |
|
| 448 | 448 | __METHOD__ |
| 449 | 449 | ); |
| 450 | 450 | $this->loadGlobalMetaContainers($siteId); |
@@ -839,10 +839,10 @@ discard block |
||
| 839 | 839 | $cache = Craft::$app->getCache(); |
| 840 | 840 | TagDependency::invalidate( |
| 841 | 841 | $cache, |
| 842 | - self::METACONTAINER_CACHE_TAG . $metaBundleSourceId . $metaBundleSourceType . $siteId |
|
| 842 | + self::METACONTAINER_CACHE_TAG.$metaBundleSourceId.$metaBundleSourceType.$siteId |
|
| 843 | 843 | ); |
| 844 | 844 | Craft::info( |
| 845 | - 'Meta bundle cache cleared: ' . $metaBundleSourceId . ' / ' . $metaBundleSourceType . ' / ' . $siteId, |
|
| 845 | + 'Meta bundle cache cleared: '.$metaBundleSourceId.' / '.$metaBundleSourceType.' / '.$siteId, |
|
| 846 | 846 | __METHOD__ |
| 847 | 847 | ); |
| 848 | 848 | // Trigger an event to let other plugins/modules know we've cleared our caches |
@@ -869,9 +869,9 @@ discard block |
||
| 869 | 869 | if ($siteId === null) { |
| 870 | 870 | $siteId = Craft::$app->getSites()->currentSite->id ?? 1; |
| 871 | 871 | } |
| 872 | - TagDependency::invalidate($cache, self::METACONTAINER_CACHE_TAG . $uri . $siteId); |
|
| 872 | + TagDependency::invalidate($cache, self::METACONTAINER_CACHE_TAG.$uri.$siteId); |
|
| 873 | 873 | Craft::info( |
| 874 | - 'Meta container cache cleared: ' . $uri . ' / ' . $siteId, |
|
| 874 | + 'Meta container cache cleared: '.$uri.' / '.$siteId, |
|
| 875 | 875 | __METHOD__ |
| 876 | 876 | ); |
| 877 | 877 | // Trigger an event to let other plugins/modules know we've cleared our caches |
@@ -988,7 +988,7 @@ discard block |
||
| 988 | 988 | |
| 989 | 989 | // Handle re-creating the `mainEntityOfPage` so that the model injected into the |
| 990 | 990 | // templates has the appropriate attributes |
| 991 | - $generalContainerKey = MetaJsonLdContainer::CONTAINER_TYPE . JsonLdService::GENERAL_HANDLE; |
|
| 991 | + $generalContainerKey = MetaJsonLdContainer::CONTAINER_TYPE.JsonLdService::GENERAL_HANDLE; |
|
| 992 | 992 | $generalContainer = $this->metaContainers[$generalContainerKey]; |
| 993 | 993 | if (($generalContainer !== null) && !empty($generalContainer->data['mainEntityOfPage'])) { |
| 994 | 994 | /** @var MetaJsonLd $jsonLdModel */ |
@@ -105,7 +105,7 @@ discard block |
||
| 105 | 105 | Event::on( |
| 106 | 106 | ProductTypes::class, |
| 107 | 107 | ProductTypes::EVENT_AFTER_SAVE_PRODUCTTYPE, |
| 108 | - function (ProductTypeEvent $event) { |
|
| 108 | + function(ProductTypeEvent $event) { |
|
| 109 | 109 | Craft::debug( |
| 110 | 110 | 'ProductTypes::EVENT_AFTER_SAVE_PRODUCTTYPE', |
| 111 | 111 | __METHOD__ |
@@ -121,7 +121,7 @@ discard block |
||
| 121 | 121 | ProductTypes::class, |
| 122 | 122 | ProductTypes::EVENT_AFTER_SAVE_PRODUCTTYPE, |
| 123 | 123 | /** @var ProductTypeEvent $event */ |
| 124 | - static function ($event) { |
|
| 124 | + static function($event) { |
|
| 125 | 125 | Craft::debug( |
| 126 | 126 | 'ProductTypes::EVENT_AFTER_SAVE_PRODUCTTYPE', |
| 127 | 127 | __METHOD__ |
@@ -177,7 +177,7 @@ discard block |
||
| 177 | 177 | Event::on( |
| 178 | 178 | Product::class, |
| 179 | 179 | Product::EVENT_DEFINE_SIDEBAR_HTML, |
| 180 | - static function (DefineHtmlEvent $event) { |
|
| 180 | + static function(DefineHtmlEvent $event) { |
|
| 181 | 181 | Craft::debug( |
| 182 | 182 | 'Product::EVENT_DEFINE_SIDEBAR_HTML', |
| 183 | 183 | __METHOD__ |
@@ -386,7 +386,7 @@ discard block |
||
| 386 | 386 | ConfigHelper::getConfigFromFile(self::configFilePath()), |
| 387 | 387 | [ |
| 388 | 388 | 'sourceId' => $sourceModel->id, |
| 389 | - 'sourceName' => (string)$sourceModel->name, |
|
| 389 | + 'sourceName' => (string) $sourceModel->name, |
|
| 390 | 390 | 'sourceHandle' => $sourceModel->handle, |
| 391 | 391 | ] |
| 392 | 392 | ); |
@@ -108,7 +108,7 @@ discard block |
||
| 108 | 108 | Event::on( |
| 109 | 109 | Sections::class, |
| 110 | 110 | Sections::EVENT_AFTER_SAVE_SECTION, |
| 111 | - function (SectionEvent $event) { |
|
| 111 | + function(SectionEvent $event) { |
|
| 112 | 112 | Craft::debug( |
| 113 | 113 | 'Sections::EVENT_AFTER_SAVE_SECTION', |
| 114 | 114 | __METHOD__ |
@@ -119,7 +119,7 @@ discard block |
||
| 119 | 119 | Event::on( |
| 120 | 120 | Sections::class, |
| 121 | 121 | Sections::EVENT_AFTER_DELETE_SECTION, |
| 122 | - function (SectionEvent $event) { |
|
| 122 | + function(SectionEvent $event) { |
|
| 123 | 123 | Craft::debug( |
| 124 | 124 | 'Sections::EVENT_AFTER_DELETE_SECTION', |
| 125 | 125 | __METHOD__ |
@@ -134,7 +134,7 @@ discard block |
||
| 134 | 134 | Event::on( |
| 135 | 135 | Sections::class, |
| 136 | 136 | Sections::EVENT_AFTER_SAVE_SECTION, |
| 137 | - function (SectionEvent $event) { |
|
| 137 | + function(SectionEvent $event) { |
|
| 138 | 138 | Craft::debug( |
| 139 | 139 | 'Sections::EVENT_AFTER_SAVE_SECTION', |
| 140 | 140 | __METHOD__ |
@@ -157,7 +157,7 @@ discard block |
||
| 157 | 157 | Event::on( |
| 158 | 158 | Sections::class, |
| 159 | 159 | Sections::EVENT_AFTER_DELETE_SECTION, |
| 160 | - function (SectionEvent $event) { |
|
| 160 | + function(SectionEvent $event) { |
|
| 161 | 161 | Craft::debug( |
| 162 | 162 | 'Sections::EVENT_AFTER_DELETE_SECTION', |
| 163 | 163 | __METHOD__ |
@@ -186,7 +186,7 @@ discard block |
||
| 186 | 186 | Event::on( |
| 187 | 187 | Entry::class, |
| 188 | 188 | Entry::EVENT_DEFINE_SIDEBAR_HTML, |
| 189 | - static function (DefineHtmlEvent $event) { |
|
| 189 | + static function(DefineHtmlEvent $event) { |
|
| 190 | 190 | Craft::debug( |
| 191 | 191 | 'Entry::EVENT_DEFINE_SIDEBAR_HTML', |
| 192 | 192 | __METHOD__ |
@@ -227,7 +227,7 @@ discard block |
||
| 227 | 227 | ->limit($metaBundle->metaSitemapVars->sitemapLimit); |
| 228 | 228 | if ($metaBundle->sourceType === 'structure' |
| 229 | 229 | && !empty($metaBundle->metaSitemapVars->structureDepth)) { |
| 230 | - $query->level($metaBundle->metaSitemapVars->structureDepth . '<='); |
|
| 230 | + $query->level($metaBundle->metaSitemapVars->structureDepth.'<='); |
|
| 231 | 231 | } |
| 232 | 232 | |
| 233 | 233 | return $query; |
@@ -395,7 +395,7 @@ discard block |
||
| 395 | 395 | ConfigHelper::getConfigFromFile(self::configFilePath()), |
| 396 | 396 | [ |
| 397 | 397 | 'sourceId' => $sourceModel->id, |
| 398 | - 'sourceName' => (string)$sourceModel->name, |
|
| 398 | + 'sourceName' => (string) $sourceModel->name, |
|
| 399 | 399 | 'sourceHandle' => $sourceModel->handle, |
| 400 | 400 | 'sourceType' => $sourceModel->type, |
| 401 | 401 | ] |
@@ -86,7 +86,7 @@ discard block |
||
| 86 | 86 | BaseEvent::on( |
| 87 | 87 | CalendarsService::class, |
| 88 | 88 | CalendarsService::EVENT_AFTER_SAVE, |
| 89 | - function (SaveModelEvent $event) { |
|
| 89 | + function(SaveModelEvent $event) { |
|
| 90 | 90 | Craft::debug( |
| 91 | 91 | 'CalendarsService::EVENT_AFTER_DELETE', |
| 92 | 92 | __METHOD__ |
@@ -97,7 +97,7 @@ discard block |
||
| 97 | 97 | BaseEvent::on( |
| 98 | 98 | CalendarsService::class, |
| 99 | 99 | CalendarsService::EVENT_AFTER_DELETE, |
| 100 | - function (SaveModelEvent $event) { |
|
| 100 | + function(SaveModelEvent $event) { |
|
| 101 | 101 | Craft::debug( |
| 102 | 102 | 'CalendarsService::EVENT_AFTER_DELETE', |
| 103 | 103 | __METHOD__ |
@@ -112,7 +112,7 @@ discard block |
||
| 112 | 112 | BaseEvent::on( |
| 113 | 113 | CalendarsService::class, |
| 114 | 114 | CalendarsService::EVENT_AFTER_SAVE, |
| 115 | - function (SaveModelEvent $event) { |
|
| 115 | + function(SaveModelEvent $event) { |
|
| 116 | 116 | Craft::debug( |
| 117 | 117 | 'CalendarsService::EVENT_AFTER_SAVE', |
| 118 | 118 | __METHOD__ |
@@ -137,7 +137,7 @@ discard block |
||
| 137 | 137 | BaseEvent::on( |
| 138 | 138 | CalendarsService::class, |
| 139 | 139 | CalendarsService::EVENT_AFTER_DELETE, |
| 140 | - function (DeleteModelEvent $event) { |
|
| 140 | + function(DeleteModelEvent $event) { |
|
| 141 | 141 | Craft::debug( |
| 142 | 142 | 'CalendarsService::EVENT_AFTER_DELETE', |
| 143 | 143 | __METHOD__ |
@@ -168,7 +168,7 @@ discard block |
||
| 168 | 168 | BaseEvent::on( |
| 169 | 169 | Event::class, |
| 170 | 170 | Event::EVENT_DEFINE_SIDEBAR_HTML, |
| 171 | - static function (DefineHtmlEvent $event) { |
|
| 171 | + static function(DefineHtmlEvent $event) { |
|
| 172 | 172 | Craft::debug( |
| 173 | 173 | 'Entry::EVENT_DEFINE_SIDEBAR_HTML', |
| 174 | 174 | __METHOD__ |
@@ -243,8 +243,8 @@ discard block |
||
| 243 | 243 | $query = Event::find() |
| 244 | 244 | ->setCalendar($metaBundle->sourceHandle) |
| 245 | 245 | ->setLoadOccurrences(false) |
| 246 | - ->siteId((int)$metaBundle->sourceSiteId) |
|
| 247 | - ->limit((int)$metaBundle->metaSitemapVars->sitemapLimit); |
|
| 246 | + ->siteId((int) $metaBundle->sourceSiteId) |
|
| 247 | + ->limit((int) $metaBundle->metaSitemapVars->sitemapLimit); |
|
| 248 | 248 | |
| 249 | 249 | return $query; |
| 250 | 250 | } |
@@ -405,7 +405,7 @@ discard block |
||
| 405 | 405 | ConfigHelper::getConfigFromFile(self::configFilePath()), |
| 406 | 406 | [ |
| 407 | 407 | 'sourceId' => $sourceModel->id, |
| 408 | - 'sourceName' => (string)$sourceModel->name, |
|
| 408 | + 'sourceName' => (string) $sourceModel->name, |
|
| 409 | 409 | 'sourceHandle' => $sourceModel->handle, |
| 410 | 410 | ] |
| 411 | 411 | ); |
@@ -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__ |
@@ -176,7 +176,7 @@ discard block |
||
| 176 | 176 | Event::on( |
| 177 | 177 | Product::class, |
| 178 | 178 | Product::EVENT_DEFINE_SIDEBAR_HTML, |
| 179 | - static function (DefineHtmlEvent $event) { |
|
| 179 | + static function(DefineHtmlEvent $event) { |
|
| 180 | 180 | Craft::debug( |
| 181 | 181 | 'Product::EVENT_DEFINE_SIDEBAR_HTML', |
| 182 | 182 | __METHOD__ |
@@ -385,7 +385,7 @@ discard block |
||
| 385 | 385 | ConfigHelper::getConfigFromFile(self::configFilePath()), |
| 386 | 386 | [ |
| 387 | 387 | 'sourceId' => $sourceModel->id, |
| 388 | - 'sourceName' => (string)$sourceModel->name, |
|
| 388 | + 'sourceName' => (string) $sourceModel->name, |
|
| 389 | 389 | 'sourceHandle' => $sourceModel->handle, |
| 390 | 390 | ] |
| 391 | 391 | ); |