@@ -66,7 +66,7 @@ discard block |
||
| 66 | 66 | */ |
| 67 | 67 | public function getSummary(): string |
| 68 | 68 | { |
| 69 | - return Craft::$app->getView()->render($this->viewPath . 'summary', ['panel' => $this]); |
|
| 69 | + return Craft::$app->getView()->render($this->viewPath.'summary', ['panel' => $this]); |
|
| 70 | 70 | } |
| 71 | 71 | |
| 72 | 72 | /** |
@@ -74,7 +74,7 @@ discard block |
||
| 74 | 74 | */ |
| 75 | 75 | public function getDetail(): string |
| 76 | 76 | { |
| 77 | - return Craft::$app->getView()->render($this->viewPath . 'detail', ['panel' => $this]); |
|
| 77 | + return Craft::$app->getView()->render($this->viewPath.'detail', ['panel' => $this]); |
|
| 78 | 78 | } |
| 79 | 79 | |
| 80 | 80 | /** |
@@ -164,7 +164,7 @@ |
||
| 164 | 164 | $content .= $this->render('rendered-tags', [ |
| 165 | 165 | 'values' => [ |
| 166 | 166 | 'renderedTags' => $panel->data[$metaBundleCategory]['renderedTags'][$metaContainerName] ?? [], |
| 167 | - 'id' => $sectionName . '-' . $metaBundleCategory . '-' . $metaContainerName . '-rendered-tags', |
|
| 167 | + 'id' => $sectionName.'-'.$metaBundleCategory.'-'.$metaContainerName.'-rendered-tags', |
|
| 168 | 168 | 'view' => $this, |
| 169 | 169 | 'language' => $editorLanguage, |
| 170 | 170 | ], |
@@ -40,7 +40,7 @@ |
||
| 40 | 40 | 'seomatic' => [ |
| 41 | 41 | 'type' => SeomaticInterface::getType(), |
| 42 | 42 | 'args' => SeomaticArguments::getArguments(), |
| 43 | - 'resolve' => SeomaticResolver::class . '::resolve', |
|
| 43 | + 'resolve' => SeomaticResolver::class.'::resolve', |
|
| 44 | 44 | 'description' => 'This query is used to query for SEOmatic meta data.', |
| 45 | 45 | ], |
| 46 | 46 | ]; |
@@ -78,7 +78,7 @@ discard block |
||
| 78 | 78 | |
| 79 | 79 | $type = GqlEntityRegistry::createEntity(self::class, new InterfaceType([ |
| 80 | 80 | 'name' => static::getName(), |
| 81 | - 'fields' => self::class . '::getFieldDefinitions', |
|
| 81 | + 'fields' => self::class.'::getFieldDefinitions', |
|
| 82 | 82 | 'description' => 'This is the interface implemented by SEOmatic.', |
| 83 | 83 | 'resolveType' => function(array $value) { |
| 84 | 84 | return GqlEntityRegistry::getEntity(SeomaticGenerator::getName()); |
@@ -107,7 +107,7 @@ discard block |
||
| 107 | 107 | $fields[$key] = [ |
| 108 | 108 | 'name' => $key, |
| 109 | 109 | 'type' => Type::string(), |
| 110 | - 'description' => 'The ' . $value . ' SEOmatic container.', |
|
| 110 | + 'description' => 'The '.$value.' SEOmatic container.', |
|
| 111 | 111 | ]; |
| 112 | 112 | if (isset(self::DEPRECATED_GRAPH_QL_FIELDS[$key])) { |
| 113 | 113 | $fields[$key]['deprecationReason'] = self::DEPRECATED_GRAPH_QL_FIELDS[$key]; |
@@ -118,27 +118,27 @@ discard block |
||
| 118 | 118 | 'name' => 'sitemaps', |
| 119 | 119 | 'args' => SitemapArguments::getArguments(), |
| 120 | 120 | 'type' => Type::listOf(FileContentsType::getType()), |
| 121 | - 'resolve' => SitemapResolver::class . '::getSitemaps', |
|
| 121 | + 'resolve' => SitemapResolver::class.'::getSitemaps', |
|
| 122 | 122 | ]; |
| 123 | 123 | |
| 124 | 124 | $fields['sitemapIndexes'] = [ |
| 125 | 125 | 'name' => 'sitemapIndexes', |
| 126 | 126 | 'args' => SitemapIndexArguments::getArguments(), |
| 127 | 127 | 'type' => Type::listOf(FileContentsType::getType()), |
| 128 | - 'resolve' => SitemapResolver::class . '::getSitemapIndexes', |
|
| 128 | + 'resolve' => SitemapResolver::class.'::getSitemapIndexes', |
|
| 129 | 129 | ]; |
| 130 | 130 | |
| 131 | 131 | $fields['sitemapStyles'] = [ |
| 132 | 132 | 'name' => 'sitemapStyles', |
| 133 | 133 | 'type' => FileContentsType::getType(), |
| 134 | - 'resolve' => SitemapResolver::class . '::getSitemapStyles', |
|
| 134 | + 'resolve' => SitemapResolver::class.'::getSitemapStyles', |
|
| 135 | 135 | ]; |
| 136 | 136 | |
| 137 | 137 | $fields['frontendTemplates'] = [ |
| 138 | 138 | 'name' => 'frontendTemplates', |
| 139 | 139 | 'args' => FrontendContainerArguments::getArguments(), |
| 140 | 140 | 'type' => Type::listOf(FileContentsType::getType()), |
| 141 | - 'resolve' => FrontendContainerResolver::class . '::getContainerFiles', |
|
| 141 | + 'resolve' => FrontendContainerResolver::class.'::getContainerFiles', |
|
| 142 | 142 | ]; |
| 143 | 143 | |
| 144 | 144 | return $fields; |
@@ -388,7 +388,7 @@ |
||
| 388 | 388 | ConfigHelper::getConfigFromFile(self::configFilePath()), |
| 389 | 389 | [ |
| 390 | 390 | 'sourceId' => $sourceModel->id, |
| 391 | - 'sourceName' => (string)$sourceModel->name, |
|
| 391 | + 'sourceName' => (string) $sourceModel->name, |
|
| 392 | 392 | 'sourceHandle' => $sourceModel->handle, |
| 393 | 393 | ] |
| 394 | 394 | ); |
@@ -237,8 +237,8 @@ discard block |
||
| 237 | 237 | $query = Event::find() |
| 238 | 238 | ->setCalendar($metaBundle->sourceHandle) |
| 239 | 239 | ->setLoadOccurrences(false) |
| 240 | - ->siteId((int)$metaBundle->sourceSiteId) |
|
| 241 | - ->limit((int)$metaBundle->metaSitemapVars->sitemapLimit); |
|
| 240 | + ->siteId((int) $metaBundle->sourceSiteId) |
|
| 241 | + ->limit((int) $metaBundle->metaSitemapVars->sitemapLimit); |
|
| 242 | 242 | |
| 243 | 243 | return $query; |
| 244 | 244 | } |
@@ -398,7 +398,7 @@ discard block |
||
| 398 | 398 | ConfigHelper::getConfigFromFile(self::configFilePath()), |
| 399 | 399 | [ |
| 400 | 400 | 'sourceId' => $sourceModel->id, |
| 401 | - 'sourceName' => (string)$sourceModel->name, |
|
| 401 | + 'sourceName' => (string) $sourceModel->name, |
|
| 402 | 402 | 'sourceHandle' => $sourceModel->handle, |
| 403 | 403 | ] |
| 404 | 404 | ); |
@@ -128,16 +128,16 @@ discard block |
||
| 128 | 128 | $dependency = new TagDependency([ |
| 129 | 129 | 'tags' => [ |
| 130 | 130 | self::GLOBAL_SITEMAP_CACHE_TAG, |
| 131 | - self::SITEMAP_CACHE_TAG . $handle . $siteId, |
|
| 131 | + self::SITEMAP_CACHE_TAG.$handle.$siteId, |
|
| 132 | 132 | ], |
| 133 | 133 | ]); |
| 134 | 134 | |
| 135 | - return $cache->getOrSet(self::CACHE_KEY . $groupId . self::CUSTOM_SCOPE . $handle . $siteId, function() use ( |
|
| 135 | + return $cache->getOrSet(self::CACHE_KEY.$groupId.self::CUSTOM_SCOPE.$handle.$siteId, function() use ( |
|
| 136 | 136 | $handle, |
| 137 | 137 | $siteId |
| 138 | 138 | ) { |
| 139 | 139 | Craft::info( |
| 140 | - 'Sitemap Custom cache miss: ' . $handle . '/' . $siteId, |
|
| 140 | + 'Sitemap Custom cache miss: '.$handle.'/'.$siteId, |
|
| 141 | 141 | __METHOD__ |
| 142 | 142 | ); |
| 143 | 143 | $lines = []; |
@@ -212,9 +212,9 @@ discard block |
||
| 212 | 212 | { |
| 213 | 213 | $handle = self::CUSTOM_HANDLE; |
| 214 | 214 | $cache = Craft::$app->getCache(); |
| 215 | - TagDependency::invalidate($cache, self::SITEMAP_CACHE_TAG . $handle . $siteId); |
|
| 215 | + TagDependency::invalidate($cache, self::SITEMAP_CACHE_TAG.$handle.$siteId); |
|
| 216 | 216 | Craft::info( |
| 217 | - 'Sitemap Custom cache cleared: ' . $handle, |
|
| 217 | + 'Sitemap Custom cache cleared: '.$handle, |
|
| 218 | 218 | __METHOD__ |
| 219 | 219 | ); |
| 220 | 220 | } |
@@ -51,16 +51,16 @@ |
||
| 51 | 51 | public function includeMetaData($dependency) |
| 52 | 52 | { |
| 53 | 53 | Craft::beginProfile('MetaJsonLdContainer::includeMetaData', __METHOD__); |
| 54 | - $uniqueKey = $this->handle . $dependency->tags[3] . '-v2'; |
|
| 54 | + $uniqueKey = $this->handle.$dependency->tags[3].'-v2'; |
|
| 55 | 55 | $cache = Craft::$app->getCache(); |
| 56 | 56 | if ($this->clearCache) { |
| 57 | 57 | TagDependency::invalidate($cache, $dependency->tags[3]); |
| 58 | 58 | } |
| 59 | 59 | [$jsonLd, $attrs] = $cache->getOrSet( |
| 60 | - self::CONTAINER_TYPE . $uniqueKey, |
|
| 60 | + self::CONTAINER_TYPE.$uniqueKey, |
|
| 61 | 61 | function() use ($uniqueKey) { |
| 62 | 62 | Craft::info( |
| 63 | - self::CONTAINER_TYPE . ' cache miss: ' . $uniqueKey, |
|
| 63 | + self::CONTAINER_TYPE.' cache miss: '.$uniqueKey, |
|
| 64 | 64 | __METHOD__ |
| 65 | 65 | ); |
| 66 | 66 | |
@@ -116,7 +116,7 @@ discard block |
||
| 116 | 116 | */ |
| 117 | 117 | public function getFilename(int $groupId): string |
| 118 | 118 | { |
| 119 | - return 'sitemaps-' . $groupId . '-sitemap.xml'; |
|
| 119 | + return 'sitemaps-'.$groupId.'-sitemap.xml'; |
|
| 120 | 120 | } |
| 121 | 121 | |
| 122 | 122 | /** |
@@ -149,7 +149,7 @@ discard block |
||
| 149 | 149 | ], |
| 150 | 150 | ]); |
| 151 | 151 | |
| 152 | - return $cache->getOrSet(self::CACHE_KEY . $groupId . '.' . $siteId, function() use ($groupSiteIds, $siteId) { |
|
| 152 | + return $cache->getOrSet(self::CACHE_KEY.$groupId.'.'.$siteId, function() use ($groupSiteIds, $siteId) { |
|
| 153 | 153 | Craft::info( |
| 154 | 154 | 'Sitemap index cache miss', |
| 155 | 155 | __METHOD__ |