Passed
Push — master ( d5390f...e86b33 )
by Caen
03:40 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
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
     protected function getEnvironmentVariables(): array
83 83
     {
84 84
         return Arr::whereNotNull([
85
-            'HYDE_SERVER_REQUEST_OUTPUT' => ! $this->option('no-ansi'),
85
+            'HYDE_SERVER_REQUEST_OUTPUT' => !$this->option('no-ansi'),
86 86
             'HYDE_SERVER_SAVE_PREVIEW' => $this->parseEnvironmentOption('save-preview'),
87 87
             'HYDE_SERVER_DASHBOARD' => $this->parseEnvironmentOption('dashboard'),
88 88
             'HYDE_PRETTY_URLS' => $this->parseEnvironmentOption('pretty-urls'),
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
 
93 93
     protected function configureOutput(): void
94 94
     {
95
-        if (! $this->useBasicOutput()) {
95
+        if (!$this->useBasicOutput()) {
96 96
             $this->console = new ConsoleOutput($this->output->isVerbose());
97 97
         }
98 98
     }
@@ -106,14 +106,14 @@  discard block
 block discarded – undo
106 106
 
107 107
     protected function getOutputHandler(): Closure
108 108
     {
109
-        return $this->useBasicOutput() ? function (string $type, string $line): void {
109
+        return $this->useBasicOutput() ? function(string $type, string $line): void {
110 110
             $this->output->write($line);
111 111
         } : $this->console->getFormatter();
112 112
     }
113 113
 
114 114
     protected function useBasicOutput(): bool
115 115
     {
116
-        return $this->option('no-ansi') || ! class_exists(ConsoleOutput::class);
116
+        return $this->option('no-ansi') || !class_exists(ConsoleOutput::class);
117 117
     }
118 118
 
119 119
     protected function parseEnvironmentOption(string $name): ?string
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
 
158 158
         $process = $binary ? Process::command($command)->run() : null;
159 159
 
160
-        if (! $process || $process->failed()) {
160
+        if (!$process || $process->failed()) {
161 161
             $this->warn('Unable to open the site preview in the browser on your system:');
162 162
             $this->line(sprintf('  %s', str_replace("\n", "\n  ", $process ? $process->errorOutput() : "Missing suitable 'open' binary.")));
163 163
             $this->newLine();
Please login to merge, or discard this patch.