@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | */ |
| 48 | 48 | public function getStats(): DriverStatistic |
| 49 | 49 | { |
| 50 | - $stats = (array)apcu_cache_info(); |
|
| 50 | + $stats = (array) apcu_cache_info(); |
|
| 51 | 51 | $date = (new DateTime())->setTimestamp($stats['start_time']); |
| 52 | 52 | |
| 53 | 53 | return (new DriverStatistic()) |
@@ -60,7 +60,7 @@ discard block |
||
| 60 | 60 | ) |
| 61 | 61 | ) |
| 62 | 62 | ->setRawData($stats) |
| 63 | - ->setSize((int)$stats['mem_size']); |
|
| 63 | + ->setSize((int) $stats['mem_size']); |
|
| 64 | 64 | } |
| 65 | 65 | |
| 66 | 66 | /** |
@@ -80,7 +80,7 @@ discard block |
||
| 80 | 80 | { |
| 81 | 81 | $this->assertCacheItemType($item, Item::class); |
| 82 | 82 | |
| 83 | - return (bool)apcu_store($item->getKey(), $this->driverPreWrap($item), $item->getTtl()); |
|
| 83 | + return (bool) apcu_store($item->getKey(), $this->driverPreWrap($item), $item->getTtl()); |
|
| 84 | 84 | } |
| 85 | 85 | |
| 86 | 86 | /** |
@@ -107,7 +107,7 @@ discard block |
||
| 107 | 107 | { |
| 108 | 108 | $this->assertCacheItemType($item, Item::class); |
| 109 | 109 | |
| 110 | - return (bool)apcu_delete($item->getKey()); |
|
| 110 | + return (bool) apcu_delete($item->getKey()); |
|
| 111 | 111 | } |
| 112 | 112 | |
| 113 | 113 | /** |
@@ -35,11 +35,11 @@ |
||
| 35 | 35 | * @return mixed |
| 36 | 36 | * @throws InvalidArgumentException |
| 37 | 37 | */ |
| 38 | - public function get(string $cacheKey, callable $callback, DateInterval|int $expiresAfter = null): mixed |
|
| 38 | + public function get(string $cacheKey, callable $callback, DateInterval | int $expiresAfter = null): mixed |
|
| 39 | 39 | { |
| 40 | 40 | $cacheItem = $this->cacheInstance->getItem($cacheKey); |
| 41 | 41 | |
| 42 | - if (! $cacheItem->isHit()) { |
|
| 42 | + if (!$cacheItem->isHit()) { |
|
| 43 | 43 | /* |
| 44 | 44 | * Parameter $cacheItem will be available as of 8.0.6 |
| 45 | 45 | */ |
@@ -136,7 +136,7 @@ |
||
| 136 | 136 | |
| 137 | 137 | protected function decodeFirestoreDocument(array $snapshotData): array |
| 138 | 138 | { |
| 139 | - return \array_map(static function ($datum) { |
|
| 139 | + return \array_map(static function($datum) { |
|
| 140 | 140 | if ($datum instanceof GoogleTimestamp) { |
| 141 | 141 | $date = $datum->get(); |
| 142 | 142 | if ($date instanceof \DateTimeImmutable) { |