@@ -113,7 +113,7 @@ discard block |
||
| 113 | 113 | $dirPrefix = CRAFT_TEMPLATES_PATH; |
| 114 | 114 | } |
| 115 | 115 | $name = strstr($name, $dirPrefix); |
| 116 | - $name = (string)str_replace($dirPrefix, '', $name); |
|
| 116 | + $name = (string) str_replace($dirPrefix, '', $name); |
|
| 117 | 117 | $path = self::combinePaths( |
| 118 | 118 | $config['localFiles']['basePath'], |
| 119 | 119 | $config['localFiles']['criticalPrefix'], |
@@ -457,7 +457,7 @@ discard block |
||
| 457 | 457 | $cacheKeySuffix = $settings->cacheKeySuffix ?? ''; |
| 458 | 458 | $file = $cache->getOrSet( |
| 459 | 459 | self::CACHE_KEY.$cacheKeySuffix.$path, |
| 460 | - function () use ($path, $callback) { |
|
| 460 | + function() use ($path, $callback) { |
|
| 461 | 461 | $result = null; |
| 462 | 462 | if (UrlHelper::isAbsoluteUrl($path)) { |
| 463 | 463 | /** |
@@ -506,7 +506,7 @@ discard block |
||
| 506 | 506 | protected static function combinePaths(string ...$paths): string |
| 507 | 507 | { |
| 508 | 508 | $last_key = count($paths) - 1; |
| 509 | - array_walk($paths, function (&$val, $key) use ($last_key) { |
|
| 509 | + array_walk($paths, function(&$val, $key) use ($last_key) { |
|
| 510 | 510 | switch ($key) { |
| 511 | 511 | case 0: |
| 512 | 512 | $val = rtrim($val, '/ '); |