@@ -211,7 +211,7 @@ discard block |
||
211 | 211 | * adds/overrides or gets a sub command. |
212 | 212 | * |
213 | 213 | * @param string $name |
214 | - * @param Tarsana\Command\Command|null $cmd |
|
214 | + * @param null|Command $cmd |
|
215 | 215 | * @return Tarsana\Command\Command |
216 | 216 | * @throws Tarsana\Command\Exceptions\CommandNotFound |
217 | 217 | */ |
@@ -299,7 +299,7 @@ discard block |
||
299 | 299 | * Runs the command. |
300 | 300 | * |
301 | 301 | * @param string|null $args |
302 | - * @param League\CLImate\CLImate|null $console |
|
302 | + * @param null|CLImate $console |
|
303 | 303 | * @return void |
304 | 304 | */ |
305 | 305 | public function run($args = null, CLImate $console = null) |
@@ -317,7 +317,7 @@ discard block |
||
317 | 317 | $this->command($firstArg)->run($args, $console); |
318 | 318 | } else { |
319 | 319 | $this->console($console); |
320 | - if (! $this->syntax()->canParse($args)) { |
|
320 | + if (!$this->syntax()->canParse($args)) { |
|
321 | 321 | $errors = F\s($this->syntax()->checkParse($args)) |
322 | 322 | ->then(F\append("Invalid arguments: '{$args}' for command '{$this->name}'")) |
323 | 323 | ->then(F\join(PHP_EOL)) |
@@ -375,7 +375,7 @@ discard block |
||
375 | 375 | */ |
376 | 376 | protected function addDefaultSubCommands() |
377 | 377 | { |
378 | - if (! ($this instanceof HelpCommand) && ! ($this instanceof VersionCommand)) { |
|
378 | + if (!($this instanceof HelpCommand) && !($this instanceof VersionCommand)) { |
|
379 | 379 | $this->command('--version', new VersionCommand($this)); |
380 | 380 | $this->command('--help', new HelpCommand($this)); |
381 | 381 | } |