@@ -156,7 +156,7 @@ discard block |
||
156 | 156 | * Reset the Item |
157 | 157 | */ |
158 | 158 | $item->set(null) |
159 | - ->expiresAfter(\abs((int)$this->getConfig()['defaultTtl'])) |
|
159 | + ->expiresAfter(\abs((int) $this->getConfig()['defaultTtl'])) |
|
160 | 160 | ->setHit(false) |
161 | 161 | ->setTags([]); |
162 | 162 | if ($this->getConfig()->isItemDetailedDate()) { |
@@ -173,7 +173,7 @@ discard block |
||
173 | 173 | $item->setHit(true); |
174 | 174 | } |
175 | 175 | } else { |
176 | - $item->expiresAfter(\abs((int)$this->getConfig()['defaultTtl'])); |
|
176 | + $item->expiresAfter(\abs((int) $this->getConfig()['defaultTtl'])); |
|
177 | 177 | } |
178 | 178 | } |
179 | 179 | } |
@@ -303,7 +303,7 @@ discard block |
||
303 | 303 | } |
304 | 304 | } |
305 | 305 | |
306 | - return (bool)$return; |
|
306 | + return (bool) $return; |
|
307 | 307 | } |
308 | 308 | |
309 | 309 | /** |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | */ |
37 | 37 | public function getItemsAsJsonString(array $keys = [], $option = 0, $depth = 512): string |
38 | 38 | { |
39 | - $callback = function (CacheItemInterface $item) { |
|
39 | + $callback = function(CacheItemInterface $item) { |
|
40 | 40 | return $item->get(); |
41 | 41 | }; |
42 | 42 | return \json_encode(\array_map($callback, \array_values($this->getItems($keys))), $option, $depth); |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | if (\is_string($tagName)) { |
51 | 51 | $driverResponse = $this->getItem($this->getTagKey($tagName)); |
52 | 52 | if ($driverResponse->isHit()) { |
53 | - $items = (array)$driverResponse->get(); |
|
53 | + $items = (array) $driverResponse->get(); |
|
54 | 54 | |
55 | 55 | /** |
56 | 56 | * getItems() may provides expired item(s) |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | * |
63 | 63 | * #headache |
64 | 64 | */ |
65 | - return \array_filter($this->getItems(\array_unique(\array_keys($items))), function (ExtendedCacheItemInterface $item) { |
|
65 | + return \array_filter($this->getItems(\array_unique(\array_keys($items))), function(ExtendedCacheItemInterface $item) { |
|
66 | 66 | return $item->isHit(); |
67 | 67 | }); |
68 | 68 | } |
@@ -112,7 +112,7 @@ discard block |
||
112 | 112 | */ |
113 | 113 | public function getItemsByTagsAsJsonString(array $tagNames, $option = 0, $depth = 512): string |
114 | 114 | { |
115 | - $callback = function (CacheItemInterface $item) { |
|
115 | + $callback = function(CacheItemInterface $item) { |
|
116 | 116 | return $item->get(); |
117 | 117 | }; |
118 | 118 |
@@ -165,7 +165,7 @@ |
||
165 | 165 | $fallback = $config->getFallback(); |
166 | 166 | $config->setFallback(''); |
167 | 167 | \trigger_error(\sprintf('The "%s" driver is unavailable at the moment, the fallback driver "%s" has been used instead.', $driver, |
168 | - $fallback), \E_USER_WARNING); |
|
168 | + $fallback), \E_USER_WARNING); |
|
169 | 169 | return self::getInstance($fallback, $config->getFallbackConfig()); |
170 | 170 | } catch (PhpfastcacheInvalidArgumentException $e) { |
171 | 171 | throw new PhpfastcacheInvalidConfigurationException('Invalid fallback driver configuration', 0, $e); |