@@ -56,7 +56,7 @@ |
||
| 56 | 56 | } |
| 57 | 57 | $tagData = $cache->getOrSet( |
| 58 | 58 | self::CONTAINER_TYPE.$uniqueKey, |
| 59 | - function () use ($uniqueKey) { |
|
| 59 | + function() use ($uniqueKey) { |
|
| 60 | 60 | Craft::info( |
| 61 | 61 | self::CONTAINER_TYPE.' cache miss: '.$uniqueKey, |
| 62 | 62 | __METHOD__ |
@@ -56,7 +56,7 @@ |
||
| 56 | 56 | } |
| 57 | 57 | $tagData = $cache->getOrSet( |
| 58 | 58 | self::CONTAINER_TYPE.$uniqueKey, |
| 59 | - function () use ($uniqueKey) { |
|
| 59 | + function() use ($uniqueKey) { |
|
| 60 | 60 | Craft::info( |
| 61 | 61 | self::CONTAINER_TYPE.' cache miss: '.$uniqueKey, |
| 62 | 62 | __METHOD__ |
@@ -56,7 +56,7 @@ |
||
| 56 | 56 | } |
| 57 | 57 | $tagData = $cache->getOrSet( |
| 58 | 58 | self::CONTAINER_TYPE.$uniqueKey, |
| 59 | - function () use ($uniqueKey) { |
|
| 59 | + function() use ($uniqueKey) { |
|
| 60 | 60 | Craft::info( |
| 61 | 61 | self::CONTAINER_TYPE.' cache miss: '.$uniqueKey, |
| 62 | 62 | __METHOD__ |
@@ -56,7 +56,7 @@ |
||
| 56 | 56 | } |
| 57 | 57 | $tagData = $cache->getOrSet( |
| 58 | 58 | self::CONTAINER_TYPE.$uniqueKey, |
| 59 | - function () use ($uniqueKey) { |
|
| 59 | + function() use ($uniqueKey) { |
|
| 60 | 60 | Craft::info( |
| 61 | 61 | self::CONTAINER_TYPE.' cache miss: '.$uniqueKey, |
| 62 | 62 | __METHOD__ |
@@ -35,7 +35,7 @@ discard block |
||
| 35 | 35 | // Constants |
| 36 | 36 | // ========================================================================= |
| 37 | 37 | |
| 38 | - const FRONTENDTEMPLATES_CONTAINER = Seomatic::SEOMATIC_HANDLE . EditableTemplate::TEMPLATE_TYPE; |
|
| 38 | + const FRONTENDTEMPLATES_CONTAINER = Seomatic::SEOMATIC_HANDLE.EditableTemplate::TEMPLATE_TYPE; |
|
| 39 | 39 | |
| 40 | 40 | const HUMANS_TXT_HANDLE = 'humans'; |
| 41 | 41 | const ROBOTS_TXT_HANDLE = 'robots'; |
@@ -110,7 +110,7 @@ discard block |
||
| 110 | 110 | Event::on( |
| 111 | 111 | UrlManager::class, |
| 112 | 112 | UrlManager::EVENT_REGISTER_SITE_URL_RULES, |
| 113 | - function (RegisterUrlRulesEvent $event) { |
|
| 113 | + function(RegisterUrlRulesEvent $event) { |
|
| 114 | 114 | Craft::debug( |
| 115 | 115 | 'UrlManager::EVENT_REGISTER_SITE_URL_RULES', |
| 116 | 116 | __METHOD__ |
@@ -165,16 +165,16 @@ discard block |
||
| 165 | 165 | $dependency = new TagDependency([ |
| 166 | 166 | 'tags' => [ |
| 167 | 167 | self::GLOBAL_FRONTENDTEMPLATE_CACHE_TAG, |
| 168 | - self::FRONTENDTEMPLATE_CACHE_TAG . $template, |
|
| 169 | - self::FRONTENDTEMPLATE_CACHE_TAG . $template . $siteId, |
|
| 168 | + self::FRONTENDTEMPLATE_CACHE_TAG.$template, |
|
| 169 | + self::FRONTENDTEMPLATE_CACHE_TAG.$template.$siteId, |
|
| 170 | 170 | ], |
| 171 | 171 | ]); |
| 172 | 172 | $cache = Craft::$app->getCache(); |
| 173 | 173 | $html = $cache->getOrSet( |
| 174 | - self::CACHE_KEY . $template . $siteId, |
|
| 175 | - function () use ($template, $params) { |
|
| 174 | + self::CACHE_KEY.$template.$siteId, |
|
| 175 | + function() use ($template, $params) { |
|
| 176 | 176 | Craft::info( |
| 177 | - 'Frontend template cache miss: ' . $template, |
|
| 177 | + 'Frontend template cache miss: '.$template, |
|
| 178 | 178 | __METHOD__ |
| 179 | 179 | ); |
| 180 | 180 | $html = ''; |
@@ -245,9 +245,9 @@ discard block |
||
| 245 | 245 | public function invalidateFrontendTemplateCache(string $template) |
| 246 | 246 | { |
| 247 | 247 | $cache = Craft::$app->getCache(); |
| 248 | - TagDependency::invalidate($cache, self::FRONTENDTEMPLATE_CACHE_TAG . $template); |
|
| 248 | + TagDependency::invalidate($cache, self::FRONTENDTEMPLATE_CACHE_TAG.$template); |
|
| 249 | 249 | Craft::info( |
| 250 | - 'Frontend template cache cleared: ' . $template, |
|
| 250 | + 'Frontend template cache cleared: '.$template, |
|
| 251 | 251 | __METHOD__ |
| 252 | 252 | ); |
| 253 | 253 | } |
@@ -66,7 +66,7 @@ |
||
| 66 | 66 | array $params = [], |
| 67 | 67 | string $minifier = null |
| 68 | 68 | ): string { |
| 69 | - $template = 'seomatic/' . $templatePath; |
|
| 69 | + $template = 'seomatic/'.$templatePath; |
|
| 70 | 70 | $oldMode = Craft::$app->view->getTemplateMode(); |
| 71 | 71 | // Look for the template on the frontend first |
| 72 | 72 | try { |
@@ -99,16 +99,16 @@ |
||
| 99 | 99 | { |
| 100 | 100 | // Enforce types |
| 101 | 101 | if ($this->sitemapUrls !== null) { |
| 102 | - $this->sitemapUrls = (bool)$this->sitemapUrls; |
|
| 102 | + $this->sitemapUrls = (bool) $this->sitemapUrls; |
|
| 103 | 103 | } |
| 104 | 104 | if ($this->sitemapAssets !== null) { |
| 105 | - $this->sitemapAssets = (bool)$this->sitemapAssets; |
|
| 105 | + $this->sitemapAssets = (bool) $this->sitemapAssets; |
|
| 106 | 106 | } |
| 107 | 107 | if ($this->sitemapFiles !== null) { |
| 108 | - $this->sitemapFiles = (bool)$this->sitemapFiles; |
|
| 108 | + $this->sitemapFiles = (bool) $this->sitemapFiles; |
|
| 109 | 109 | } |
| 110 | 110 | if ($this->sitemapAltLinks !== null) { |
| 111 | - $this->sitemapAltLinks = (bool)$this->sitemapAltLinks; |
|
| 111 | + $this->sitemapAltLinks = (bool) $this->sitemapAltLinks; |
|
| 112 | 112 | } |
| 113 | 113 | } |
| 114 | 114 | |
@@ -57,7 +57,7 @@ |
||
| 57 | 57 | ]; |
| 58 | 58 | } |
| 59 | 59 | |
| 60 | - array_walk($containerItems, function (&$contents, $type) use ($typeMap) { |
|
| 60 | + array_walk($containerItems, function(&$contents, $type) use ($typeMap) { |
|
| 61 | 61 | $contents = [ |
| 62 | 62 | 'filename' => $typeMap[$type], |
| 63 | 63 | 'contents' => $contents |
@@ -53,7 +53,7 @@ |
||
| 53 | 53 | } |
| 54 | 54 | |
| 55 | 55 | // If either of the source bundle arguments are present, get the sitemap |
| 56 | - if (!empty($arguments['sourceBundleType']) || !empty($arguments['sourceBundleHandle'])) { |
|
| 56 | + if (!empty($arguments['sourceBundleType']) || !empty($arguments['sourceBundleHandle'])) { |
|
| 57 | 57 | $filename = self::createFilenameFromComponents($site->groupId, $arguments['sourceBundleType'] ?? '', $arguments['sourceBundleHandle'] ?? '', $siteId); |
| 58 | 58 | |
| 59 | 59 | return [ |