@@ -154,7 +154,7 @@ discard block |
||
| 154 | 154 | // Get the page number of this request |
| 155 | 155 | $request = Craft::$app->getRequest(); |
| 156 | 156 | if (!$request->isConsoleRequest) { |
| 157 | - $this->paginationPage = (string)$request->pageNum; |
|
| 157 | + $this->paginationPage = (string) $request->pageNum; |
|
| 158 | 158 | } |
| 159 | 159 | } |
| 160 | 160 | |
@@ -229,7 +229,7 @@ discard block |
||
| 229 | 229 | $cache = Craft::$app->getCache(); |
| 230 | 230 | list($this->metaGlobalVars, $this->metaSiteVars, $this->metaSitemapVars, $this->metaContainers) = $cache->getOrSet( |
| 231 | 231 | self::CACHE_KEY.$cacheKey, |
| 232 | - function () use ($uri, $siteId) { |
|
| 232 | + function() use ($uri, $siteId) { |
|
| 233 | 233 | Craft::info( |
| 234 | 234 | 'Meta container cache miss: '.$uri.'/'.$siteId, |
| 235 | 235 | __METHOD__ |
@@ -265,7 +265,7 @@ discard block |
||
| 265 | 265 | $uniqueKey .= $bodyPosition; |
| 266 | 266 | $scriptData = Craft::$app->getCache()->getOrSet( |
| 267 | 267 | self::GLOBALS_CACHE_KEY.$uniqueKey, |
| 268 | - function () use ($uniqueKey, $bodyPosition) { |
|
| 268 | + function() use ($uniqueKey, $bodyPosition) { |
|
| 269 | 269 | Craft::info( |
| 270 | 270 | self::SCRIPTS_CACHE_KEY.' cache miss: '.$uniqueKey, |
| 271 | 271 | __METHOD__ |
@@ -279,7 +279,7 @@ discard block |
||
| 279 | 279 | foreach ($scriptContainer->data as $metaScript) { |
| 280 | 280 | /** @var MetaScript $metaScript */ |
| 281 | 281 | if (!empty($metaScript->bodyTemplatePath) |
| 282 | - && ((int)$metaScript->bodyPosition === $bodyPosition)) { |
|
| 282 | + && ((int) $metaScript->bodyPosition === $bodyPosition)) { |
|
| 283 | 283 | $scriptData[] = $metaScript->renderBodyHtml(); |
| 284 | 284 | } |
| 285 | 285 | } |
@@ -340,7 +340,7 @@ discard block |
||
| 340 | 340 | $uniqueKey = $dependency->tags[3] ?? self::GLOBALS_CACHE_KEY; |
| 341 | 341 | list($this->metaGlobalVars, $this->metaSiteVars) = Craft::$app->getCache()->getOrSet( |
| 342 | 342 | self::GLOBALS_CACHE_KEY.$uniqueKey, |
| 343 | - function () use ($uniqueKey) { |
|
| 343 | + function() use ($uniqueKey) { |
|
| 344 | 344 | Craft::info( |
| 345 | 345 | self::GLOBALS_CACHE_KEY.' cache miss: '.$uniqueKey, |
| 346 | 346 | __METHOD__ |
@@ -880,7 +880,7 @@ discard block |
||
| 880 | 880 | list ($testValue, $sourceSetting) = explode('.', $action); |
| 881 | 881 | |
| 882 | 882 | if ($parentBundle->{$container}->{$property} == $testValue) { |
| 883 | - $metaBundle->metaGlobalVars->{$settingName} = $metaBundle->metaGlobalVars->{$sourceSetting}; |
|
| 883 | + $metaBundle->metaGlobalVars->{$settingName} = $metaBundle->metaGlobalVars->{$sourceSetting}; |
|
| 884 | 884 | } |
| 885 | 885 | } |
| 886 | 886 | } |