Passed
Push — sudav3 ( 2e4700...db4431 )
by 世昌
02:26
created
suda/src/application/Application.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -37,17 +37,17 @@  discard block
 block discarded – undo
37 37
         $this->debug->info('===============================');
38 38
         $this->debug->time('loading application');
39 39
         $appLoader->load();
40
-        $this->event->exec('application:load-config', [ $this->config ,$this]);
40
+        $this->event->exec('application:load-config', [$this->config, $this]);
41 41
         $this->debug->timeEnd('loading application');
42 42
         $this->debug->time('loading datasource');
43 43
         $appLoader->loadDataSource();
44 44
         Table::load($this);
45 45
         DataAccess::load($this);
46
-        $this->event->exec('application:load-environment', [ $this->config ,$this]);
46
+        $this->event->exec('application:load-environment', [$this->config, $this]);
47 47
         $this->debug->timeEnd('loading datasource');
48 48
         $this->debug->time('loading route');
49 49
         $appLoader->loadRoute();
50
-        $this->event->exec('application:load-route', [$this->route , $this]);
50
+        $this->event->exec('application:load-route', [$this->route, $this]);
51 51
         $this->debug->timeEnd('loading route');
52 52
         $this->debug->info('-------------------------------');
53 53
     }
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
             if (!$response->isSended()) {
100 100
                 $response->end();
101 101
             }
102
-            $this->debug->info('resposned with code '. $response->getStatus());
102
+            $this->debug->info('resposned with code '.$response->getStatus());
103 103
             $this->debug->timeEnd('sending response');
104 104
         } catch (\Throwable $e) {
105 105
             $this->debug->uncaughtException($e);
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
     protected function createResponse(?MatchResult $result, Request $request, Response $response)
158 158
     {
159 159
         if (SUDA_DEBUG) {
160
-            $response->setHeader('x-route', $result === null?'default':$result->getName());
160
+            $response->setHeader('x-route', $result === null ? 'default' : $result->getName());
161 161
         }
162 162
         if ($result === null) {
163 163
             $content = $this->defaultResponse($this, $request, $response);
Please login to merge, or discard this patch.