@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | |
| 45 | 45 | protected ConfigurationOptionInterface $config; |
| 46 | 46 | |
| 47 | - protected object|array|null $instance; |
|
| 47 | + protected object | array | null $instance; |
|
| 48 | 48 | |
| 49 | 49 | protected string $driverName; |
| 50 | 50 | |
@@ -150,7 +150,7 @@ discard block |
||
| 150 | 150 | ]; |
| 151 | 151 | |
| 152 | 152 | if ($this->getConfig()->isItemDetailedDate()) { |
| 153 | - $wrap[ExtendedCacheItemPoolInterface::DRIVER_MDATE_WRAPPER_INDEX] = new DateTime();// Always on the latest date |
|
| 153 | + $wrap[ExtendedCacheItemPoolInterface::DRIVER_MDATE_WRAPPER_INDEX] = new DateTime(); // Always on the latest date |
|
| 154 | 154 | /** |
| 155 | 155 | * If the creation date exists |
| 156 | 156 | * reuse it else set a new Date |
@@ -162,7 +162,7 @@ discard block |
||
| 162 | 162 | } |
| 163 | 163 | |
| 164 | 164 | if ($stringifyDate) { |
| 165 | - \array_walk($wrap, static function (mixed &$value, string $key): void { |
|
| 165 | + \array_walk($wrap, static function(mixed &$value, string $key): void { |
|
| 166 | 166 | if ($value instanceof DateTimeInterface && $key !== ExtendedCacheItemPoolInterface::DRIVER_DATA_WRAPPER_INDEX) { |
| 167 | 167 | $value = $value->format(DateTimeInterface::W3C); |
| 168 | 168 | } |
@@ -60,7 +60,7 @@ discard block |
||
| 60 | 60 | public function getItem(string $key): ExtendedCacheItemInterface |
| 61 | 61 | { |
| 62 | 62 | return $this->getStandardizedItem( |
| 63 | - $this->makeOperation(static function (ExtendedCacheItemPoolInterface $pool) use ($key) { |
|
| 63 | + $this->makeOperation(static function(ExtendedCacheItemPoolInterface $pool) use ($key) { |
|
| 64 | 64 | return $pool->getItem($key); |
| 65 | 65 | }) ?? (new Item($this, $key, $this->getEventManager()))->expiresAfter((int) abs($this->getConfig()->getDefaultTtl())), |
| 66 | 66 | $this |
@@ -142,7 +142,7 @@ discard block |
||
| 142 | 142 | public function save(CacheItemInterface $item): bool |
| 143 | 143 | { |
| 144 | 144 | return $this->makeOperation( |
| 145 | - function (ExtendedCacheItemPoolInterface $pool) use ($item) { |
|
| 145 | + function(ExtendedCacheItemPoolInterface $pool) use ($item) { |
|
| 146 | 146 | /** @var ExtendedCacheItemInterface $item */ |
| 147 | 147 | $item->setHit(true); |
| 148 | 148 | return $pool->save($this->getStandardizedItem($item, $pool)); |