Passed
Push — master ( 7f833c...0c217f )
by Chauncey
08:06
created
src/Charcoal/Admin/Template/System/ClearCacheTemplate.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -297,7 +297,7 @@  discard block
 block discarded – undo
297 297
             $item['ident']   = $this->formatApcCacheKey($item['key']);
298 298
             $item['size']    = $this->formatBytes($item['mem_size']);
299 299
             $item['created'] = date('Y-m-d H:i:s', $item['creation_time']);
300
-            $item['expiry']  = date('Y-m-d H:i:s', ($item['creation_time']+$item['ttl']));
300
+            $item['expiry']  = date('Y-m-d H:i:s', ($item['creation_time'] + $item['ttl']));
301 301
             yield $item;
302 302
         }
303 303
     }
@@ -373,8 +373,8 @@  discard block
 block discarded – undo
373 373
         if (preg_match($pattern, $key, $matches)) {
374 374
             $sns = $matches['stashNS'];
375 375
             $iid = trim($matches['itemID'], ':');
376
-            $iid = preg_replace([ '/:+/', '/\.+/' ], [ '⇒', '/' ], $iid);
377
-            $key = $matches['stashNS'] . '⇒' . $iid;
376
+            $iid = preg_replace(['/:+/', '/\.+/'], ['⇒', '/'], $iid);
377
+            $key = $matches['stashNS'].'⇒'.$iid;
378 378
         }
379 379
 
380 380
         return $key;
@@ -392,7 +392,7 @@  discard block
 block discarded – undo
392 392
             return 0;
393 393
         }
394 394
 
395
-        $units = [ 'B', 'KB', 'MB', 'GB', 'TB' ];
395
+        $units = ['B', 'KB', 'MB', 'GB', 'TB'];
396 396
         $base  = log($bytes, 1024);
397 397
         $floor = floor($base);
398 398
         $unit  = $units[$floor];
Please login to merge, or discard this patch.