@@ -395,8 +395,8 @@ discard block |
||
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 |
||
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 |
||
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 | } |
@@ -97,7 +97,7 @@ discard block |
||
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 |
||
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 | } |