@@ -139,7 +139,7 @@ discard block |
||
139 | 139 | foreach (Filesystem::allFiles($path) as $file) { |
140 | 140 | $name = str_replace([$path, '.' . $file->getExtension(), DS], ['', '', '\\'], $file->getPathname()); |
141 | 141 | |
142 | - if (! Str::contains($name, 'Generators' . DS . 'Views')) { |
|
142 | + if (!Str::contains($name, 'Generators' . DS . 'Views')) { |
|
143 | 143 | $this->addCommand('\BlitzPHP\Cli\Commands\\' . $name); |
144 | 144 | } |
145 | 145 | } |
@@ -162,7 +162,7 @@ discard block |
||
162 | 162 | */ |
163 | 163 | private function addCommand(string $commandName) |
164 | 164 | { |
165 | - if (! class_exists($commandName)) { |
|
165 | + if (!class_exists($commandName)) { |
|
166 | 166 | throw new CLIException("La classe `{$commandName}` n'existe pas"); |
167 | 167 | } |
168 | 168 | |
@@ -171,7 +171,7 @@ discard block |
||
171 | 171 | */ |
172 | 172 | $instance = new $commandName($this, Services::logger()); |
173 | 173 | |
174 | - if (! ($instance instanceof Command)) { |
|
174 | + if (!($instance instanceof Command)) { |
|
175 | 175 | throw CLIException::invalidCommand($commandName); |
176 | 176 | } |
177 | 177 | |
@@ -193,13 +193,13 @@ discard block |
||
193 | 193 | $value = (array) $value; |
194 | 194 | |
195 | 195 | $description = $value[0]; |
196 | - if (! is_string($description)) { |
|
196 | + if (!is_string($description)) { |
|
197 | 197 | continue; |
198 | 198 | } |
199 | 199 | |
200 | 200 | $default = $value[1] ?? null; |
201 | 201 | $filter = $value[2] ?? null; |
202 | - if ($filter !== null && ! is_callable($filter)) { |
|
202 | + if ($filter !== null && !is_callable($filter)) { |
|
203 | 203 | $filter = null; |
204 | 204 | } |
205 | 205 | |
@@ -211,7 +211,7 @@ discard block |
||
211 | 211 | $value = (array) $value; |
212 | 212 | |
213 | 213 | $description = $value[0]; |
214 | - if (! is_string($description)) { |
|
214 | + if (!is_string($description)) { |
|
215 | 215 | continue; |
216 | 216 | } |
217 | 217 | |
@@ -222,14 +222,14 @@ discard block |
||
222 | 222 | |
223 | 223 | $console = $this; |
224 | 224 | |
225 | - $command->action(static function () use ($instance, $command, $console) { |
|
226 | - if (! $console->suppress) { |
|
225 | + $command->action(static function() use ($instance, $command, $console) { |
|
226 | + if (!$console->suppress) { |
|
227 | 227 | $console->start($instance->service); |
228 | 228 | } |
229 | 229 | |
230 | 230 | $result = $instance->execute($command->values(false)); |
231 | 231 | |
232 | - if (! $console->suppress) { |
|
232 | + if (!$console->suppress) { |
|
233 | 233 | $console->end(); |
234 | 234 | } |
235 | 235 |