Passed
Push — master ( a8ec29...5f73fa )
by Chauncey
08:25
created
src/Charcoal/Admin/Template/System/ClearCacheTemplate.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -395,8 +395,8 @@  discard block
 block discarded – undo
395 395
         if (preg_match($pattern, $key, $matches)) {
396 396
             $sns = $matches['stashNS'];
397 397
             $iid = trim($matches['itemID'], ':');
398
-            $iid = preg_replace([ '/:+/', '/\.+/' ], [ '⇒', '/' ], $iid);
399
-            $key = $matches['stashNS'] . '⇒' . $iid;
398
+            $iid = preg_replace(['/:+/', '/\.+/'], ['⇒', '/'], $iid);
399
+            $key = $matches['stashNS'].'⇒'.$iid;
400 400
         }
401 401
 
402 402
         return $key;
@@ -414,7 +414,7 @@  discard block
 block discarded – undo
414 414
             return 0;
415 415
         }
416 416
 
417
-        $units = [ 'B', 'KB', 'MB', 'GB', 'TB' ];
417
+        $units = ['B', 'KB', 'MB', 'GB', 'TB'];
418 418
         $base  = log($bytes, 1024);
419 419
         $floor = floor($base);
420 420
         $unit  = $units[$floor];
@@ -478,7 +478,7 @@  discard block
 block discarded – undo
478 478
                 break;
479 479
         }
480 480
 
481
-        $time = $translator->transChoice($unit, $count, [ '{{ count }}' => $count ]);
481
+        $time = $translator->transChoice($unit, $count, ['{{ count }}' => $count]);
482 482
 
483 483
         return $time;
484 484
     }
Please login to merge, or discard this patch.
src/Charcoal/Admin/Action/System/ClearCacheAction.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
     private function clearPagesCache()
98 98
     {
99 99
         $cache  = $this->cachePool();
100
-        $result = $cache->deleteItems([ 'request', 'template' ]);
100
+        $result = $cache->deleteItems(['request', 'template']);
101 101
         return $result;
102 102
     }
103 103
 
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
     private function clearObjectsCache()
110 110
     {
111 111
         $cache  = $this->cachePool();
112
-        $result = $cache->deleteItems([ 'object', 'metadata' ]);
112
+        $result = $cache->deleteItems(['object', 'metadata']);
113 113
         return $result;
114 114
     }
115 115
 }
Please login to merge, or discard this patch.