Passed
Push — dev ( 785e91...c8721b )
by 世昌
02:13
created
suda/src/framework/Debugger.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -65,9 +65,9 @@
 block discarded – undo
65 65
                 $desc = $info['description'];
66 66
                 $ms = number_format($time * 1000, 3);
67 67
                 if (strlen($desc)) {
68
-                    $timing[] = $name . ';desc="' . $desc . '";dur=' . $ms;
68
+                    $timing[] = $name.';desc="'.$desc.'";dur='.$ms;
69 69
                 } else {
70
-                    $timing[] = $name . ';dur=' . $ms;
70
+                    $timing[] = $name.';dur='.$ms;
71 71
                 }
72 72
             }
73 73
             $response->setHeader('server-timing', implode(',', $timing));
Please login to merge, or discard this patch.
suda/src/application/LanguageBag.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
      *
12 12
      * @var array
13 13
      */
14
-    private $locales=[];
14
+    private $locales = [];
15 15
 
16 16
     /**
17 17
      * 包含本地化语言数组
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
      */
51 51
     public static function format(string $text, array $param)
52 52
     {
53
-        return preg_replace_callback('/(?<!\$)\$(\{)?(\d+|\w+?\b)(?(1)\})/', function ($match) use ($param) {
53
+        return preg_replace_callback('/(?<!\$)\$(\{)?(\d+|\w+?\b)(?(1)\})/', function($match) use ($param) {
54 54
             $key = $match[2];
55 55
             if (array_key_exists($key, $param)) {
56 56
                 return strval($param[$key]);
Please login to merge, or discard this patch.
suda/src/framework/route/RouteMatcher.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
 
44 44
     public function __construct(array $methods, string $uri, array $attribute = [])
45 45
     {
46
-        array_walk($methods, function ($value) {
46
+        array_walk($methods, function($value) {
47 47
             return strtoupper($value);
48 48
         });
49 49
         $this->methods = $methods;
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
      * @param string $uri
161 161
      * @return array|null
162 162
      */
163
-    public function match(string $method, string $uri):?array
163
+    public function match(string $method, string $uri): ?array
164 164
     {
165 165
         if (count($this->methods) > 0 && !in_array($method, $this->methods)) {
166 166
             return null;
Please login to merge, or discard this patch.
suda/src/database/connection/Connection.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
         $this->config = $config;
79 79
         $this->name = $name ?? 'anonymous';
80 80
         $this->observer = new NullObserver;
81
-        register_shutdown_function(function () {
81
+        register_shutdown_function(function() {
82 82
             $this->onBeforeSystemShutdown();
83 83
         });
84 84
     }
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
                 $this->pdo = $this->createPDO();
109 109
                 $this->observer->connectDatabase(microtime(true) - $time);
110 110
                 $this->id = static::$connectionCount;
111
-                static::$connectionCount ++;
111
+                static::$connectionCount++;
112 112
             } catch (PDOException $e) {
113 113
                 throw new SQLException(sprintf(
114 114
                     "%s connect database error:%s",
@@ -181,7 +181,7 @@  discard block
 block discarded – undo
181 181
      */
182 182
     public function beginTransaction()
183 183
     {
184
-        $this->transaction ++;
184
+        $this->transaction++;
185 185
         if ($this->transaction == 1) {
186 186
             $this->pdo->beginTransaction();
187 187
         }
Please login to merge, or discard this patch.
suda/src/application/loader/ApplicationLoader.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
      */
97 97
     public function loadVendorIfExist()
98 98
     {
99
-        $vendorAutoload = $this->application->getPath() . '/vendor/autoload.php';
99
+        $vendorAutoload = $this->application->getPath().'/vendor/autoload.php';
100 100
         if (FileSystem::exist($vendorAutoload)) {
101 101
             Loader::requireOnce($vendorAutoload);
102 102
         }
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
      */
144 144
     protected function registerModule()
145 145
     {
146
-        $extractPath = $this->application->getDataPath() . '/extract-module';
146
+        $extractPath = $this->application->getDataPath().'/extract-module';
147 147
         FileSystem::make($extractPath);
148 148
         foreach ($this->application->getModulePaths() as $path) {
149 149
             $this->registerModuleFrom($path, $extractPath);
Please login to merge, or discard this patch.