Completed
Pull Request — 6.0 (#1915)
by nhzex
04:30
created
src/think/route/Rule.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@  discard block
 block discarded – undo
8 8
 // +----------------------------------------------------------------------
9 9
 // | Author: liu21st <[email protected]>
10 10
 // +----------------------------------------------------------------------
11
-declare (strict_types = 1);
11
+declare(strict_types=1);
12 12
 
13 13
 namespace think\route;
14 14
 
@@ -602,7 +602,7 @@  discard block
 block discarded – undo
602 602
     {
603 603
         if (is_string($route) && isset($option['prefix'])) {
604 604
             // 路由地址前缀
605
-            $route = $option['prefix'] . $route;
605
+            $route = $option['prefix'].$route;
606 606
         }
607 607
 
608 608
         // 替换路由地址中的变量
@@ -610,10 +610,10 @@  discard block
 block discarded – undo
610 610
             $search = $replace = [];
611 611
 
612 612
             foreach ($matches as $key => $value) {
613
-                $search[]  = '<' . $key . '>';
613
+                $search[]  = '<'.$key.'>';
614 614
                 $replace[] = $value;
615 615
 
616
-                $search[]  = ':' . $key;
616
+                $search[]  = ':'.$key;
617 617
                 $replace[] = $value;
618 618
             }
619 619
 
@@ -718,7 +718,7 @@  discard block
 block discarded – undo
718 718
         // AJAX PJAX 请求检查
719 719
         foreach (['ajax', 'pjax', 'json'] as $item) {
720 720
             if (isset($option[$item])) {
721
-                $call = 'is' . $item;
721
+                $call = 'is'.$item;
722 722
                 if ($option[$item] && !$request->$call() || !$option[$item] && $request->$call()) {
723 723
                     return false;
724 724
                 }
@@ -726,8 +726,8 @@  discard block
 block discarded – undo
726 726
         }
727 727
 
728 728
         // 伪静态后缀检测
729
-        if ($request->url() != '/' && ((isset($option['ext']) && false === stripos('|' . $option['ext'] . '|', '|' . $request->ext() . '|'))
730
-            || (isset($option['deny_ext']) && false !== stripos('|' . $option['deny_ext'] . '|', '|' . $request->ext() . '|')))) {
729
+        if ($request->url() != '/' && ((isset($option['ext']) && false === stripos('|'.$option['ext'].'|', '|'.$request->ext().'|'))
730
+            || (isset($option['deny_ext']) && false !== stripos('|'.$option['deny_ext'].'|', '|'.$request->ext().'|')))) {
731 731
             return false;
732 732
         }
733 733
 
@@ -764,7 +764,7 @@  discard block
 block discarded – undo
764 764
     protected function parseUrlParams(string $url, array &$var = []): void
765 765
     {
766 766
         if ($url) {
767
-            preg_replace_callback('/(\w+)\|([^\|]+)/', function ($match) use (&$var) {
767
+            preg_replace_callback('/(\w+)\|([^\|]+)/', function($match) use (&$var) {
768 768
                 $var[$match[1]] = strip_tags($match[2]);
769 769
             }, $url);
770 770
         }
@@ -826,7 +826,7 @@  discard block
 block discarded – undo
826 826
             $regex .= '\/';
827 827
         }
828 828
 
829
-        return $regex . ($completeMatch ? '$' : '');
829
+        return $regex.($completeMatch ? '$' : '');
830 830
     }
831 831
 
832 832
     /**
@@ -843,7 +843,7 @@  discard block
 block discarded – undo
843 843
         $slash    = substr($name, 0, 1);
844 844
 
845 845
         if (in_array($slash, ['/', '-'])) {
846
-            $prefix = '\\' . $slash;
846
+            $prefix = '\\'.$slash;
847 847
             $name   = substr($name, 1);
848 848
             $slash  = substr($name, 0, 1);
849 849
         } else {
@@ -851,7 +851,7 @@  discard block
 block discarded – undo
851 851
         }
852 852
 
853 853
         if ('<' != $slash) {
854
-            return $prefix . preg_quote($name, '/');
854
+            return $prefix.preg_quote($name, '/');
855 855
         }
856 856
 
857 857
         if (strpos($name, '?')) {
@@ -870,7 +870,7 @@  discard block
 block discarded – undo
870 870
             $nameRule = $this->router->config('default_route_pattern');
871 871
         }
872 872
 
873
-        return '(' . $prefix . '(?<' . $name . $suffix . '>' . $nameRule . '))' . $optional;
873
+        return '('.$prefix.'(?<'.$name.$suffix.'>'.$nameRule.'))'.$optional;
874 874
     }
875 875
 
876 876
     /**
Please login to merge, or discard this patch.
src/think/route/RuleName.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@  discard block
 block discarded – undo
8 8
 // +----------------------------------------------------------------------
9 9
 // | Author: liu21st <[email protected]>
10 10
 // +----------------------------------------------------------------------
11
-declare (strict_types = 1);
11
+declare(strict_types=1);
12 12
 
13 13
 namespace think\route;
14 14
 
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
                 $val = [];
133 133
 
134 134
                 foreach (['method', 'rule', 'name', 'route', 'domain', 'pattern', 'option'] as $param) {
135
-                    $call        = 'get' . $param;
135
+                    $call        = 'get'.$param;
136 136
                     $val[$param] = $item->$call();
137 137
                 }
138 138
 
Please login to merge, or discard this patch.
src/think/route/Url.php 1 patch
Spacing   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@  discard block
 block discarded – undo
8 8
 // +----------------------------------------------------------------------
9 9
 // | Author: liu21st <[email protected]>
10 10
 // +----------------------------------------------------------------------
11
-declare (strict_types = 1);
11
+declare(strict_types=1);
12 12
 
13 13
 namespace think\route;
14 14
 
@@ -172,7 +172,7 @@  discard block
 block discarded – undo
172 172
                 }
173 173
             }
174 174
         } elseif (false === strpos($domain, '.') && 0 !== strpos($domain, $rootDomain)) {
175
-            $domain .= '.' . $rootDomain;
175
+            $domain .= '.'.$rootDomain;
176 176
         }
177 177
 
178 178
         if (false !== strpos($domain, '://')) {
@@ -181,7 +181,7 @@  discard block
 block discarded – undo
181 181
             $scheme = $request->isSsl() ? 'https://' : 'http://';
182 182
         }
183 183
 
184
-        return $scheme . $domain;
184
+        return $scheme.$domain;
185 185
     }
186 186
 
187 187
     /**
@@ -200,7 +200,7 @@  discard block
 block discarded – undo
200 200
             }
201 201
         }
202 202
 
203
-        return (empty($suffix) || 0 === strpos($suffix, '.')) ? (string) $suffix : '.' . $suffix;
203
+        return (empty($suffix) || 0 === strpos($suffix, '.')) ? (string) $suffix : '.'.$suffix;
204 204
     }
205 205
 
206 206
     /**
@@ -242,7 +242,7 @@  discard block
 block discarded – undo
242 242
                 $controller = App::parseName($controller);
243 243
             }
244 244
 
245
-            $url = $controller . '/' . $action;
245
+            $url = $controller.'/'.$action;
246 246
 
247 247
             if ($app && $this->app->config->get('app.auto_multi_app')) {
248 248
                 $bind = $this->app->config->get('app.domain_bind', []);
@@ -252,9 +252,9 @@  discard block
 block discarded – undo
252 252
                     $map = $this->app->config->get('app.app_map', []);
253 253
 
254 254
                     if ($key = array_search($app, $map)) {
255
-                        $url = $key . '/' . $url;
255
+                        $url = $key.'/'.$url;
256 256
                     } else {
257
-                        $url = $app . '/' . $url;
257
+                        $url = $app.'/'.$url;
258 258
                     }
259 259
                 }
260 260
             }
@@ -319,7 +319,7 @@  discard block
 block discarded – undo
319 319
             }
320 320
 
321 321
             if (!in_array($request->port(), [80, 443])) {
322
-                $domain .= ':' . $request->port();
322
+                $domain .= ':'.$request->port();
323 323
             }
324 324
 
325 325
             if (empty($pattern)) {
@@ -330,12 +330,12 @@  discard block
 block discarded – undo
330 330
 
331 331
             foreach ($pattern as $key => $val) {
332 332
                 if (isset($vars[$key])) {
333
-                    $url = str_replace(['[:' . $key . ']', '<' . $key . '?>', ':' . $key, '<' . $key . '>'], $type ? $vars[$key] : urlencode((string) $vars[$key]), $url);
333
+                    $url = str_replace(['[:'.$key.']', '<'.$key.'?>', ':'.$key, '<'.$key.'>'], $type ? $vars[$key] : urlencode((string) $vars[$key]), $url);
334 334
                     unset($vars[$key]);
335 335
                     $url    = str_replace(['/?', '-?'], ['/', '-'], $url);
336 336
                     $result = [rtrim($url, '?/-'), $domain, $suffix];
337 337
                 } elseif (2 == $val) {
338
-                    $url    = str_replace(['/[:' . $key . ']', '[:' . $key . ']', '<' . $key . '?>'], '', $url);
338
+                    $url    = str_replace(['/[:'.$key.']', '[:'.$key.']', '<'.$key.'?>'], '', $url);
339 339
                     $url    = str_replace(['/?', '-?'], ['/', '-'], $url);
340 340
                     $result = [rtrim($url, '?/-'), $domain, $suffix];
341 341
                 } else {
@@ -363,7 +363,7 @@  discard block
 block discarded – undo
363 363
         if (0 === strpos($url, '[') && $pos = strpos($url, ']')) {
364 364
             // [name] 表示使用路由命名标识生成URL
365 365
             $name = substr($url, 1, $pos - 1);
366
-            $url  = 'name' . substr($url, $pos + 1);
366
+            $url  = 'name'.substr($url, $pos + 1);
367 367
         }
368 368
 
369 369
         if (false === strpos($url, '://') && 0 !== strpos($url, '/')) {
@@ -390,7 +390,7 @@  discard block
 block discarded – undo
390 390
         }
391 391
 
392 392
         if ($url) {
393
-            $checkName   = isset($name) ? $name : $url . (isset($info['query']) ? '?' . $info['query'] : '');
393
+            $checkName   = isset($name) ? $name : $url.(isset($info['query']) ? '?'.$info['query'] : '');
394 394
             $checkDomain = $domain && is_string($domain) ? $domain : null;
395 395
 
396 396
             $rule = $this->route->getName($checkName, $checkDomain);
@@ -417,10 +417,10 @@  discard block
 block discarded – undo
417 417
             }
418 418
 
419 419
             if ($request->app() && $this->app->config->get('app.auto_multi_app') && !$this->app->http->isBindDomain()) {
420
-                $url = $request->app() . '/' . $url;
420
+                $url = $request->app().'/'.$url;
421 421
             }
422 422
         } elseif (!empty($rule) && isset($name)) {
423
-            throw new \InvalidArgumentException('route name not exists:' . $name);
423
+            throw new \InvalidArgumentException('route name not exists:'.$name);
424 424
         } else {
425 425
             // 检测URL绑定
426 426
             $bind = $this->route->getDomainBind($domain && is_string($domain) ? $domain : null);
@@ -458,7 +458,7 @@  discard block
 block discarded – undo
458 458
             $file = str_replace('\\', '/', dirname($file));
459 459
         }
460 460
 
461
-        $url = rtrim($file, '/') . '/' . $url;
461
+        $url = rtrim($file, '/').'/'.$url;
462 462
 
463 463
         // URL后缀
464 464
         if ('/' == substr($url, -1) || '' == $url) {
@@ -468,32 +468,32 @@  discard block
 block discarded – undo
468 468
         }
469 469
 
470 470
         // 锚点
471
-        $anchor = !empty($anchor) ? '#' . $anchor : '';
471
+        $anchor = !empty($anchor) ? '#'.$anchor : '';
472 472
 
473 473
         // 参数组装
474 474
         if (!empty($vars)) {
475 475
             // 添加参数
476 476
             if ($this->route->config('url_common_param')) {
477 477
                 $vars = http_build_query($vars);
478
-                $url .= $suffix . '?' . $vars . $anchor;
478
+                $url .= $suffix.'?'.$vars.$anchor;
479 479
             } else {
480 480
                 foreach ($vars as $var => $val) {
481 481
                     if ('' !== $val) {
482
-                        $url .= $depr . $var . $depr . urlencode((string) $val);
482
+                        $url .= $depr.$var.$depr.urlencode((string) $val);
483 483
                     }
484 484
                 }
485 485
 
486
-                $url .= $suffix . $anchor;
486
+                $url .= $suffix.$anchor;
487 487
             }
488 488
         } else {
489
-            $url .= $suffix . $anchor;
489
+            $url .= $suffix.$anchor;
490 490
         }
491 491
 
492 492
         // 检测域名
493 493
         $domain = $this->parseDomain($url, $domain);
494 494
 
495 495
         // URL组装
496
-        return $domain . rtrim($this->root, '/') . '/' . ltrim($url, '/');
496
+        return $domain.rtrim($this->root, '/').'/'.ltrim($url, '/');
497 497
     }
498 498
 
499 499
     public function __toString()
Please login to merge, or discard this patch.
src/think/route/dispatch/Url.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@  discard block
 block discarded – undo
8 8
 // +----------------------------------------------------------------------
9 9
 // | Author: liu21st <[email protected]>
10 10
 // +----------------------------------------------------------------------
11
-declare (strict_types = 1);
11
+declare(strict_types=1);
12 12
 
13 13
 namespace think\route\dispatch;
14 14
 
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
         if ($bind && preg_match('/^[a-z]/is', $bind)) {
48 48
             $bind = str_replace('/', $depr, $bind);
49 49
             // 如果有模块/控制器绑定
50
-            $url = $bind . ('.' != substr($bind, -1) ? $depr : '') . ltrim($url, $depr);
50
+            $url = $bind.('.' != substr($bind, -1) ? $depr : '').ltrim($url, $depr);
51 51
         }
52 52
 
53 53
         $path = $this->rule->parseUrlPath($url);
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
         $controller = !empty($path) ? array_shift($path) : null;
60 60
 
61 61
         if ($controller && !preg_match('/^[A-Za-z][\w|\.]*$/', $controller)) {
62
-            throw new HttpException(404, 'controller not exists:' . $controller);
62
+            throw new HttpException(404, 'controller not exists:'.$controller);
63 63
         }
64 64
 
65 65
         // 解析操作
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
 
69 69
         // 解析额外参数
70 70
         if ($path) {
71
-            preg_replace_callback('/(\w+)\|([^\|]+)/', function ($match) use (&$var) {
71
+            preg_replace_callback('/(\w+)\|([^\|]+)/', function($match) use (&$var) {
72 72
                 $var[$match[1]] = strip_tags($match[2]);
73 73
             }, implode('|', $path));
74 74
         }
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
         $route = [$controller, $action];
87 87
 
88 88
         if ($this->hasDefinedRoute($route)) {
89
-            throw new HttpException(404, 'invalid request:' . str_replace('|', $depr, $url));
89
+            throw new HttpException(404, 'invalid request:'.str_replace('|', $depr, $url));
90 90
         }
91 91
 
92 92
         return $route;
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
         list($controller, $action) = $route;
104 104
 
105 105
         // 检查地址是否被定义过路由
106
-        $name = strtolower(App::parseName($controller, 1) . '/' . $action);
106
+        $name = strtolower(App::parseName($controller, 1).'/'.$action);
107 107
 
108 108
         $host   = $this->request->host(true);
109 109
         $method = $this->request->method();
Please login to merge, or discard this patch.
src/think/service/PaginatorService.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@  discard block
 block discarded – undo
8 8
 // +----------------------------------------------------------------------
9 9
 // | Author: yunwuxin <[email protected]>
10 10
 // +----------------------------------------------------------------------
11
-declare (strict_types = 1);
11
+declare(strict_types=1);
12 12
 
13 13
 namespace think\service;
14 14
 
@@ -30,15 +30,15 @@  discard block
 block discarded – undo
30 30
 
31 31
     public function boot()
32 32
     {
33
-        Paginator::maker(function (...$args) {
33
+        Paginator::maker(function(...$args) {
34 34
             return $this->app->make(Paginator::class, $args, true);
35 35
         });
36 36
 
37
-        Paginator::currentPathResolver(function () {
37
+        Paginator::currentPathResolver(function() {
38 38
             return $this->app->request->baseUrl();
39 39
         });
40 40
 
41
-        Paginator::currentPageResolver(function ($varPage = 'page') {
41
+        Paginator::currentPageResolver(function($varPage = 'page') {
42 42
 
43 43
             $page = $this->app->request->param($varPage);
44 44
 
Please login to merge, or discard this patch.
src/think/service/ValidateService.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@  discard block
 block discarded – undo
8 8
 // +----------------------------------------------------------------------
9 9
 // | Author: yunwuxin <[email protected]>
10 10
 // +----------------------------------------------------------------------
11
-declare (strict_types = 1);
11
+declare(strict_types=1);
12 12
 
13 13
 namespace think\service;
14 14
 
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
 {
23 23
     public function boot()
24 24
     {
25
-        Validate::maker(function (Validate $validate) {
25
+        Validate::maker(function(Validate $validate) {
26 26
             $validate->setLang($this->app->lang);
27 27
             $validate->setDb($this->app->db);
28 28
             $validate->setRequest($this->app->request);
Please login to merge, or discard this patch.
src/think/service/ModelService.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@  discard block
 block discarded – undo
8 8
 // +----------------------------------------------------------------------
9 9
 // | Author: yunwuxin <[email protected]>
10 10
 // +----------------------------------------------------------------------
11
-declare (strict_types = 1);
11
+declare(strict_types=1);
12 12
 
13 13
 namespace think\service;
14 14
 
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
 {
23 23
     public function boot()
24 24
     {
25
-        Model::maker(function (Model $model) {
25
+        Model::maker(function(Model $model) {
26 26
             $db     = $this->app->db;
27 27
             $config = $this->app->config;
28 28
             $model->setDb($db);
Please login to merge, or discard this patch.
src/think/console/output/driver/Console.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -231,7 +231,7 @@  discard block
 block discarded – undo
231 231
             proc_close($process);
232 232
 
233 233
             if (preg_match('/--------+\r?\n.+?(\d+)\r?\n.+?(\d+)\r?\n/', $info, $matches)) {
234
-                return $matches[2] . 'x' . $matches[1];
234
+                return $matches[2].'x'.$matches[1];
235 235
             }
236 236
         }
237 237
         return;
@@ -264,7 +264,7 @@  discard block
 block discarded – undo
264 264
         $lines      = [];
265 265
         $line       = '';
266 266
         foreach (preg_split('//u', $utf8String) as $char) {
267
-            if (mb_strwidth($line . $char, 'utf8') <= $width) {
267
+            if (mb_strwidth($line.$char, 'utf8') <= $width) {
268 268
                 $line .= $char;
269 269
                 continue;
270 270
             }
@@ -340,7 +340,7 @@  discard block
 block discarded – undo
340 340
         if (null === $stream) {
341 341
             $stream = $this->stdout;
342 342
         }
343
-        if (false === @fwrite($stream, $message . ($newline ? PHP_EOL : ''))) {
343
+        if (false === @fwrite($stream, $message.($newline ? PHP_EOL : ''))) {
344 344
             throw new \RuntimeException('Unable to write output.');
345 345
         }
346 346
 
@@ -356,7 +356,7 @@  discard block
 block discarded – undo
356 356
     {
357 357
         if (DIRECTORY_SEPARATOR === '\\') {
358 358
             return
359
-            '10.0.10586' === PHP_WINDOWS_VERSION_MAJOR . '.' . PHP_WINDOWS_VERSION_MINOR . '.' . PHP_WINDOWS_VERSION_BUILD
359
+            '10.0.10586' === PHP_WINDOWS_VERSION_MAJOR.'.'.PHP_WINDOWS_VERSION_MINOR.'.'.PHP_WINDOWS_VERSION_BUILD
360 360
             || false !== getenv('ANSICON')
361 361
             || 'ON' === getenv('ConEmuANSI')
362 362
             || 'xterm' === getenv('TERM');
Please login to merge, or discard this patch.
src/think/console/output/Descriptor.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
         $spacingWidth = $totalWidth - strlen($argument->getName()) + 2;
87 87
 
88 88
         $this->writeText(sprintf("  <info>%s</info>%s%s%s", $argument->getName(), str_repeat(' ', $spacingWidth), // + 17 = 2 spaces + <info> + </info> + 2 spaces
89
-            preg_replace('/\s*\R\s*/', PHP_EOL . str_repeat(' ', $totalWidth + 17), $argument->getDescription()), $default), $options);
89
+            preg_replace('/\s*\R\s*/', PHP_EOL.str_repeat(' ', $totalWidth + 17), $argument->getDescription()), $default), $options);
90 90
     }
91 91
 
92 92
     /**
@@ -108,10 +108,10 @@  discard block
 block discarded – undo
108 108
 
109 109
         $value = '';
110 110
         if ($option->acceptValue()) {
111
-            $value = '=' . strtoupper($option->getName());
111
+            $value = '='.strtoupper($option->getName());
112 112
 
113 113
             if ($option->isValueOptional()) {
114
-                $value = '[' . $value . ']';
114
+                $value = '['.$value.']';
115 115
             }
116 116
         }
117 117
 
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
         $spacingWidth = $totalWidth - strlen($synopsis) + 2;
122 122
 
123 123
         $this->writeText(sprintf("  <info>%s</info>%s%s%s%s", $synopsis, str_repeat(' ', $spacingWidth), // + 17 = 2 spaces + <info> + </info> + 2 spaces
124
-            preg_replace('/\s*\R\s*/', "\n" . str_repeat(' ', $totalWidth + 17), $option->getDescription()), $default, $option->isArray() ? '<comment> (multiple values allowed)</comment>' : ''), $options);
124
+            preg_replace('/\s*\R\s*/', "\n".str_repeat(' ', $totalWidth + 17), $option->getDescription()), $default, $option->isArray() ? '<comment> (multiple values allowed)</comment>' : ''), $options);
125 125
     }
