@@ -66,13 +66,13 @@ discard block |
||
| 66 | 66 | protected function getEnvironmentVariables(): array |
| 67 | 67 | { |
| 68 | 68 | return [ |
| 69 | - 'HYDE_RC_REQUEST_OUTPUT' => ! $this->option('no-ansi'), |
|
| 69 | + 'HYDE_RC_REQUEST_OUTPUT' => !$this->option('no-ansi'), |
|
| 70 | 70 | ]; |
| 71 | 71 | } |
| 72 | 72 | |
| 73 | 73 | protected function configureOutput(): void |
| 74 | 74 | { |
| 75 | - if (! $this->useBasicOutput()) { |
|
| 75 | + if (!$this->useBasicOutput()) { |
|
| 76 | 76 | $this->console = new ConsoleOutput($this->output->isVerbose()); |
| 77 | 77 | } |
| 78 | 78 | } |
@@ -86,13 +86,13 @@ discard block |
||
| 86 | 86 | |
| 87 | 87 | protected function getOutputHandler(): Closure |
| 88 | 88 | { |
| 89 | - return $this->useBasicOutput() ? function (string $type, string $line): void { |
|
| 89 | + return $this->useBasicOutput() ? function(string $type, string $line): void { |
|
| 90 | 90 | $this->output->write($line); |
| 91 | 91 | } : $this->console->getFormatter(); |
| 92 | 92 | } |
| 93 | 93 | |
| 94 | 94 | protected function useBasicOutput(): bool |
| 95 | 95 | { |
| 96 | - return $this->option('no-ansi') || ! class_exists(ConsoleOutput::class); |
|
| 96 | + return $this->option('no-ansi') || !class_exists(ConsoleOutput::class); |
|
| 97 | 97 | } |
| 98 | 98 | } |
@@ -53,7 +53,7 @@ discard block |
||
| 53 | 53 | |
| 54 | 54 | public function getFormatter(): Closure |
| 55 | 55 | { |
| 56 | - return function (string $type, string $line): void { |
|
| 56 | + return function(string $type, string $line): void { |
|
| 57 | 57 | $this->handleOutput($line); |
| 58 | 58 | }; |
| 59 | 59 | } |
@@ -66,7 +66,7 @@ discard block |
||
| 66 | 66 | |
| 67 | 67 | protected function handleOutput(string $buffer): void |
| 68 | 68 | { |
| 69 | - str($buffer)->trim()->explode("\n")->each(function (string $line): void { |
|
| 69 | + str($buffer)->trim()->explode("\n")->each(function(string $line): void { |
|
| 70 | 70 | $this->renderLine($this->formatLineForOutput($line)); |
| 71 | 71 | }); |
| 72 | 72 | } |