Passed
Push — main ( 791369...bcd357 )
by Pavel
01:32
created
src/Cache/ArrayCache.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
 
36 36
         return array_reduce(
37 37
             array_keys($values),
38
-            fn ($result, $key) => $result && $this->set($key, $values[$key], $ttl),
38
+            fn($result, $key) => $result && $this->set($key, $values[$key], $ttl),
39 39
             true
40 40
         );
41 41
     }
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
             throw new InvalidKeyException('Keys must be an array', 3);
59 59
         }
60 60
 
61
-        return array_map(fn ($key) => $this->get($key, $default), $keys);
61
+        return array_map(fn($key) => $this->get($key, $default), $keys);
62 62
     }
63 63
 
64 64
     public function has($key)
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
 
88 88
         return array_reduce(
89 89
             $keys,
90
-            fn ($result, $key) => $result && $this->delete($key),
90
+            fn($result, $key) => $result && $this->delete($key),
91 91
             true
92 92
         );
93 93
     }
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
     {
113 113
         try {
114 114
             if (!is_null($ttl) && is_numeric($ttl)) {
115
-                $ttl = new DateInterval(sprintf('%sS', (int)$ttl));
115
+                $ttl = new DateInterval(sprintf('%sS', (int) $ttl));
116 116
             }
117 117
         } catch (Exception $e) {
118 118
             throw new InvalidTTLException('Failed to parse provided ttl', 1, $e);
Please login to merge, or discard this patch.