Passed
Push — master ( e82dd8...12c564 )
by Petr
02:27
created
php-src/Extras/SeparatorSigns.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
     public static function removeFromEnd(string $path, string $separator = DIRECTORY_SEPARATOR): string
20 20
     {
21 21
         $signLen = mb_strlen($separator);
22
-        return ($separator == mb_substr($path, -1 * $signLen)) ? mb_substr($path, 0, -1 * $signLen) : $path ;
22
+        return ($separator == mb_substr($path, -1 * $signLen)) ? mb_substr($path, 0, -1 * $signLen) : $path;
23 23
     }
24 24
 
25 25
     /**
@@ -31,6 +31,6 @@  discard block
 block discarded – undo
31 31
     public static function removeFromStart(string $path, string $separator = DIRECTORY_SEPARATOR): string
32 32
     {
33 33
         $signLen = mb_strlen($separator);
34
-        return ($separator == mb_substr($path, 0, $signLen)) ? mb_substr($path, $signLen) : $path ;
34
+        return ($separator == mb_substr($path, 0, $signLen)) ? mb_substr($path, $signLen) : $path;
35 35
     }
36 36
 }
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
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
     public function get(string $key): ?string
60 60
     {
61 61
         $content = $this->getStorage()->read($key);
62
-        return empty($content) ? null : $content ;
62
+        return empty($content) ? null : $content;
63 63
     }
64 64
 
65 65
     /**
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
     {
88 88
         // safeadd for multithread at any system
89 89
         if ($this->getStorage()->write($key, $value, $expire)) {
90
-            return ( $value == $this->get($key) );
90
+            return ($value == $this->get($key));
91 91
         }
92 92
         return false;
93 93
     }
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
         $keysToDelete = [];
170 170
         foreach ($this->getAllKeys() as $memKey) {
171 171
             $find = strpos($memKey, $prefix);
172
-            if ((! $inverse && 0 === $find) || ($inverse && (false === $find || 0 !== $find))) {
172
+            if ((!$inverse && 0 === $find) || ($inverse && (false === $find || 0 !== $find))) {
173 173
                 $keysToDelete[] = $memKey;
174 174
             }
175 175
         }
Please login to merge, or discard this patch.