Passed
Push — dev ( 740957...ad1734 )
by 世昌
02:24
created
suda/src/framework/filesystem/FileSystem.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
     {
38 38
         $absolute = PathTrait::toAbsolutePath($target);
39 39
         $root = PathTrait::toAbsolutePath($root);
40
-        return strpos($absolute, $root . DIRECTORY_SEPARATOR) !== 0;
40
+        return strpos($absolute, $root.DIRECTORY_SEPARATOR) !== 0;
41 41
     }
42 42
 
43 43
     /**
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
 
101 101
     protected static function tryWriteDirectory(string $path): bool
102 102
     {
103
-        $path = rtrim($path, '/') . '/' . md5(mt_rand(1, 100) . mt_rand(1, 100));
103
+        $path = rtrim($path, '/').'/'.md5(mt_rand(1, 100).mt_rand(1, 100));
104 104
         if (($fp = fopen($path, 'ab')) === false) {
105 105
             return false;
106 106
         }
Please login to merge, or discard this patch.