@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | |
31 | 31 | public function load(string $key) |
32 | 32 | { |
33 | - return $this->exists($key) ? $this->data[$key] : null ; |
|
33 | + return $this->exists($key) ? $this->data[$key] : null; |
|
34 | 34 | } |
35 | 35 | |
36 | 36 | public function save(string $key, $data, ?int $timeout = null): bool |
@@ -54,13 +54,13 @@ discard block |
||
54 | 54 | |
55 | 55 | public function increment(string $key): bool |
56 | 56 | { |
57 | - $this->data[$key] = $this->exists($key) ? $this->data[$key] + 1 : 1 ; |
|
57 | + $this->data[$key] = $this->exists($key) ? $this->data[$key] + 1 : 1; |
|
58 | 58 | return true; |
59 | 59 | } |
60 | 60 | |
61 | 61 | public function decrement(string $key): bool |
62 | 62 | { |
63 | - $this->data[$key] = $this->exists($key) ? $this->data[$key] - 1 : 0 ; |
|
63 | + $this->data[$key] = $this->exists($key) ? $this->data[$key] - 1 : 0; |
|
64 | 64 | return true; |
65 | 65 | } |
66 | 66 |