@@ -183,7 +183,7 @@ discard block |
||
183 | 183 | ]; |
184 | 184 | |
185 | 185 | if ($this->getConfig()->isItemDetailedDate()) { |
186 | - $wrap[ExtendedCacheItemPoolInterface::DRIVER_MDATE_WRAPPER_INDEX] = new DateTime();// Always on the latest date |
|
186 | + $wrap[ExtendedCacheItemPoolInterface::DRIVER_MDATE_WRAPPER_INDEX] = new DateTime(); // Always on the latest date |
|
187 | 187 | /** |
188 | 188 | * If the creation date exists |
189 | 189 | * reuse it else set a new Date |
@@ -195,7 +195,7 @@ discard block |
||
195 | 195 | } |
196 | 196 | |
197 | 197 | if ($stringifyDate) { |
198 | - \array_walk($wrap, static function (mixed &$value, string $key): void { |
|
198 | + \array_walk($wrap, static function(mixed &$value, string $key): void { |
|
199 | 199 | if ($value instanceof DateTimeInterface && $key !== ExtendedCacheItemPoolInterface::DRIVER_DATA_WRAPPER_INDEX) { |
200 | 200 | $value = $value->format(DateTimeInterface::W3C); |
201 | 201 | } |
@@ -89,7 +89,7 @@ |
||
89 | 89 | * @param string[]|string $events |
90 | 90 | * @param callable $callback |
91 | 91 | */ |
92 | - public function on(array|string $events, callable $callback): void; |
|
92 | + public function on(array | string $events, callable $callback): void; |
|
93 | 93 | |
94 | 94 | /** |
95 | 95 | * @param string $eventName |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | /** |
33 | 33 | * @throws InvalidArgumentException |
34 | 34 | */ |
35 | - public function get(string|\Stringable $cacheKey, callable $callback, DateInterval|int $expiresAfter = null): mixed |
|
35 | + public function get(string | \Stringable $cacheKey, callable $callback, DateInterval | int $expiresAfter = null): mixed |
|
36 | 36 | { |
37 | 37 | $cacheItem = $this->cacheInstance->getItem((string) $cacheKey); |
38 | 38 | |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | /** |
55 | 55 | * @throws InvalidArgumentException |
56 | 56 | */ |
57 | - public function __invoke(string $cacheKey, callable $callback, DateInterval|int $expiresAfter = null): mixed |
|
57 | + public function __invoke(string $cacheKey, callable $callback, DateInterval | int $expiresAfter = null): mixed |
|
58 | 58 | { |
59 | 59 | return $this->get($cacheKey, $callback, $expiresAfter); |
60 | 60 | } |