@@ -125,12 +125,12 @@ discard block |
||
| 125 | 125 | $dirPrefix = CRAFT_TEMPLATES_PATH; |
| 126 | 126 | } |
| 127 | 127 | $name = strstr($name, $dirPrefix); |
| 128 | - $name = (string)str_replace($dirPrefix, '', $name); |
|
| 128 | + $name = (string) str_replace($dirPrefix, '', $name); |
|
| 129 | 129 | $path = self::combinePaths( |
| 130 | 130 | $config['localFiles']['basePath'], |
| 131 | 131 | $config['localFiles']['criticalPrefix'], |
| 132 | 132 | $name |
| 133 | - ) . $config['localFiles']['criticalSuffix']; |
|
| 133 | + ).$config['localFiles']['criticalSuffix']; |
|
| 134 | 134 | |
| 135 | 135 | return self::getCssInlineTags($path); |
| 136 | 136 | } |
@@ -521,7 +521,7 @@ discard block |
||
| 521 | 521 | $dependency = new TagDependency([ |
| 522 | 522 | 'tags' => [ |
| 523 | 523 | self::CACHE_TAG, |
| 524 | - self::CACHE_TAG . $path, |
|
| 524 | + self::CACHE_TAG.$path, |
|
| 525 | 525 | ], |
| 526 | 526 | ]); |
| 527 | 527 | // Set the cache duration based on devMode |
@@ -537,8 +537,8 @@ discard block |
||
| 537 | 537 | $settings = Twigpack::$plugin->getSettings(); |
| 538 | 538 | $cacheKeySuffix = $settings->cacheKeySuffix ?? ''; |
| 539 | 539 | $file = $cache->getOrSet( |
| 540 | - self::CACHE_KEY . $cacheKeySuffix . $path, |
|
| 541 | - function () use ($path, $callback) { |
|
| 540 | + self::CACHE_KEY.$cacheKeySuffix.$path, |
|
| 541 | + function() use ($path, $callback) { |
|
| 542 | 542 | $result = null; |
| 543 | 543 | if (UrlHelper::isAbsoluteUrl($path)) { |
| 544 | 544 | /** |
@@ -588,7 +588,7 @@ discard block |
||
| 588 | 588 | protected static function combinePaths(string ...$paths): string |
| 589 | 589 | { |
| 590 | 590 | $last_key = count($paths) - 1; |
| 591 | - array_walk($paths, function (&$val, $key) use ($last_key) { |
|
| 591 | + array_walk($paths, function(&$val, $key) use ($last_key) { |
|
| 592 | 592 | switch ($key) { |
| 593 | 593 | case 0: |
| 594 | 594 | $val = rtrim($val, '/ '); |
@@ -642,7 +642,7 @@ discard block |
||
| 642 | 642 | { |
| 643 | 643 | $json = JsonHelper::decodeIfJson($string); |
| 644 | 644 | if (is_string($json)) { |
| 645 | - Craft::error('Error decoding JSON file: ' . $json, __METHOD__); |
|
| 645 | + Craft::error('Error decoding JSON file: '.$json, __METHOD__); |
|
| 646 | 646 | $json = null; |
| 647 | 647 | } |
| 648 | 648 | |