Completed
Pull Request — master (#307)
by
unknown
09:51
created
lib/Doctrine/Common/Cache/RedisCache.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
         $fetchedItems = array_combine($keys, $this->redis->mget($keys));
61 61
 
62 62
         // Redis mget returns false for keys that do not exist. So we need to filter those out unless it's the real data.
63
-        $falseItemKeys = array_keys(array_filter($fetchedItems, static function ($item) {
63
+        $falseItemKeys = array_keys(array_filter($fetchedItems, static function($item) {
64 64
             return $item === false;
65 65
         }));
66 66
         if ($falseItemKeys) {
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
             foreach ($falseItemKeys as $key) {
69 69
                 $multi->exists($key);
70 70
             }
71
-            $nonExists        = array_filter($multi->exec(), static function ($exists) {
71
+            $nonExists        = array_filter($multi->exec(), static function($exists) {
72 72
                 return ! $exists;
73 73
             });
74 74
             $nonExistItemKeys = array_intersect_key($falseItemKeys, $nonExists);
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
                 $multi->setex($key, $lifetime, $value);
93 93
             }
94 94
 
95
-            return ! array_filter($multi->exec(), static function ($setex) {
95
+            return ! array_filter($multi->exec(), static function($setex) {
96 96
                 return ! $setex;
97 97
             });
98 98
         }
Please login to merge, or discard this patch.