Passed
Push — master ( bf0de1...1b1dbd )
by Petr
02:39
created
php-src/Storage/Key/DirKey.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
php-src/Storage.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
         }
Please login to merge, or discard this patch.