Passed
Push — develop ( 2cdb1b...2813b7 )
by Andrew
09:46
created
src/helpers/Manifest.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -150,12 +150,12 @@  discard block
 block discarded – undo
150 150
                 $dirPrefix = CRAFT_TEMPLATES_PATH;
151 151
             }
152 152
             $name = strstr($name, $dirPrefix);
153
-            $name = (string)str_replace($dirPrefix, '', $name);
153
+            $name = (string) str_replace($dirPrefix, '', $name);
154 154
             $path = self::combinePaths(
155 155
                     $config['localFiles']['basePath'],
156 156
                     $config['localFiles']['criticalPrefix'],
157 157
                     $name
158
-                ) . $config['localFiles']['criticalSuffix'];
158
+                ).$config['localFiles']['criticalSuffix'];
159 159
 
160 160
             return self::getCssInlineTags($path, $attributes);
161 161
         }
@@ -571,7 +571,7 @@  discard block
 block discarded – undo
571 571
         $dependency = new TagDependency([
572 572
             'tags' => [
573 573
                 self::CACHE_TAG,
574
-                self::CACHE_TAG . $path,
574
+                self::CACHE_TAG.$path,
575 575
             ],
576 576
         ]);
577 577
         // If this is a file path such as for the `manifest.json`, add a FileDependency so it's cache bust if the file changes
@@ -594,8 +594,8 @@  discard block
 block discarded – undo
594 594
         $settings = Twigpack::$plugin->getSettings();
595 595
         $cacheKeySuffix = $settings->cacheKeySuffix ?? '';
596 596
         $file = $cache->getOrSet(
597
-            self::CACHE_KEY . $cacheKeySuffix . $path,
598
-            function () use ($path, $callback) {
597
+            self::CACHE_KEY.$cacheKeySuffix.$path,
598
+            function() use ($path, $callback) {
599 599
                 $result = null;
600 600
                 $contents = null;
601 601
                 if (UrlHelper::isAbsoluteUrl($path)) {
@@ -673,7 +673,7 @@  discard block
 block discarded – undo
673 673
     protected static function combinePaths(string ...$paths): string
674 674
     {
675 675
         $last_key = count($paths) - 1;
676
-        array_walk($paths, function (&$val, $key) use ($last_key) {
676
+        array_walk($paths, function(&$val, $key) use ($last_key) {
677 677
             switch ($key) {
678 678
                 case 0:
679 679
                     $val = rtrim($val, '/ ');
@@ -736,7 +736,7 @@  discard block
 block discarded – undo
736 736
                         ]);
737 737
                         break;
738 738
                     case 'header':
739
-                        Craft::$app->getResponse()->getHeaders()->add($cspHeader, $cspValue . ';');
739
+                        Craft::$app->getResponse()->getHeaders()->add($cspHeader, $cspValue.';');
740 740
                         break;
741 741
                     default:
742 742
                         break;
@@ -783,7 +783,7 @@  discard block
 block discarded – undo
783 783
     {
784 784
         $json = JsonHelper::decodeIfJson($string);
785 785
         if (is_string($json)) {
786
-            Craft::error('Error decoding JSON file: ' . $json, __METHOD__);
786
+            Craft::error('Error decoding JSON file: '.$json, __METHOD__);
787 787
             $json = null;
788 788
         }
789 789
 
Please login to merge, or discard this patch.