@@ -40,16 +40,16 @@ discard block |
||
| 40 | 40 | $this->debug->info('==============================='); |
| 41 | 41 | $this->debug->time('loading application'); |
| 42 | 42 | $appLoader->load(); |
| 43 | - $this->event->exec('application:load-config', [ $this->config ,$this]); |
|
| 43 | + $this->event->exec('application:load-config', [$this->config, $this]); |
|
| 44 | 44 | $this->debug->timeEnd('loading application'); |
| 45 | 45 | $this->debug->time('loading data-source'); |
| 46 | 46 | $appLoader->loadDataSource(); |
| 47 | 47 | $this->debug->timeEnd('loading data-source'); |
| 48 | 48 | Database::loadApplication($this); |
| 49 | - $this->event->exec('application:load-environment', [ $this->config ,$this]); |
|
| 49 | + $this->event->exec('application:load-environment', [$this->config, $this]); |
|
| 50 | 50 | $this->debug->time('loading route'); |
| 51 | 51 | $appLoader->loadRoute(); |
| 52 | - $this->event->exec('application:load-route', [$this->route , $this]); |
|
| 52 | + $this->event->exec('application:load-route', [$this->route, $this]); |
|
| 53 | 53 | $this->debug->timeEnd('loading route'); |
| 54 | 54 | $this->debug->info('-------------------------------'); |
| 55 | 55 | } |
@@ -106,7 +106,7 @@ discard block |
||
| 106 | 106 | if (!$response->isSend()) { |
| 107 | 107 | $response->end(); |
| 108 | 108 | } |
| 109 | - $this->debug->info('responded with code '. $response->getStatus()); |
|
| 109 | + $this->debug->info('responded with code '.$response->getStatus()); |
|
| 110 | 110 | $this->debug->timeEnd('sending response'); |
| 111 | 111 | } catch (Throwable $e) { |
| 112 | 112 | $this->debug->uncaughtException($e); |
@@ -173,7 +173,7 @@ discard block |
||
| 173 | 173 | protected function createResponse(?MatchResult $result, Request $request, Response $response) |
| 174 | 174 | { |
| 175 | 175 | if (SUDA_DEBUG) { |
| 176 | - $response->setHeader('x-route', $result === null?'default':$result->getName()); |
|
| 176 | + $response->setHeader('x-route', $result === null ? 'default' : $result->getName()); |
|
| 177 | 177 | } |
| 178 | 178 | if ($result === null) { |
| 179 | 179 | $content = $this->defaultResponse($this, $request, $response); |