@@ -144,7 +144,7 @@ discard block |
||
144 | 144 | */ |
145 | 145 | public function showCommandsHelp(array $commands, string $header = '', string $footer = ''): self |
146 | 146 | { |
147 | - $this->maxCmdName = $commands ? \max(\array_map(function (Command $cmd) { |
|
147 | + $this->maxCmdName = $commands ? \max(\array_map(function(Command $cmd) { |
|
148 | 148 | return \strlen($cmd->name()); |
149 | 149 | }, $commands)) : 0; |
150 | 150 | |
@@ -207,7 +207,7 @@ discard block |
||
207 | 207 | } |
208 | 208 | |
209 | 209 | $maxlen = \max($lines) + 4; |
210 | - $usage = \preg_replace_callback('~ ## ~', function () use (&$lines, $maxlen) { |
|
210 | + $usage = \preg_replace_callback('~ ## ~', function() use (&$lines, $maxlen) { |
|
211 | 211 | return \str_pad('# ', $maxlen - \array_shift($lines), ' ', \STR_PAD_LEFT); |
212 | 212 | }, $usage); |
213 | 213 | |
@@ -226,11 +226,11 @@ discard block |
||
226 | 226 | */ |
227 | 227 | protected function sortItems(array $items, &$max = 0): array |
228 | 228 | { |
229 | - $max = \max(\array_map(function ($item) { |
|
229 | + $max = \max(\array_map(function($item) { |
|
230 | 230 | return \strlen($this->getName($item)); |
231 | 231 | }, $items)); |
232 | 232 | |
233 | - \uasort($items, function ($a, $b) { |
|
233 | + \uasort($items, function($a, $b) { |
|
234 | 234 | /* @var Parameter $b */ |
235 | 235 | /* @var Parameter $a */ |
236 | 236 | return $a->name() <=> $b->name(); |