@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | */ |
90 | 90 | private function initBaseConfig() |
91 | 91 | { |
92 | - $this->initConfigIfNotSet('app.route.active', defined('SUDA_ROUTE_GROUPS')? \explode(',', \constant('SUDA_ROUTE_GROUPS')) :['default']); |
|
92 | + $this->initConfigIfNotSet('app.route.active', defined('SUDA_ROUTE_GROUPS') ? \explode(',', \constant('SUDA_ROUTE_GROUPS')) : ['default']); |
|
93 | 93 | $this->initConfigIfNotSet('app.import', [\constant('SUDA_APP').'/'.'share']); |
94 | 94 | $this->initConfigIfNotSet('app.resource', [\constant('SUDA_APP').'/'.'resource']); |
95 | 95 | $this->initConfigIfNotSet('app.module.scan-path', [\constant('SUDA_APP').'/'.'modules']); |
@@ -116,7 +116,7 @@ discard block |
||
116 | 116 | */ |
117 | 117 | private function initTimezone() |
118 | 118 | { |
119 | - $timezone = defined('DEFAULT_TIMEZONE')?constant('DEFAULT_TIMEZONE'):'PRC'; |
|
119 | + $timezone = defined('DEFAULT_TIMEZONE') ?constant('DEFAULT_TIMEZONE') : 'PRC'; |
|
120 | 120 | date_default_timezone_set($this->config->get('app.timezone', $timezone)); |
121 | 121 | } |
122 | 122 | |
@@ -201,7 +201,7 @@ discard block |
||
201 | 201 | */ |
202 | 202 | public function run() |
203 | 203 | { |
204 | - $className = $this->config->get('app.application', Application::class); |
|
204 | + $className = $this->config->get('app.application', Application::class); |
|
205 | 205 | $this->application = Runnable::newClassInstance($className); |
206 | 206 | $this->application->setContext($this); |
207 | 207 | $this->application->setPath($this->path); |