@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | $driverResponse = $this->getItem($this->getTagKey($tagName)); |
105 | 105 | |
106 | 106 | if ($driverResponse->isHit()) { |
107 | - $tagsItems = (array)$driverResponse->get(); |
|
107 | + $tagsItems = (array) $driverResponse->get(); |
|
108 | 108 | /** |
109 | 109 | * getItems() may provide expired item(s) |
110 | 110 | * themselves provided by a cache of item |
@@ -279,7 +279,7 @@ discard block |
||
279 | 279 | * @throws PhpfastcacheLogicException |
280 | 280 | * @throws \ReflectionException |
281 | 281 | */ |
282 | - public function appendItemsByTags(array $tagNames, array|string $data, int $strategy = TaggableCacheItemPoolInterface::TAG_STRATEGY_ONE): bool |
|
282 | + public function appendItemsByTags(array $tagNames, array | string $data, int $strategy = TaggableCacheItemPoolInterface::TAG_STRATEGY_ONE): bool |
|
283 | 283 | { |
284 | 284 | $return = true; |
285 | 285 | foreach ($tagNames as $tagName) { |
@@ -300,7 +300,7 @@ discard block |
||
300 | 300 | * @throws PhpfastcacheLogicException |
301 | 301 | * @throws \ReflectionException |
302 | 302 | */ |
303 | - public function appendItemsByTag(string $tagName, array|string $data, int $strategy = TaggableCacheItemPoolInterface::TAG_STRATEGY_ONE): bool |
|
303 | + public function appendItemsByTag(string $tagName, array | string $data, int $strategy = TaggableCacheItemPoolInterface::TAG_STRATEGY_ONE): bool |
|
304 | 304 | { |
305 | 305 | foreach ($this->getItemsByTag($tagName, $strategy) as $item) { |
306 | 306 | $item->append($data); |
@@ -318,7 +318,7 @@ discard block |
||
318 | 318 | * @throws PhpfastcacheLogicException |
319 | 319 | * @throws \ReflectionException |
320 | 320 | */ |
321 | - public function prependItemsByTags(array $tagNames, array|string $data, int $strategy = TaggableCacheItemPoolInterface::TAG_STRATEGY_ONE): bool |
|
321 | + public function prependItemsByTags(array $tagNames, array | string $data, int $strategy = TaggableCacheItemPoolInterface::TAG_STRATEGY_ONE): bool |
|
322 | 322 | { |
323 | 323 | $return = true; |
324 | 324 | foreach ($tagNames as $tagName) { |
@@ -339,7 +339,7 @@ discard block |
||
339 | 339 | * @throws PhpfastcacheLogicException |
340 | 340 | * @throws \ReflectionException |
341 | 341 | */ |
342 | - public function prependItemsByTag(string $tagName, array|string $data, int $strategy = TaggableCacheItemPoolInterface::TAG_STRATEGY_ONE): bool |
|
342 | + public function prependItemsByTag(string $tagName, array | string $data, int $strategy = TaggableCacheItemPoolInterface::TAG_STRATEGY_ONE): bool |
|
343 | 343 | { |
344 | 344 | foreach ($this->getItemsByTag($tagName, $strategy) as $item) { |
345 | 345 | $item->prepend($data); |
@@ -407,7 +407,7 @@ discard block |
||
407 | 407 | * avoid to use array_unique |
408 | 408 | * that has slow performances |
409 | 409 | */ |
410 | - $data = \array_merge((array)$data, [$item->getKey() => $expTimestamp]); |
|
410 | + $data = \array_merge((array) $data, [$item->getKey() => $expTimestamp]); |
|
411 | 411 | $tagsItem->set($data); |
412 | 412 | |
413 | 413 | if (!$tagsItem->isHit() || $tagsItem->getExpirationDate() < $item->getExpirationDate()) { |
@@ -434,7 +434,7 @@ discard block |
||
434 | 434 | $tagsItems = $this->getItems($this->getTagKeys($item->getRemovedTags())); |
435 | 435 | |
436 | 436 | foreach ($tagsItems as $tagsItem) { |
437 | - $data = (array)$tagsItem->get(); |
|
437 | + $data = (array) $tagsItem->get(); |
|
438 | 438 | |
439 | 439 | unset($data[$item->getKey()]); |
440 | 440 | $tagsItem->set($data); |