@@ -155,7 +155,7 @@ discard block |
||
155 | 155 | // Get the page number of this request |
156 | 156 | $request = Craft::$app->getRequest(); |
157 | 157 | if (!$request->isConsoleRequest) { |
158 | - $this->paginationPage = (string)$request->pageNum; |
|
158 | + $this->paginationPage = (string) $request->pageNum; |
|
159 | 159 | } |
160 | 160 | } |
161 | 161 | |
@@ -233,7 +233,7 @@ discard block |
||
233 | 233 | $cache = Craft::$app->getCache(); |
234 | 234 | list($this->metaGlobalVars, $this->metaSiteVars, $this->metaSitemapVars, $this->metaContainers) = $cache->getOrSet( |
235 | 235 | self::CACHE_KEY.$cacheKey, |
236 | - function () use ($uri, $siteId) { |
|
236 | + function() use ($uri, $siteId) { |
|
237 | 237 | Craft::info( |
238 | 238 | 'Meta container cache miss: '.$uri.'/'.$siteId, |
239 | 239 | __METHOD__ |
@@ -269,7 +269,7 @@ discard block |
||
269 | 269 | $uniqueKey .= $bodyPosition; |
270 | 270 | $scriptData = Craft::$app->getCache()->getOrSet( |
271 | 271 | self::GLOBALS_CACHE_KEY.$uniqueKey, |
272 | - function () use ($uniqueKey, $bodyPosition) { |
|
272 | + function() use ($uniqueKey, $bodyPosition) { |
|
273 | 273 | Craft::info( |
274 | 274 | self::SCRIPTS_CACHE_KEY.' cache miss: '.$uniqueKey, |
275 | 275 | __METHOD__ |
@@ -283,7 +283,7 @@ discard block |
||
283 | 283 | foreach ($scriptContainer->data as $metaScript) { |
284 | 284 | /** @var MetaScript $metaScript */ |
285 | 285 | if (!empty($metaScript->bodyTemplatePath) |
286 | - && ((int)$metaScript->bodyPosition === $bodyPosition)) { |
|
286 | + && ((int) $metaScript->bodyPosition === $bodyPosition)) { |
|
287 | 287 | $scriptData[] = $metaScript->renderBodyHtml(); |
288 | 288 | } |
289 | 289 | } |
@@ -344,7 +344,7 @@ discard block |
||
344 | 344 | $uniqueKey = $dependency->tags[3] ?? self::GLOBALS_CACHE_KEY; |
345 | 345 | list($this->metaGlobalVars, $this->metaSiteVars) = Craft::$app->getCache()->getOrSet( |
346 | 346 | self::GLOBALS_CACHE_KEY.$uniqueKey, |
347 | - function () use ($uniqueKey) { |
|
347 | + function() use ($uniqueKey) { |
|
348 | 348 | Craft::info( |
349 | 349 | self::GLOBALS_CACHE_KEY.' cache miss: '.$uniqueKey, |
350 | 350 | __METHOD__ |
@@ -864,7 +864,7 @@ discard block |
||
864 | 864 | } |
865 | 865 | // Iterate through the allowed parameters, adding the key/value pair to the $result string as found |
866 | 866 | $request = Craft::$app->getRequest(); |
867 | - foreach($allowedParams as $allowedParam) { |
|
867 | + foreach ($allowedParams as $allowedParam) { |
|
868 | 868 | $value = $request->getParam($allowedParam); |
869 | 869 | if ($value !== null) { |
870 | 870 | $result .= "{$allowedParam}={$value}"; |
@@ -913,7 +913,7 @@ discard block |
||
913 | 913 | list ($testValue, $sourceSetting) = explode('.', $action); |
914 | 914 | |
915 | 915 | if ($parentBundle->{$container}->{$property} == $testValue) { |
916 | - $metaBundle->metaGlobalVars->{$settingName} = $metaBundle->metaGlobalVars->{$sourceSetting}; |
|
916 | + $metaBundle->metaGlobalVars->{$settingName} = $metaBundle->metaGlobalVars->{$sourceSetting}; |
|
917 | 917 | } |
918 | 918 | } |
919 | 919 | } |