@@ -254,7 +254,7 @@ |
||
254 | 254 | protected function driverClear(): bool |
255 | 255 | { |
256 | 256 | try { |
257 | - return $this->collection->deleteMany([])->isAcknowledged(); |
|
257 | + return $this->collection->deleteMany([])->isAcknowledged(); |
|
258 | 258 | } catch (MongoDBException $e) { |
259 | 259 | throw new PhpfastcacheDriverException('Got error while trying to empty the collection: ' . $e->getMessage(), 0, $e); |
260 | 260 | } |
@@ -97,7 +97,7 @@ discard block |
||
97 | 97 | ) |
98 | 98 | )->toArray()[0]; |
99 | 99 | |
100 | - $array_filter_recursive = static function ($array, callable $callback = null) use (&$array_filter_recursive) { |
|
100 | + $array_filter_recursive = static function($array, callable $callback = null) use (&$array_filter_recursive) { |
|
101 | 101 | $array = $callback($array); |
102 | 102 | |
103 | 103 | if (\is_object($array) || \is_array($array)) { |
@@ -109,12 +109,12 @@ discard block |
||
109 | 109 | return $array; |
110 | 110 | }; |
111 | 111 | |
112 | - $callback = static function ($item) { |
|
112 | + $callback = static function($item) { |
|
113 | 113 | /** |
114 | 114 | * Remove unserializable properties |
115 | 115 | */ |
116 | 116 | if ($item instanceof UTCDateTime) { |
117 | - return (string)$item; |
|
117 | + return (string) $item; |
|
118 | 118 | } |
119 | 119 | return $item; |
120 | 120 | }; |
@@ -209,7 +209,7 @@ discard block |
||
209 | 209 | ) : new UTCDateTime(time() * 1000)), |
210 | 210 | ]; |
211 | 211 | } |
212 | - $result = (array)$this->getCollection()->updateOne( |
|
212 | + $result = (array) $this->getCollection()->updateOne( |
|
213 | 213 | ['_id' => $this->getMongoDbItemKey($item)], |
214 | 214 | [ |
215 | 215 | '$set' => $set, |
@@ -309,7 +309,7 @@ discard block |
||
309 | 309 | if (count($servers) > 0) { |
310 | 310 | $host = array_reduce( |
311 | 311 | $servers, |
312 | - static function ($carry, $data) { |
|
312 | + static function($carry, $data) { |
|
313 | 313 | $carry .= ($carry === '' ? '' : ',') . $data['host'] . ':' . $data['port']; |
314 | 314 | return $carry; |
315 | 315 | }, |