Completed
Push — master ( eccf55...2de74b )
by Amine
02:19
created
src/Command.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -211,7 +211,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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)
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -317,7 +317,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
         }
Please login to merge, or discard this patch.