Passed
Push — develop ( 2d85f4...a6d9de )
by Andrew
06:09
created
src/helpers/Manifest.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -34,8 +34,8 @@  discard block
 block discarded – undo
34 34
 
35 35
     const ASSET_CLASS = InstantAnalyticsAsset::class;
36 36
 
37
-    const CACHE_KEY = 'twigpack-' . self::ASSET_CLASS;
38
-    const CACHE_TAG = 'twigpack-' . self::ASSET_CLASS;
37
+    const CACHE_KEY = 'twigpack-'.self::ASSET_CLASS;
38
+    const CACHE_TAG = 'twigpack-'.self::ASSET_CLASS;
39 39
 
40 40
     const DEVMODE_CACHE_DURATION = 1;
41 41
 
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
         self::$config['server']['publicPath'] = $baseAssetsUrl;
103 103
         $useDevServer = getenv('NYS_PLUGIN_DEVSERVER');
104 104
         if ($useDevServer !== false) {
105
-            self::$config['useDevServer'] = (bool)$useDevServer;
105
+            self::$config['useDevServer'] = (bool) $useDevServer;
106 106
         }
107 107
     }
108 108
 
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
     public static function registerJsModules(array $modules)
117 117
     {
118 118
         $view = Craft::$app->getView();
119
-        foreach($modules as $module) {
119
+        foreach ($modules as $module) {
120 120
             $jsModule = self::getModule(self::$config, $module, 'modern');
121 121
             if ($jsModule) {
122 122
                 $view->registerJsFile($jsModule, [
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
     public static function registerCssModules(array $modules)
137 137
     {
138 138
         $view = Craft::$app->getView();
139
-        foreach($modules as $module) {
139
+        foreach ($modules as $module) {
140 140
             $cssModule = self::getModule(self::$config, $module, 'legacy');
141 141
             if ($cssModule) {
142 142
                 $view->registerCssFile($cssModule, [
@@ -348,7 +348,7 @@  discard block
 block discarded – undo
348 348
         $cache = Craft::$app->getCache();
349 349
         $file = $cache->getOrSet(
350 350
             self::CACHE_KEY.$path,
351
-            function () use ($path, $callback) {
351
+            function() use ($path, $callback) {
352 352
                 $result = null;
353 353
                 $contents = @file_get_contents($path);
354 354
                 if ($contents) {
@@ -378,7 +378,7 @@  discard block
 block discarded – undo
378 378
     protected static function combinePaths(string ...$paths): string
379 379
     {
380 380
         $last_key = \count($paths) - 1;
381
-        array_walk($paths, function (&$val, $key) use ($last_key) {
381
+        array_walk($paths, function(&$val, $key) use ($last_key) {
382 382
             switch ($key) {
383 383
                 case 0:
384 384
                     $val = rtrim($val, '/ ');
Please login to merge, or discard this patch.