@@ -60,7 +60,7 @@ discard block |
||
| 60 | 60 | public function get(string $key): ?string |
| 61 | 61 | { |
| 62 | 62 | $content = $this->getStorage()->read($key); |
| 63 | - return empty($content) ? null : $content ; |
|
| 63 | + return empty($content) ? null : $content; |
|
| 64 | 64 | } |
| 65 | 65 | |
| 66 | 66 | /** |
@@ -88,7 +88,7 @@ discard block |
||
| 88 | 88 | { |
| 89 | 89 | // safeadd for multithread on any system |
| 90 | 90 | if ($this->getStorage()->write($key, $value, $expire)) { |
| 91 | - return ( $value == $this->get($key) ); |
|
| 91 | + return ($value == $this->get($key)); |
|
| 92 | 92 | } |
| 93 | 93 | return false; |
| 94 | 94 | } |
@@ -170,7 +170,7 @@ discard block |
||
| 170 | 170 | $keysToDelete = []; |
| 171 | 171 | foreach ($this->getAllKeys() as $memKey) { |
| 172 | 172 | $find = strpos($memKey, $prefix); |
| 173 | - if ((! $inverse && 0 === $find) || ($inverse && (false === $find || 0 !== $find))) { |
|
| 173 | + if ((!$inverse && 0 === $find) || ($inverse && (false === $find || 0 !== $find))) { |
|
| 174 | 174 | $keysToDelete[] = $memKey; |
| 175 | 175 | } |
| 176 | 176 | } |