@@ -20,11 +20,11 @@ |
||
20 | 20 | */ |
21 | 21 | |
22 | 22 | return [ |
23 | - MetaScriptContainer::CONTAINER_TYPE . ScriptService::GENERAL_HANDLE => [ |
|
23 | + MetaScriptContainer::CONTAINER_TYPE.ScriptService::GENERAL_HANDLE => [ |
|
24 | 24 | 'name' => 'General', |
25 | 25 | 'description' => 'Script Tags', |
26 | 26 | 'handle' => ScriptService::GENERAL_HANDLE, |
27 | - 'class' => (string)MetaScriptContainer::class, |
|
27 | + 'class' => (string) MetaScriptContainer::class, |
|
28 | 28 | 'include' => true, |
29 | 29 | 'dependencies' => [ |
30 | 30 | ], |
@@ -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; |
@@ -66,8 +66,8 @@ |
||
66 | 66 | string $sort = 'sourceName|asc', |
67 | 67 | int $page = 1, |
68 | 68 | int $per_page = 20, |
69 | - $filter = '', |
|
70 | - $siteId = 0 |
|
69 | + $filter = '', |
|
70 | + $siteId = 0 |
|
71 | 71 | ): Response { |
72 | 72 | $data = []; |
73 | 73 | $sortField = 'sourceName'; |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | // Query the db table |
100 | 100 | $offset = ($page - 1) * $per_page; |
101 | 101 | $currentSiteHandle = ''; |
102 | - if ((int)$siteId !== 0) { |
|
102 | + if ((int) $siteId !== 0) { |
|
103 | 103 | $site = Craft::$app->getSites()->getSiteById($siteId); |
104 | 104 | if ($site !== null) { |
105 | 105 | $currentSiteHandle = $site->handle; |
@@ -156,11 +156,11 @@ discard block |
||
156 | 156 | $numGrades = count(SettingsController::SETUP_GRADES); |
157 | 157 | $numFields = count(SettingsController::SEO_SETUP_FIELDS); |
158 | 158 | foreach (SettingsController::SEO_SETUP_FIELDS as $setupField => $setupLabel) { |
159 | - $stat += (int)!empty($metaBundle->metaGlobalVars[$setupField]); |
|
159 | + $stat += (int) !empty($metaBundle->metaGlobalVars[$setupField]); |
|
160 | 160 | $value = $variables['contentSetupChecklist'][$setupField]['value'] ?? 0; |
161 | 161 | $variables['contentSetupChecklist'][$setupField] = [ |
162 | 162 | 'label' => $setupLabel, |
163 | - 'value' => $value + (int)!empty($metaBundle->metaGlobalVars[$setupField]), |
|
163 | + 'value' => $value + (int) !empty($metaBundle->metaGlobalVars[$setupField]), |
|
164 | 164 | ]; |
165 | 165 | } |
166 | 166 | $stat = round($numGrades - (($stat * $numGrades) / $numFields)); |
@@ -85,7 +85,7 @@ |
||
85 | 85 | } |
86 | 86 | // Add the Link header |
87 | 87 | if (!empty($canonical)) { |
88 | - $headerValue = '<' . $canonical . '>; rel="canonical"'; |
|
88 | + $headerValue = '<'.$canonical.'>; rel="canonical"'; |
|
89 | 89 | $response->headers->add('Link', $headerValue); |
90 | 90 | } |
91 | 91 | // Ensure the file type is allowed |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | // Constants |
34 | 34 | // ========================================================================= |
35 | 35 | |
36 | - const FRONTENDTEMPLATES_CONTAINER = Seomatic::SEOMATIC_HANDLE . EditableTemplate::TEMPLATE_TYPE; |
|
36 | + const FRONTENDTEMPLATES_CONTAINER = Seomatic::SEOMATIC_HANDLE.EditableTemplate::TEMPLATE_TYPE; |
|
37 | 37 | |
38 | 38 | const HUMANS_TXT_HANDLE = 'humans'; |
39 | 39 | const ROBOTS_TXT_HANDLE = 'robots'; |
@@ -171,16 +171,16 @@ discard block |
||
171 | 171 | $dependency = new TagDependency([ |
172 | 172 | 'tags' => [ |
173 | 173 | self::GLOBAL_FRONTENDTEMPLATE_CACHE_TAG, |
174 | - self::FRONTENDTEMPLATE_CACHE_TAG . $template, |
|
175 | - self::FRONTENDTEMPLATE_CACHE_TAG . $template . $siteId, |
|
174 | + self::FRONTENDTEMPLATE_CACHE_TAG.$template, |
|
175 | + self::FRONTENDTEMPLATE_CACHE_TAG.$template.$siteId, |
|
176 | 176 | ], |
177 | 177 | ]); |
178 | 178 | $cache = Craft::$app->getCache(); |
179 | 179 | $html = $cache->getOrSet( |
180 | - self::CACHE_KEY . $template . $siteId, |
|
180 | + self::CACHE_KEY.$template.$siteId, |
|
181 | 181 | function() use ($template, $params) { |
182 | 182 | Craft::info( |
183 | - 'Frontend template cache miss: ' . $template, |
|
183 | + 'Frontend template cache miss: '.$template, |
|
184 | 184 | __METHOD__ |
185 | 185 | ); |
186 | 186 | $html = ''; |
@@ -251,9 +251,9 @@ discard block |
||
251 | 251 | public function invalidateFrontendTemplateCache(string $template) |
252 | 252 | { |
253 | 253 | $cache = Craft::$app->getCache(); |
254 | - TagDependency::invalidate($cache, self::FRONTENDTEMPLATE_CACHE_TAG . $template); |
|
254 | + TagDependency::invalidate($cache, self::FRONTENDTEMPLATE_CACHE_TAG.$template); |
|
255 | 255 | Craft::info( |
256 | - 'Frontend template cache cleared: ' . $template, |
|
256 | + 'Frontend template cache cleared: '.$template, |
|
257 | 257 | __METHOD__ |
258 | 258 | ); |
259 | 259 | } |
@@ -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 | ); |