@@ -53,7 +53,7 @@ discard block |
||
| 53 | 53 | { |
| 54 | 54 | $this->checkStorage(); |
| 55 | 55 | $content = $this->storage->/** @scrutinizer ignore-call */read($key); |
| 56 | - return empty($content) ? null : $content ; |
|
| 56 | + return empty($content) ? null : $content; |
|
| 57 | 57 | } |
| 58 | 58 | |
| 59 | 59 | /** |
@@ -83,7 +83,7 @@ discard block |
||
| 83 | 83 | $this->checkStorage(); |
| 84 | 84 | // safeadd for multithread at any system |
| 85 | 85 | if ($this->storage->/** @scrutinizer ignore-call */write($key, $value, $expire)) { |
| 86 | - return ( $value == $this->get($key) ); |
|
| 86 | + return ($value == $this->get($key)); |
|
| 87 | 87 | } |
| 88 | 88 | return false; |
| 89 | 89 | } |
@@ -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 | } |