@@ -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__ |
@@ -132,7 +132,7 @@ |
||
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 | ) { |
@@ -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 { |
@@ -155,8 +155,8 @@ discard block |
||
155 | 155 | $suffix = ''; |
156 | 156 | } |
157 | 157 | // Remove potential double spaces |
158 | - $prefix = preg_replace('/\s+/', ' ', $prefix);; |
|
159 | - $suffix = preg_replace('/\s+/', ' ', $suffix);; |
|
158 | + $prefix = preg_replace('/\s+/', ' ', $prefix); ; |
|
159 | + $suffix = preg_replace('/\s+/', ' ', $suffix); ; |
|
160 | 160 | $lengthAdjust = mb_strlen($prefix.$suffix); |
161 | 161 | // Parse the data |
162 | 162 | $scenario = $this->scenario; |
@@ -185,7 +185,7 @@ discard block |
||
185 | 185 | $data = trim($data); |
186 | 186 | // devMode |
187 | 187 | if (Seomatic::$devMode) { |
188 | - $data = Seomatic::$settings->devModeTitlePrefix . $data; |
|
188 | + $data = Seomatic::$settings->devModeTitlePrefix.$data; |
|
189 | 189 | } |
190 | 190 | } |
191 | 191 |
@@ -17,10 +17,10 @@ |
||
17 | 17 | { |
18 | 18 | if (version_compare(Craft::$app->getVersion(), '3.7', '>=')) { |
19 | 19 | Craft::$app->announcements->push( |
20 | - function ($language) { |
|
20 | + function($language) { |
|
21 | 21 | return Craft::t('seomatic', 'SEO Settings fields', [], $language); |
22 | 22 | }, |
23 | - function ($language) { |
|
23 | + function($language) { |
|
24 | 24 | return Craft::t('seomatic', 'The [SEO Settings]({url}) fields now feature **Override** lightswitches next to each setting, letting you explicitly override SEO settings on a per-entry basis.', [ |
25 | 25 | 'url' => 'https://nystudio107.com/docs/seomatic/fields.html', |
26 | 26 | ], $language); |