| @@ -9,7 +9,7 @@ | ||
| 9 | 9 | $search = new \SplFileInfo($realPath); | 
| 10 | 10 | |
| 11 | 11 | return $this->in($search->getPath())->filter( | 
| 12 | -            function (\SplFileInfo $found) use ($search) { | |
| 12 | +            function(\SplFileInfo $found) use ($search) { | |
| 13 | 13 | return $search->getRealPath() === $found->getRealPath(); | 
| 14 | 14 | } | 
| 15 | 15 | ); | 
| @@ -15,7 +15,7 @@ | ||
| 15 | 15 |          $ids = array_keys($container->findTaggedServiceIds('console.command', true)); | 
| 16 | 16 | |
| 17 | 17 | $refs = array_map( | 
| 18 | -            function ($id) { | |
| 18 | +            function($id) { | |
| 19 | 19 | return new Reference($id); | 
| 20 | 20 | }, | 
| 21 | 21 | $ids | 
| @@ -20,7 +20,7 @@ | ||
| 20 | 20 |      { | 
| 21 | 21 | return new self( | 
| 22 | 22 | ...array_map( | 
| 23 | -                function (string $host) { | |
| 23 | +                function(string $host) { | |
| 24 | 24 | return Hostname::parse($host); | 
| 25 | 25 | }, | 
| 26 | 26 | $value | 
| @@ -62,7 +62,7 @@ | ||
| 62 | 62 | |
| 63 | 63 | private function callback(bool $displayProgressText, bool $useProgress, ProgressBar $progressBar): \Closure | 
| 64 | 64 |      { | 
| 65 | -        return function ($type, $buffer) use ($useProgress, $displayProgressText, $progressBar) { | |
| 65 | +        return function($type, $buffer) use ($useProgress, $displayProgressText, $progressBar) { | |
| 66 | 66 |              if ($useProgress) { | 
| 67 | 67 |                  if ($displayProgressText && Process::OUT === $type) { | 
| 68 | 68 |                      $progressBar->setMessage(substr(preg_replace('#\s+#', ' ', $buffer), 0, 100)); | 
| @@ -173,7 +173,7 @@ discard block | ||
| 173 | 173 | private function filterCommands($description): array | 
| 174 | 174 |      { | 
| 175 | 175 | return array_filter($description->getCommands(), | 
| 176 | -            function (Command $command) { | |
| 176 | +            function(Command $command) { | |
| 177 | 177 | return $command instanceof DocumentedCommand; | 
| 178 | 178 | }); | 
| 179 | 179 | } | 
| @@ -186,7 +186,7 @@ discard block | ||
| 186 | 186 |          $this->write("\n\n"); | 
| 187 | 187 |          $this->write(implode("\n", | 
| 188 | 188 | array_map( | 
| 189 | -                    function (Command $command) { | |
| 189 | +                    function(Command $command) { | |
| 190 | 190 | return sprintf( | 
| 191 | 191 | "* [`%s`](#%s)\n > %s", | 
| 192 | 192 | $command->getName(), | 
| @@ -205,7 +205,7 @@ discard block | ||
| 205 | 205 | */ | 
| 206 | 206 | private function sortOptions(): \Closure | 
| 207 | 207 |      { | 
| 208 | -        return function (InputOption $a, InputOption $b) { | |
| 208 | +        return function(InputOption $a, InputOption $b) { | |
| 209 | 209 |              if ($a->isValueRequired() == $b->isValueRequired()) { | 
| 210 | 210 | return 0; | 
| 211 | 211 | } | 
| @@ -231,7 +231,7 @@ discard block | ||
| 231 | 231 | $command->getAliases(), | 
| 232 | 232 | $command->getUsages() | 
| 233 | 233 | ), | 
| 234 | -            function ($carry, $usage) { | |
| 234 | +            function($carry, $usage) { | |
| 235 | 235 | return $carry.'* `'.$usage.'`'."\n"; | 
| 236 | 236 | } | 
| 237 | 237 | ); | 
| @@ -23,7 +23,7 @@ | ||
| 23 | 23 | |
| 24 | 24 | private function callback(): \Closure | 
| 25 | 25 |      { | 
| 26 | -        return function ($matches) { | |
| 26 | +        return function($matches) { | |
| 27 | 27 | $input = $matches[0]; | 
| 28 | 28 | |
| 29 | 29 | return "[$input]($input)"; | 
| @@ -46,14 +46,14 @@ | ||
| 46 | 46 | |
| 47 | 47 | private function normalizer(): \Closure | 
| 48 | 48 |      { | 
| 49 | -        return function ($answer): string { | |
| 50 | - return trim((string)$answer); | |
| 49 | +        return function($answer): string { | |
| 50 | + return trim((string) $answer); | |
| 51 | 51 | }; | 
| 52 | 52 | } | 
| 53 | 53 | |
| 54 | 54 | private function validator(OptionProvider $optionProvider): \Closure | 
| 55 | 55 |      { | 
| 56 | -        return function (string $answer) use ($optionProvider): string { | |
| 56 | +        return function(string $answer) use ($optionProvider): string { | |
| 57 | 57 |              if (!$answer) { | 
| 58 | 58 |                  throw new \Exception('No answer was given. Try again.'); | 
| 59 | 59 | } |