Passed
Push — master ( 6ac505...049c92 )
by 世昌
02:46
created
suda/src/application/database/Database.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@
 block discarded – undo
72 72
      */
73 73
     public static function getDataSourceFrom(ApplicationResource $resource, string $groupName)
74 74
     {
75
-        $group = $groupName === 'default' ? '': '-'. $groupName;
75
+        $group = $groupName === 'default' ? '' : '-'.$groupName;
76 76
         $dataSourceConfigPath = $resource->getConfigResourcePath('config/data-source'.$group);
77 77
         $dataSource = new DataSource;
78 78
         if ($dataSourceConfigPath !== null) {
Please login to merge, or discard this patch.
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
     }
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
         foreach ($this->resource as $root) {
97 97
             if ($pathInfo = $this->getTarget($root, $path)) {
98 98
                 list($root, $target) = $pathInfo;
99
-                $templateLimitPath = $limitPath ? $root . '/' . $limitPath : $root;
99
+                $templateLimitPath = $limitPath ? $root.'/'.$limitPath : $root;
100 100
                 if (FileSystem::exist($target)
101 101
                     && FileSystem::isOverflowPath($templateLimitPath, $target) === false) {
102 102
                     return $target;
@@ -115,11 +115,11 @@  discard block
 block discarded – undo
115 115
     private function getTarget($root, string $path)
116 116
     {
117 117
         if (is_string($root)) {
118
-            return [$root, $root . '/' . $path];
118
+            return [$root, $root.'/'.$path];
119 119
         }
120 120
         list($prefix, $root) = $root;
121 121
         if (strpos($path, $prefix) === 0) {
122
-            return [$root, $root . '/' . ltrim(substr($path, strlen($prefix)), '/')];
122
+            return [$root, $root.'/'.ltrim(substr($path, strlen($prefix)), '/')];
123 123
         }
124 124
         return null;
125 125
     }
Please login to merge, or discard this patch.