@@ -95,8 +95,6 @@ discard block |
||
| 95 | 95 | /** |
| 96 | 96 | * {@inheritdoc} |
| 97 | 97 | * |
| 98 | - * @param InputInterface $input |
|
| 99 | - * @param OutputInterface $output |
|
| 100 | 98 | */ |
| 101 | 99 | public function start() |
| 102 | 100 | { |
@@ -221,7 +219,7 @@ discard block |
||
| 221 | 219 | * @param \Closure $closure |
| 222 | 220 | * @param \Symfony\Component\Console\Output\OutputInterface $output |
| 223 | 221 | * |
| 224 | - * @return mixed |
|
| 222 | + * @return OutputInterface |
|
| 225 | 223 | */ |
| 226 | 224 | private function runScoped(\Closure $closure, OutputInterface $output) |
| 227 | 225 | { |
@@ -105,7 +105,7 @@ discard block |
||
| 105 | 105 | $this->output = new ConsoleOutput(); |
| 106 | 106 | $this->configureIO($input, $this->output); |
| 107 | 107 | |
| 108 | - $this->runScoped(function () use ($input) { |
|
| 108 | + $this->runScoped(function() use ($input) { |
|
| 109 | 109 | $this->consoleApplication()->run($input, $this->output); |
| 110 | 110 | }, $this->output); |
| 111 | 111 | } |
@@ -134,7 +134,7 @@ discard block |
||
| 134 | 134 | |
| 135 | 135 | $output = $output ?? new BufferedOutput(); |
| 136 | 136 | |
| 137 | - $code = $this->runScoped(function () use ($input, $output, $command) { |
|
| 137 | + $code = $this->runScoped(function() use ($input, $output, $command) { |
|
| 138 | 138 | return $this->consoleApplication()->find($command)->run($input, $output); |
| 139 | 139 | }, $output); |
| 140 | 140 | |
@@ -58,9 +58,9 @@ discard block |
||
| 58 | 58 | private function renderHeader(\Throwable $e) |
| 59 | 59 | { |
| 60 | 60 | if ($e instanceof \Error) { |
| 61 | - $this->title("[" . get_class($e) . "]\n" . $e->getMessage(), "bg=magenta;fg=white"); |
|
| 61 | + $this->title("[".get_class($e)."]\n".$e->getMessage(), "bg=magenta;fg=white"); |
|
| 62 | 62 | } else { |
| 63 | - $this->title("[" . get_class($e) . "]\n" . $e->getMessage(), "bg=red;fg=white"); |
|
| 63 | + $this->title("[".get_class($e)."]\n".$e->getMessage(), "bg=red;fg=white"); |
|
| 64 | 64 | } |
| 65 | 65 | |
| 66 | 66 | if ($e instanceof QueryExceptionInterface) { |
@@ -130,7 +130,7 @@ discard block |
||
| 130 | 130 | { |
| 131 | 131 | $lines = explode("\n", str_replace("\r", "", $title)); |
| 132 | 132 | $length = 0; |
| 133 | - array_walk($lines, function ($v) use (&$length) { |
|
| 133 | + array_walk($lines, function($v) use (&$length) { |
|
| 134 | 134 | $length = max($length, mb_strlen($v)); |
| 135 | 135 | }); |
| 136 | 136 | |