@@ -297,7 +297,7 @@ discard block |
||
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 |
||
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 |
||
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]; |