Passed
Push — develop ( e8507c...62709e )
by Andrew
04:10
created
src/helpers/Manifest.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
     {
86 86
         $result = self::getFile($path);
87 87
         if ($result) {
88
-            $result = "<style>\r\n" . $result . "</style>\r\n";
88
+            $result = "<style>\r\n".$result."</style>\r\n";
89 89
 
90 90
             return $result;
91 91
         }
@@ -113,12 +113,12 @@  discard block
 block discarded – undo
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'],
120 120
                     $name
121
-                ) . $config['localFiles']['criticalSuffix'];
121
+                ).$config['localFiles']['criticalSuffix'];
122 122
 
123 123
             return self::getCssInlineTags($path);
124 124
         }
@@ -505,7 +505,7 @@  discard block
 block discarded – undo
505 505
         $dependency = new TagDependency([
506 506
             'tags' => [
507 507
                 self::CACHE_TAG,
508
-                self::CACHE_TAG . $path,
508
+                self::CACHE_TAG.$path,
509 509
             ],
510 510
         ]);
511 511
         // Set the cache duration based on devMode
@@ -521,8 +521,8 @@  discard block
 block discarded – undo
521 521
         $settings = Twigpack::$plugin->getSettings();
522 522
         $cacheKeySuffix = $settings->cacheKeySuffix ?? '';
523 523
         $file = $cache->getOrSet(
524
-            self::CACHE_KEY . $cacheKeySuffix . $path,
525
-            function () use ($path, $callback) {
524
+            self::CACHE_KEY.$cacheKeySuffix.$path,
525
+            function() use ($path, $callback) {
526 526
                 $result = null;
527 527
                 if (UrlHelper::isAbsoluteUrl($path)) {
528 528
                     /**
@@ -572,7 +572,7 @@  discard block
 block discarded – undo
572 572
     protected static function combinePaths(string ...$paths): string
573 573
     {
574 574
         $last_key = count($paths) - 1;
575
-        array_walk($paths, function (&$val, $key) use ($last_key) {
575
+        array_walk($paths, function(&$val, $key) use ($last_key) {
576 576
             switch ($key) {
577 577
                 case 0:
578 578
                     $val = rtrim($val, '/ ');
@@ -626,7 +626,7 @@  discard block
 block discarded – undo
626 626
     {
627 627
         $json = JsonHelper::decodeIfJson($string);
628 628
         if (is_string($json)) {
629
-            Craft::error('Error decoding JSON file: ' . $json, __METHOD__);
629
+            Craft::error('Error decoding JSON file: '.$json, __METHOD__);
630 630
             $json = null;
631 631
         }
632 632
 
Please login to merge, or discard this patch.