@@ -25,7 +25,7 @@ |
||
25 | 25 | public function __construct(Memcached $handler) |
26 | 26 | { |
27 | 27 | $this->handler = $handler; |
28 | - if (! defined('Memcached::HAVE_IGBINARY') || ! extension_loaded('igbinary')) { |
|
28 | + if (!defined('Memcached::HAVE_IGBINARY') || !extension_loaded('igbinary')) { |
|
29 | 29 | return; |
30 | 30 | } |
31 | 31 |
@@ -19,7 +19,7 @@ |
||
19 | 19 | |
20 | 20 | protected function checkReservedCharacters($key): void |
21 | 21 | { |
22 | - if (! is_string($key)) { |
|
22 | + if (!is_string($key)) { |
|
23 | 23 | $message = sprintf('key %s is not a string.', $key); |
24 | 24 | |
25 | 25 | throw new InvalidArgumentException($message); |
@@ -21,7 +21,7 @@ |
||
21 | 21 | { |
22 | 22 | public function __construct(private Redis $handler) |
23 | 23 | { |
24 | - if (! defined('Redis::SERIALIZER_IGBINARY') || ! extension_loaded('igbinary')) { |
|
24 | + if (!defined('Redis::SERIALIZER_IGBINARY') || !extension_loaded('igbinary')) { |
|
25 | 25 | return; |
26 | 26 | } |
27 | 27 |
@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | public function get($key, $default = null) |
19 | 19 | { |
20 | 20 | $this->checkReservedCharacters($key); |
21 | - if (! $this->has($key)) { |
|
21 | + if (!$this->has($key)) { |
|
22 | 22 | return $default; |
23 | 23 | } |
24 | 24 | |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | public function has($key): bool |
64 | 64 | { |
65 | 65 | $this->checkReservedCharacters($key); |
66 | - if (! array_key_exists($key, $this->bucket)) { |
|
66 | + if (!array_key_exists($key, $this->bucket)) { |
|
67 | 67 | return false; |
68 | 68 | } |
69 | 69 |