@@ -140,7 +140,7 @@ discard block |
||
| 140 | 140 | return \md5($driverClass . \serialize( |
| 141 | 141 | \array_filter( |
| 142 | 142 | $config->toArray(), |
| 143 | - static fn ($val) => $config->isValueSerializable($val) |
|
| 143 | + static fn($val) => $config->isValueSerializable($val) |
|
| 144 | 144 | ) |
| 145 | 145 | )); |
| 146 | 146 | } |
@@ -249,7 +249,7 @@ discard block |
||
| 249 | 249 | $found = false; |
| 250 | 250 | self::$instances = \array_filter( |
| 251 | 251 | \array_map( |
| 252 | - static function (ExtendedCacheItemPoolInterface $cachePool) use ($cachePoolInstance, &$found) { |
|
| 252 | + static function(ExtendedCacheItemPoolInterface $cachePool) use ($cachePoolInstance, &$found) { |
|
| 253 | 253 | if (\spl_object_hash($cachePool) === \spl_object_hash($cachePoolInstance)) { |
| 254 | 254 | $found = true; |
| 255 | 255 | return null; |
@@ -59,7 +59,7 @@ discard block |
||
| 59 | 59 | public function getItem(string $key): ExtendedCacheItemInterface |
| 60 | 60 | { |
| 61 | 61 | return $this->getStandardizedItem( |
| 62 | - $this->makeOperation(static function (ExtendedCacheItemPoolInterface $pool) use ($key) { |
|
| 62 | + $this->makeOperation(static function(ExtendedCacheItemPoolInterface $pool) use ($key) { |
|
| 63 | 63 | return $pool->getItem($key); |
| 64 | 64 | }) ?? (new Item($this, $key, $this->getEventManager()))->expiresAfter(abs($this->getConfig()->getDefaultTtl())), |
| 65 | 65 | $this |
@@ -111,7 +111,7 @@ discard block |
||
| 111 | 111 | public function hasItem(string $key): bool |
| 112 | 112 | { |
| 113 | 113 | return $this->makeOperation( |
| 114 | - static fn (ExtendedCacheItemPoolInterface $pool) => $pool->hasItem($key) |
|
| 114 | + static fn(ExtendedCacheItemPoolInterface $pool) => $pool->hasItem($key) |
|
| 115 | 115 | ); |
| 116 | 116 | } |
| 117 | 117 | |
@@ -121,7 +121,7 @@ discard block |
||
| 121 | 121 | public function clear(): bool |
| 122 | 122 | { |
| 123 | 123 | return $this->makeOperation( |
| 124 | - static fn (ExtendedCacheItemPoolInterface $pool) => $pool->clear() |
|
| 124 | + static fn(ExtendedCacheItemPoolInterface $pool) => $pool->clear() |
|
| 125 | 125 | ); |
| 126 | 126 | } |
| 127 | 127 | |
@@ -131,7 +131,7 @@ discard block |
||
| 131 | 131 | public function deleteItem(string $key): bool |
| 132 | 132 | { |
| 133 | 133 | return $this->makeOperation( |
| 134 | - static fn (ExtendedCacheItemPoolInterface $pool) => $pool->deleteItem($key) |
|
| 134 | + static fn(ExtendedCacheItemPoolInterface $pool) => $pool->deleteItem($key) |
|
| 135 | 135 | ); |
| 136 | 136 | } |
| 137 | 137 | |
@@ -141,7 +141,7 @@ discard block |
||
| 141 | 141 | public function save(CacheItemInterface $item): bool |
| 142 | 142 | { |
| 143 | 143 | return $this->makeOperation( |
| 144 | - function (ExtendedCacheItemPoolInterface $pool) use ($item) { |
|
| 144 | + function(ExtendedCacheItemPoolInterface $pool) use ($item) { |
|
| 145 | 145 | /** @var ExtendedCacheItemInterface $item */ |
| 146 | 146 | $item->setHit(true); |
| 147 | 147 | return $pool->save($this->getStandardizedItem($item, $pool)); |
@@ -156,7 +156,7 @@ discard block |
||
| 156 | 156 | public function commit(): bool |
| 157 | 157 | { |
| 158 | 158 | return $this->makeOperation( |
| 159 | - static fn (ExtendedCacheItemPoolInterface $pool) => $pool->commit() |
|
| 159 | + static fn(ExtendedCacheItemPoolInterface $pool) => $pool->commit() |
|
| 160 | 160 | ); |
| 161 | 161 | } |
| 162 | 162 | } |
@@ -53,7 +53,7 @@ |
||
| 53 | 53 | return (new DriverStatistic()) |
| 54 | 54 | ->setData(implode(', ', array_keys($this->itemInstances))) |
| 55 | 55 | ->setRawData($info) |
| 56 | - ->setSize((int)$info['used_memory']) |
|
| 56 | + ->setSize((int) $info['used_memory']) |
|
| 57 | 57 | ->setInfo( |
| 58 | 58 | sprintf( |
| 59 | 59 | "The Redis daemon v%s is up since %s.\n For more information see RawData. \n Driver size includes the memory allocation size.", |