Passed
Push — dev ( 55d73e...a6ec45 )
by 世昌
02:25
created
suda/src/application/Resource.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
     {
41 41
         $path = $source;
42 42
         if (Path::isRelativePath($source)) {
43
-            $path = $relative . '/' . $path;
43
+            $path = $relative.'/'.$path;
44 44
         }
45 45
         return Path::toAbsolutePath($path);
46 46
     }
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
     {
96 96
         foreach ($this->resource as $root) {
97 97
             $target = $this->getTarget($root, $path);
98
-            $templateLimitPath = $limitPath ? $root . '/' . $limitPath : $root;
98
+            $templateLimitPath = $limitPath ? $root.'/'.$limitPath : $root;
99 99
             if (is_string($target)
100 100
                 && FileSystem::exist($target)
101 101
                 && FileSystem::isOverflowPath($templateLimitPath, $target) === false) {
@@ -114,11 +114,11 @@  discard block
 block discarded – undo
114 114
     private function getTarget($root, string $path)
115 115
     {
116 116
         if (is_string($root)) {
117
-            return $root . '/' . $path;
117
+            return $root.'/'.$path;
118 118
         }
119 119
         list($prefix, $root) = $root;
120 120
         if (strpos($path, $prefix) === 0) {
121
-            return $root . '/' . ltrim(substr($path, strlen($prefix)), '/');
121
+            return $root.'/'.ltrim(substr($path, strlen($prefix)), '/');
122 122
         }
123 123
         return null;
124 124
     }
Please login to merge, or discard this patch.