Passed
Push — master ( 34ffd7...1a2918 )
by Biao
07:32 queued 04:04
created
src/Illuminate/LaravelSCommand.php 1 patch
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
 
22 22
     public function handle()
23 23
     {
24
-        $action = (string)$this->argument('action');
24
+        $action = (string) $this->argument('action');
25 25
         switch ($action) {
26 26
             case 'publish':
27 27
                 $this->publish();
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
     {
54 54
         // Load configuration laravel.php manually for Lumen
55 55
         $basePath = config('laravels.laravel_base_path') ?: base_path();
56
-        if ($this->isLumen() && file_exists($basePath . '/config/laravels.php')) {
56
+        if ($this->isLumen() && file_exists($basePath.'/config/laravels.php')) {
57 57
             $this->getLaravel()->configure('laravels');
58 58
         }
59 59
     }
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
                 $laravelSVersion,
110 110
             ],
111 111
             [
112
-                $this->getApplication()->getName() . ' [<info>' . env('APP_ENV', config('app.env')) . '</info>]',
112
+                $this->getApplication()->getName().' [<info>'.env('APP_ENV', config('app.env')).'</info>]',
113 113
                 $this->getApplication()->getVersion(),
114 114
             ],
115 115
         ]);
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
                 continue;
159 159
             }
160 160
 
161
-            $name = 'Port#' . $key . ' ';
161
+            $name = 'Port#'.$key.' ';
162 162
             $name .= isset($socketTypeNames[$socket['type']]) ? $socketTypeNames[$socket['type']] : 'Unknown socket';
163 163
             $tableRows [] = [
164 164
                 $name,
@@ -186,8 +186,8 @@  discard block
 block discarded – undo
186 186
         $laravelConf = [
187 187
             'root_path'           => $svrConf['laravel_base_path'],
188 188
             'static_path'         => $svrConf['swoole']['document_root'],
189
-            'cleaners'            => array_unique((array)Arr::get($svrConf, 'cleaners', [])),
190
-            'register_providers'  => array_unique((array)Arr::get($svrConf, 'register_providers', [])),
189
+            'cleaners'            => array_unique((array) Arr::get($svrConf, 'cleaners', [])),
190
+            'register_providers'  => array_unique((array) Arr::get($svrConf, 'register_providers', [])),
191 191
             'destroy_controllers' => Arr::get($svrConf, 'destroy_controllers', []),
192 192
             'is_lumen'            => $this->isLumen(),
193 193
             '_SERVER'             => $_SERVER,
@@ -220,7 +220,7 @@  discard block
 block discarded – undo
220 220
             $svrConf['ignore_check_pid'] = false;
221 221
         }
222 222
         if (empty($svrConf['swoole']['document_root'])) {
223
-            $svrConf['swoole']['document_root'] = $svrConf['laravel_base_path'] . '/public';
223
+            $svrConf['swoole']['document_root'] = $svrConf['laravel_base_path'].'/public';
224 224
         }
225 225
         if ($this->option('daemonize')) {
226 226
             $svrConf['swoole']['daemonize'] = true;
@@ -235,7 +235,7 @@  discard block
 block discarded – undo
235 235
         }
236 236
 
237 237
         // Set X-Version
238
-        $xVersion = (string)$this->option('x-version');
238
+        $xVersion = (string) $this->option('x-version');
239 239
         if ($xVersion !== '') {
240 240
             $_SERVER['X_VERSION'] = $_ENV['X_VERSION'] = $xVersion;
241 241
         }
@@ -262,34 +262,34 @@  discard block
 block discarded – undo
262 262
     public function publish()
263 263
     {
264 264
         $basePath = config('laravels.laravel_base_path') ?: base_path();
265
-        $configPath = $basePath . '/config/laravels.php';
265
+        $configPath = $basePath.'/config/laravels.php';
266 266
         $todoList = [
267 267
             [
268
-                'from' => realpath(__DIR__ . '/../../config/laravels.php'),
268
+                'from' => realpath(__DIR__.'/../../config/laravels.php'),
269 269
                 'to'   => $configPath,
270 270
                 'mode' => 0644,
271 271
             ],
272 272
             [
273
-                'from' => realpath(__DIR__ . '/../../bin/laravels'),
274
-                'to'   => $basePath . '/bin/laravels',
273
+                'from' => realpath(__DIR__.'/../../bin/laravels'),
274
+                'to'   => $basePath.'/bin/laravels',
275 275
                 'mode' => 0755,
276 276
                 'link' => true,
277 277
             ],
278 278
             [
279
-                'from' => realpath(__DIR__ . '/../../bin/fswatch'),
280
-                'to'   => $basePath . '/bin/fswatch',
279
+                'from' => realpath(__DIR__.'/../../bin/fswatch'),
280
+                'to'   => $basePath.'/bin/fswatch',
281 281
                 'mode' => 0755,
282 282
                 'link' => true,
283 283
             ],
284 284
             [
285
-                'from' => realpath(__DIR__ . '/../../bin/inotify'),
286
-                'to'   => $basePath . '/bin/inotify',
285
+                'from' => realpath(__DIR__.'/../../bin/inotify'),
286
+                'to'   => $basePath.'/bin/inotify',
287 287
                 'mode' => 0755,
288 288
                 'link' => true,
289 289
             ],
290 290
         ];
291 291
         if (file_exists($configPath)) {
292
-            $choice = $this->anticipate($configPath . ' already exists, do you want to override it ? Y/N',
292
+            $choice = $this->anticipate($configPath.' already exists, do you want to override it ? Y/N',
293 293
                 ['Y', 'N'],
294 294
                 'N'
295 295
             );
Please login to merge, or discard this patch.