126 126
 
127 127
     /**
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
         $this->writeText('<comment>Usage:</comment>', $options);
185 185
         foreach (array_merge([$command->getSynopsis(true)], $command->getAliases(), $command->getUsages()) as $usage) {
186 186
             $this->writeText("\n");
187
-            $this->writeText('  ' . $usage, $options);
187
+            $this->writeText('  '.$usage, $options);
188 188
         }
189 189
         $this->writeText("\n");
190 190
 
@@ -199,7 +199,7 @@  discard block
 block discarded – undo
199 199
             $this->writeText("\n");
200 200
             $this->writeText('<comment>Help:</comment>', $options);
201 201
             $this->writeText("\n");
202
-            $this->writeText(' ' . str_replace("\n", "\n ", $help), $options);
202
+            $this->writeText(' '.str_replace("\n", "\n ", $help), $options);
203 203
             $this->writeText("\n");
204 204
         }
205 205
     }
@@ -247,7 +247,7 @@  discard block
 block discarded – undo
247 247
             foreach ($description->getNamespaces() as $namespace) {
248 248
                 if (!$describedNamespace && ConsoleDescription::GLOBAL_NAMESPACE !== $namespace['id']) {
249 249
                     $this->writeText("\n");
250
-                    $this->writeText(' <comment>' . $namespace['id'] . '</comment>', $options);
250
+                    $this->writeText(' <comment>'.$namespace['id'].'</comment>', $options);
251 251
                 }
252 252
 
253 253
                 foreach ($namespace['commands'] as $name) {
Please login to merge, or discard this patch.