Passed
Push — dev ( 03741f...94bfee )
by 世昌
02:47
created
suda/src/application/loader/ApplicationLoader.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
 
84 84
     public function loadVendorIfExist()
85 85
     {
86
-        $vendorAutoload = $this->application->getPath() . '/vendor/autoload.php';
86
+        $vendorAutoload = $this->application->getPath().'/vendor/autoload.php';
87 87
         if (FileSystem::exist($vendorAutoload)) {
88 88
             require_once $vendorAutoload;
89 89
         }
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
 
121 121
     protected function registerModule()
122 122
     {
123
-        $extractPath = $this->application->getDataPath() . '/extract-module';
123
+        $extractPath = $this->application->getDataPath().'/extract-module';
124 124
         FileSystem::make($extractPath);
125 125
         foreach ($this->application->getModulePaths() as $path) {
126 126
             $this->registerModuleFrom($path, $extractPath);
Please login to merge, or discard this patch.
suda/src/framework/debug/attach/AttachTrait.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -32,20 +32,20 @@
 block discarded – undo
32 32
         $replace = [];
33 33
         $attribute = array_merge($this->attribute, $attribute);
34 34
         foreach ($attribute as $key => $val) {
35
-            $replace['%' . $key . '%'] = $val;
35
+            $replace['%'.$key.'%'] = $val;
36 36
         }
37 37
         $message = strtr($message, $replace);
38 38
         $attachInfo = '';
39 39
         foreach ($context as $name => $value) {
40
-            $attachInfo .= $name . ' = ';
40
+            $attachInfo .= $name.' = ';
41 41
             if ($value instanceof AttachValueInterface) {
42
-                $attachInfo .= $value->getLogAttach() . PHP_EOL;
42
+                $attachInfo .= $value->getLogAttach().PHP_EOL;
43 43
             } else {
44
-                $attachInfo .= DumpTrait::parameterToString($value) . PHP_EOL;
44
+                $attachInfo .= DumpTrait::parameterToString($value).PHP_EOL;
45 45
             }
46 46
         }
47 47
         if (strlen($attachInfo) > 0) {
48
-            return $message . PHP_EOL . $attachInfo;
48
+            return $message.PHP_EOL.$attachInfo;
49 49
         }
50 50
         return $message;
51 51
     }
Please login to merge, or discard this patch.
suda/src/framework/debug/Debug.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -50,9 +50,9 @@  discard block
 block discarded – undo
50 50
         $replace = [];
51 51
         $attach = [];
52 52
         foreach ($context as $key => $val) {
53
-            $replaceKey = '{' . $key . '}';
53
+            $replaceKey = '{'.$key.'}';
54 54
             if ($this->canBeStringValue($val) && strpos($message, $replaceKey) !== false) {
55
-                $replace['{' . $key . '}'] = $val;
55
+                $replace['{'.$key.'}'] = $val;
56 56
             } else {
57 57
                 $attach[$key] = $val;
58 58
             }
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
         $pow = floor(($bytes ? log($bytes) : 0) / log(1024));
103 103
         $pos = min($pow, count($human) - 1);
104 104
         $bytes /= (1 << (10 * $pos));
105
-        return round($bytes, $precision) . ' ' . $human[$pos];
105
+        return round($bytes, $precision).' '.$human[$pos];
106 106
     }
107 107
 
108 108
     public function time(string $name, string $type = LogLevel::INFO)
Please login to merge, or discard this patch.