@@ -9,7 +9,7 @@ |
||
9 | 9 | class DirKey implements IKey |
10 | 10 | { |
11 | 11 | /** @var string */ |
12 | - protected static $dir= '/var/cache/wwwcache/'; |
|
12 | + protected static $dir = '/var/cache/wwwcache/'; |
|
13 | 13 | |
14 | 14 | public static function setDir(string $dir): void |
15 | 15 | { |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | { |
51 | 51 | $this->checkStorage(); |
52 | 52 | $content = $this->storage->read($key); |
53 | - return empty($content) ? null : $content ; |
|
53 | + return empty($content) ? null : $content; |
|
54 | 54 | } |
55 | 55 | |
56 | 56 | /** |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | $this->checkStorage(); |
81 | 81 | // safeadd for multithread at any system |
82 | 82 | if ($this->storage->write($key, $value, $expire)) { |
83 | - return ( $value == $this->get($key) ); |
|
83 | + return ($value == $this->get($key)); |
|
84 | 84 | } |
85 | 85 | return false; |
86 | 86 | } |
@@ -156,7 +156,7 @@ discard block |
||
156 | 156 | $keysToDelete = []; |
157 | 157 | foreach ($this->getAllKeys() as $memKey) { |
158 | 158 | $find = strpos($memKey, $prefix); |
159 | - if ((! $inverse && 0 === $find) || ($inverse && (false === $find || 0 !== $find))) { |
|
159 | + if ((!$inverse && 0 === $find) || ($inverse && (false === $find || 0 !== $find))) { |
|
160 | 160 | $keysToDelete[] = $memKey; |
161 | 161 | } |
162 | 162 | } |