Completed
Pull Request — master (#28)
by Jitendra
01:38
created
src/Output/Writer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -308,7 +308,7 @@
 block discarded – undo
308 308
             }
309 309
 
310 310
             $odd    = !$odd;
311
-            $body[] = "|$start ". \implode(" $end|$start ", $parts) . " $end|";
311
+            $body[] = "|$start " . \implode(" $end|$start ", $parts) . " $end|";
312 312
         }
313 313
 
314 314
         $dash  = '+' . \implode('+', $dash) . '+' . \PHP_EOL;
Please login to merge, or discard this patch.
src/Helper/OutputHelper.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
      */
67 67
     public function showCommandsHelp(array $commands, string $header = '', string $footer = ''): self
68 68
     {
69
-        $this->maxCmdName = $commands ? \max(\array_map(function (Command $cmd) {
69
+        $this->maxCmdName = $commands ? \max(\array_map(function(Command $cmd) {
70 70
             return \strlen($cmd->name());
71 71
         }, $commands)) : 0;
72 72
 
@@ -121,11 +121,11 @@  discard block
 block discarded – undo
121 121
      */
122 122
     protected function sortItems(array $items, &$max = 0): array
123 123
     {
124
-        $max = \max(\array_map(function ($item) {
124
+        $max = \max(\array_map(function($item) {
125 125
             return \strlen($this->getName($item));
126 126
         }, $items));
127 127
 
128
-        \uasort($items, function ($a, $b) {
128
+        \uasort($items, function($a, $b) {
129 129
             /** @var Parameter $b */
130 130
             /** @var Parameter $a */
131 131
             return $a->name() <=> $b->name();
Please login to merge, or discard this patch.