@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | public function get(string $key) |
53 | 53 | { |
54 | 54 | $content = $this->getStorage()->read($key); |
55 | - return empty($content) ? null : $content ; |
|
55 | + return empty($content) ? null : $content; |
|
56 | 56 | } |
57 | 57 | |
58 | 58 | /** |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | { |
81 | 81 | // safeadd for multithread at any system |
82 | 82 | if ($this->getStorage()->write($key, $value, $expire)) { |
83 | - return ( $value == $this->get($key) ); |
|
83 | + return ($value == $this->get($key)); |
|
84 | 84 | } |
85 | 85 | return false; |
86 | 86 | } |
@@ -162,7 +162,7 @@ discard block |
||
162 | 162 | $keysToDelete = []; |
163 | 163 | foreach ($this->getAllKeys() as $memKey) { |
164 | 164 | $find = strpos($memKey, $prefix); |
165 | - if ((! $inverse && 0 === $find) || ($inverse && (false === $find || 0 !== $find))) { |
|
165 | + if ((!$inverse && 0 === $find) || ($inverse && (false === $find || 0 !== $find))) { |
|
166 | 166 | $keysToDelete[] = $memKey; |
167 | 167 | } |
168 | 168 | } |