Passed
Branch master (f60c10)
by Petr
04:46
created
Category
php-src/Storage.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
     {
54 54
         $this->checkStorage();
55 55
         $content = $this->storage->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
 block discarded – undo
83 83
         $this->checkStorage();
84 84
         // safeadd for multithread at any system
85 85
         if ($this->storage->write($key, $value, $expire)) {
86
-            return ( $value == $this->get($key) );
86
+            return ($value == $this->get($key));
87 87
         }
88 88
         return false;
89 89
     }
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
         $keysToDelete = [];
160 160
         foreach ($this->getAllKeys() as $memKey) {
161 161
             $find = strpos($memKey, $prefix);
162
-            if ((! $inverse && $find === 0) || ($inverse && ($find === false || $find !== 0))) {
162
+            if ((!$inverse && $find === 0) || ($inverse && ($find === false || $find !== 0))) {
163 163
                 $keysToDelete[] = $memKey;
164 164
             }
165 165
         }
Please login to merge, or discard this patch.
php-src/Storage/Key/DirKey.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
 
9 9
 class DirKey implements IKey
10 10
 {
11
-    protected static $dir= '/var/cache/wwwcache/';
11
+    protected static $dir = '/var/cache/wwwcache/';
12 12
 
13 13
     public static function setDir(string $dir): void
14 14
     {
Please login to merge, or discard this patch.