Passed
Push — master ( 05bd12...8614c5 )
by Georges
02:51
created
lib/Phpfastcache/Core/Pool/TaggableCacheItemPoolTrait.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
             /**
@@ -430,7 +430,7 @@  discard block
 block discarded – undo
430 430
         $tagsItems = $this->getItems($this->getTagKeys($item->getRemovedTags()));
431 431
 
432 432
         foreach ($tagsItems as $tagsItem) {
433
-            $data = (array)$tagsItem->get();
433
+            $data = (array) $tagsItem->get();
434 434
 
435 435
             unset($data[$item->getKey()]);
436 436
             $tagsItem->set($data);
Please login to merge, or discard this patch.