Browse Source

phpdoc consistency.

Niels Keurentjes 9 years ago
parent
commit
22a6f6c612

+ 3 - 1
src/Composer/Command/BaseDependencyCommand.php

@@ -57,7 +57,8 @@ class BaseDependencyCommand extends BaseCommand
      *
      * @param InputInterface $input
      * @param OutputInterface $output
-     * @param bool @inverted Whether
+     * @param bool $inverted Whether to invert matching process (why-not vs why behaviour)
+     * @return int|null Exit code of the operation.
      */
     protected function doExecute(InputInterface $input, OutputInterface $output, $inverted = false)
     {
@@ -121,6 +122,7 @@ class BaseDependencyCommand extends BaseCommand
         } else {
             $this->printTable($output, $results);
         }
+        return 0;
     }
 
     /**

+ 1 - 1
src/Composer/Command/DependsCommand.php

@@ -50,6 +50,6 @@ EOT
      */
     protected function execute(InputInterface $input, OutputInterface $output)
     {
-        parent::doExecute($input, $output, false);
+        return parent::doExecute($input, $output, false);
     }
 }

+ 1 - 1
src/Composer/Command/ProhibitsCommand.php

@@ -50,6 +50,6 @@ EOT
      */
     protected function execute(InputInterface $input, OutputInterface $output)
     {
-        parent::doExecute($input, $output, true);
+        return parent::doExecute($input, $output, true);
     }
 }