Completed
Push — master ( 1b7924...92759d )
by Chauncey
08:17
created
src/Charcoal/Admin/Template/System/ClearCacheTemplate.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -273,7 +273,7 @@  discard block
 block discarded – undo
273 273
             $item['ident']   = $this->formatApcCacheKey($item['key']);
274 274
             $item['size']    = $this->formatBytes($item['mem_size']);
275 275
             $item['created'] = date('Y-m-d H:i:s', $item['creation_time']);
276
-            $item['expiry']  = date('Y-m-d H:i:s', ($item['creation_time']+$item['ttl']));
276
+            $item['expiry']  = date('Y-m-d H:i:s', ($item['creation_time'] + $item['ttl']));
277 277
             yield $item;
278 278
         }
279 279
     }
@@ -320,7 +320,7 @@  discard block
 block discarded – undo
320 320
     {
321 321
         $nss = $this->cache->getNamespace();
322 322
         $key = str_replace($nss, '', strstr($key, $nss.'::'));
323
-        $key = preg_replace([ '/:+/', '/\.+/' ], [ '⇒', '/' ], trim($key, ':'));
323
+        $key = preg_replace(['/:+/', '/\.+/'], ['⇒', '/'], trim($key, ':'));
324 324
         return $key;
325 325
     }
326 326
 
@@ -336,7 +336,7 @@  discard block
 block discarded – undo
336 336
             return 0;
337 337
         }
338 338
 
339
-        $units = [ 'B', 'KB', 'MB', 'GB', 'TB' ];
339
+        $units = ['B', 'KB', 'MB', 'GB', 'TB'];
340 340
         $base  = log($bytes, 1024);
341 341
         $floor = floor($base);
342 342
         $unit  = $units[$floor];
Please login to merge, or discard this patch.