Passed
Push — master ( 66aaf6...e18e2b )
by Caen
05:07 queued 18s
created
packages/framework/src/Console/Commands/ServeCommand.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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();
Please login to merge, or discard this patch.