@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | |
33 | 33 | public function load(string $key) |
34 | 34 | { |
35 | - return $this->exists($key) ? $this->data[$key] : null ; |
|
35 | + return $this->exists($key) ? $this->data[$key] : null; |
|
36 | 36 | } |
37 | 37 | |
38 | 38 | public function save(string $key, $data, ?int $timeout = null): bool |
@@ -56,13 +56,13 @@ discard block |
||
56 | 56 | |
57 | 57 | public function increment(string $key): bool |
58 | 58 | { |
59 | - $this->data[$key] = $this->exists($key) ? $this->data[$key] + 1 : 1 ; |
|
59 | + $this->data[$key] = $this->exists($key) ? $this->data[$key] + 1 : 1; |
|
60 | 60 | return true; |
61 | 61 | } |
62 | 62 | |
63 | 63 | public function decrement(string $key): bool |
64 | 64 | { |
65 | - $this->data[$key] = $this->exists($key) ? $this->data[$key] - 1 : 0 ; |
|
65 | + $this->data[$key] = $this->exists($key) ? $this->data[$key] - 1 : 0; |
|
66 | 66 | return true; |
67 | 67 | } |
68 | 68 |
@@ -50,7 +50,7 @@ |
||
50 | 50 | |
51 | 51 | public function get(): string |
52 | 52 | { |
53 | - return $this->exists() ? $this->storageCache->get() : '' ; |
|
53 | + return $this->exists() ? $this->storageCache->get() : ''; |
|
54 | 54 | } |
55 | 55 | |
56 | 56 | public function clear(): void |
@@ -60,7 +60,7 @@ |
||
60 | 60 | |
61 | 61 | public function get(): string |
62 | 62 | { |
63 | - return $this->exists() ? $this->cache->get() : '' ; |
|
63 | + return $this->exists() ? $this->cache->get() : ''; |
|
64 | 64 | } |
65 | 65 | |
66 | 66 | public function clear(): void |
@@ -55,7 +55,7 @@ |
||
55 | 55 | |
56 | 56 | public function get(): string |
57 | 57 | { |
58 | - return $this->exists() ? strval($this->cacheStorage->read($this->cachePath)) : '' ; |
|
58 | + return $this->exists() ? strval($this->cacheStorage->read($this->cachePath)) : ''; |
|
59 | 59 | } |
60 | 60 | |
61 | 61 | public function clear(): void |
@@ -63,7 +63,7 @@ |
||
63 | 63 | |
64 | 64 | public function get(): string |
65 | 65 | { |
66 | - return $this->exists() ? strval($this->storage->read($this->cachePath)) : '' ; |
|
66 | + return $this->exists() ? strval($this->storage->read($this->cachePath)) : ''; |
|
67 | 67 | } |
68 | 68 | |
69 | 69 | public function clear(): void |