@@ -35,7 +35,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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); |