@@ -101,7 +101,7 @@ discard block |
||
101 | 101 | protected function getEnvironmentVariables(): array |
102 | 102 | { |
103 | 103 | return Arr::whereNotNull([ |
104 | - 'HYDE_SERVER_REQUEST_OUTPUT' => ! $this->option('no-ansi'), |
|
104 | + 'HYDE_SERVER_REQUEST_OUTPUT' => !$this->option('no-ansi'), |
|
105 | 105 | 'HYDE_SERVER_SAVE_PREVIEW' => $this->parseEnvironmentOption('save-preview'), |
106 | 106 | 'HYDE_SERVER_DASHBOARD' => $this->parseEnvironmentOption('dashboard'), |
107 | 107 | 'HYDE_PRETTY_URLS' => $this->parseEnvironmentOption('pretty-urls'), |
@@ -111,7 +111,7 @@ discard block |
||
111 | 111 | |
112 | 112 | protected function configureOutput(): void |
113 | 113 | { |
114 | - if (! $this->useBasicOutput()) { |
|
114 | + if (!$this->useBasicOutput()) { |
|
115 | 115 | $this->console = new ConsoleOutput($this->output->isVerbose()); |
116 | 116 | } |
117 | 117 | } |
@@ -125,14 +125,14 @@ discard block |
||
125 | 125 | |
126 | 126 | protected function getOutputHandler(): Closure |
127 | 127 | { |
128 | - return $this->useBasicOutput() ? function (string $type, string $line): void { |
|
128 | + return $this->useBasicOutput() ? function(string $type, string $line): void { |
|
129 | 129 | $this->output->write($line); |
130 | 130 | } : $this->console->getFormatter(); |
131 | 131 | } |
132 | 132 | |
133 | 133 | protected function useBasicOutput(): bool |
134 | 134 | { |
135 | - return $this->option('no-ansi') || ! class_exists(ConsoleOutput::class); |
|
135 | + return $this->option('no-ansi') || !class_exists(ConsoleOutput::class); |
|
136 | 136 | } |
137 | 137 | |
138 | 138 | protected function parseEnvironmentOption(string $name): ?string |
@@ -171,7 +171,7 @@ discard block |
||
171 | 171 | |
172 | 172 | $process = $binary ? Process::command($command)->run() : null; |
173 | 173 | |
174 | - if (! $process || $process->failed()) { |
|
174 | + if (!$process || $process->failed()) { |
|
175 | 175 | $this->warn('Unable to open the site preview in the browser on your system:'); |
176 | 176 | $this->line(sprintf(' %s', str_replace("\n", "\n ", $process ? $process->errorOutput() : "Missing suitable 'open' binary."))); |
177 | 177 | $this->newLine(); |
@@ -190,7 +190,7 @@ discard block |
||
190 | 190 | |
191 | 191 | protected function runViteProcess(): void |
192 | 192 | { |
193 | - if (! $this->isPortAvailable(5173)) { |
|
193 | + if (!$this->isPortAvailable(5173)) { |
|
194 | 194 | throw new InvalidArgumentException( |
195 | 195 | 'Unable to start Vite server: Port 5173 is already in use. '. |
196 | 196 | 'Please stop any other Vite processes and try again.' |
@@ -215,7 +215,7 @@ discard block |
||
215 | 215 | while ($this->server->running()) { |
216 | 216 | $this->handleViteOutput(); |
217 | 217 | |
218 | - Sleep::for(100)->milliseconds(); |
|
218 | + Sleep::for (100)->milliseconds(); |
|
219 | 219 | } |
220 | 220 | } |
221 | 221 | |
@@ -258,7 +258,7 @@ discard block |
||
258 | 258 | |
259 | 259 | protected function ensureNodeModulesAvailable(): void |
260 | 260 | { |
261 | - if (! $this->nodeModulesInstalled()) { |
|
261 | + if (!$this->nodeModulesInstalled()) { |
|
262 | 262 | if ($this->input->isInteractive()) { |
263 | 263 | $this->warn('Node modules are not installed. Vite requires Node dependencies to function.'); |
264 | 264 | |
@@ -297,7 +297,7 @@ discard block |
||
297 | 297 | |
298 | 298 | $this->info('Node modules installed successfully.'); |
299 | 299 | |
300 | - if (! $this->nodeModulesInstalled()) { |
|
300 | + if (!$this->nodeModulesInstalled()) { |
|
301 | 301 | throw new InvalidArgumentException( |
302 | 302 | 'Node modules installation completed but dependencies are still not available.' |
303 | 303 | ); |