@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | protected function getEnvironmentVariables(): array |
82 | 82 | { |
83 | 83 | return Arr::whereNotNull([ |
84 | - 'HYDE_SERVER_REQUEST_OUTPUT' => ! $this->option('no-ansi'), |
|
84 | + 'HYDE_SERVER_REQUEST_OUTPUT' => !$this->option('no-ansi'), |
|
85 | 85 | 'HYDE_SERVER_SAVE_PREVIEW' => $this->parseEnvironmentOption('save-preview'), |
86 | 86 | 'HYDE_SERVER_DASHBOARD' => $this->parseEnvironmentOption('dashboard'), |
87 | 87 | 'HYDE_PRETTY_URLS' => $this->parseEnvironmentOption('pretty-urls'), |
@@ -91,7 +91,7 @@ discard block |
||
91 | 91 | |
92 | 92 | protected function configureOutput(): void |
93 | 93 | { |
94 | - if (! $this->useBasicOutput()) { |
|
94 | + if (!$this->useBasicOutput()) { |
|
95 | 95 | $this->console = new ConsoleOutput($this->output->isVerbose()); |
96 | 96 | } |
97 | 97 | } |
@@ -105,14 +105,14 @@ discard block |
||
105 | 105 | |
106 | 106 | protected function getOutputHandler(): Closure |
107 | 107 | { |
108 | - return $this->useBasicOutput() ? function (string $type, string $line): void { |
|
108 | + return $this->useBasicOutput() ? function(string $type, string $line): void { |
|
109 | 109 | $this->output->write($line); |
110 | 110 | } : $this->console->getFormatter(); |
111 | 111 | } |
112 | 112 | |
113 | 113 | protected function useBasicOutput(): bool |
114 | 114 | { |
115 | - return $this->option('no-ansi') || ! class_exists(ConsoleOutput::class); |
|
115 | + return $this->option('no-ansi') || !class_exists(ConsoleOutput::class); |
|
116 | 116 | } |
117 | 117 | |
118 | 118 | protected function parseEnvironmentOption(string $name): ?string |
@@ -153,7 +153,7 @@ discard block |
||
153 | 153 | |
154 | 154 | $process = $command ? Process::command(sprintf('%s http://%s:%d', $command, $this->getHostSelection(), $this->getPortSelection()))->run() : null; |
155 | 155 | |
156 | - if (! $process || $process->failed()) { |
|
156 | + if (!$process || $process->failed()) { |
|
157 | 157 | $this->warn('Unable to open the site preview in the browser on your system:'); |
158 | 158 | $this->line(sprintf(' %s', str_replace("\n", "\n ", $process ? $process->errorOutput() : "Missing suitable 'open' binary."))); |
159 | 159 | $this->newLine(); |