Passed
Push — master ( c547da...5d2787 )
by 世昌
02:10 queued 15s
created
suda/src/SudaApplication.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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);
Please login to merge, or discard this patch.