@@ -21,7 +21,7 @@ discard block |
||
| 21 | 21 | |
| 22 | 22 | public function get(string $key): int |
| 23 | 23 | { |
| 24 | - return (int)$this->redis->get($key); |
|
| 24 | + return (int) $this->redis->get($key); |
|
| 25 | 25 | } |
| 26 | 26 | |
| 27 | 27 | public function inc(string $key, int $ttl = 60): int |
@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | |
| 37 | 37 | public function reset(string $key): bool |
| 38 | 38 | { |
| 39 | - return (bool)$this->redis->delete($key); |
|
| 39 | + return (bool) $this->redis->delete($key); |
|
| 40 | 40 | } |
| 41 | 41 | |
| 42 | 42 | public function isExceeded(string $key, int $max): bool |