@@ -99,7 +99,7 @@ discard block |
||
| 99 | 99 | $this->database->selectCollection($collectionName) |
| 100 | 100 | ->createIndex( |
| 101 | 101 | [self::DRIVER_EDATE_WRAPPER_INDEX => 1], |
| 102 | - ['expireAfterSeconds' => 0, 'name' => 'auto_expire_index'] |
|
| 102 | + ['expireAfterSeconds' => 0, 'name' => 'auto_expire_index'] |
|
| 103 | 103 | ); |
| 104 | 104 | } |
| 105 | 105 | |
@@ -161,7 +161,7 @@ discard block |
||
| 161 | 161 | self::DRIVER_CDATE_WRAPPER_INDEX => new UTCDateTime($item->getCreationDate()), |
| 162 | 162 | ]; |
| 163 | 163 | } |
| 164 | - $result = (array)$this->getCollection()->updateOne( |
|
| 164 | + $result = (array) $this->getCollection()->updateOne( |
|
| 165 | 165 | ['_id' => $this->getMongoDbItemKey($item)], |
| 166 | 166 | [ |
| 167 | 167 | '$set' => $set, |
@@ -230,7 +230,7 @@ discard block |
||
| 230 | 230 | ) |
| 231 | 231 | )->toArray()[0]; |
| 232 | 232 | |
| 233 | - $arrayFilterRecursive = static function ($array, callable $callback = null) use (&$arrayFilterRecursive) { |
|
| 233 | + $arrayFilterRecursive = static function($array, callable $callback = null) use (&$arrayFilterRecursive) { |
|
| 234 | 234 | $array = $callback($array); |
| 235 | 235 | |
| 236 | 236 | if (\is_object($array) || \is_array($array)) { |
@@ -242,12 +242,12 @@ discard block |
||
| 242 | 242 | return $array; |
| 243 | 243 | }; |
| 244 | 244 | |
| 245 | - $callback = static function ($item) { |
|
| 245 | + $callback = static function($item) { |
|
| 246 | 246 | /** |
| 247 | 247 | * Remove unserializable properties |
| 248 | 248 | */ |
| 249 | 249 | if ($item instanceof UTCDateTime) { |
| 250 | - return (string)$item; |
|
| 250 | + return (string) $item; |
|
| 251 | 251 | } |
| 252 | 252 | return $item; |
| 253 | 253 | }; |
@@ -301,7 +301,7 @@ discard block |
||
| 301 | 301 | if (count($servers) > 0) { |
| 302 | 302 | $host = array_reduce( |
| 303 | 303 | $servers, |
| 304 | - static fn ($carry, $data) => $carry . ($carry === '' ? '' : ',') . $data['host'] . ':' . $data['port'], |
|
| 304 | + static fn($carry, $data) => $carry . ($carry === '' ? '' : ',') . $data['host'] . ':' . $data['port'], |
|
| 305 | 305 | '' |
| 306 | 306 | ); |
| 307 | 307 | $port = false; |
@@ -146,7 +146,7 @@ |
||
| 146 | 146 | } |
| 147 | 147 | try { |
| 148 | 148 | return \array_map( |
| 149 | - static fn (ExtendedCacheItemInterface $item) => $item->isHit() ? $item->get() : $default, |
|
| 149 | + static fn(ExtendedCacheItemInterface $item) => $item->isHit() ? $item->get() : $default, |
|
| 150 | 150 | $this->internalCacheInstance->getItems($keys) |
| 151 | 151 | ); |
| 152 | 152 | } catch (PhpfastcacheInvalidArgumentException $e) { |