From 22a6f6c612a7f201465d803ac2b1fb5dfcdb9cf0 Mon Sep 17 00:00:00 2001 From: Niels Keurentjes Date: Sat, 20 Feb 2016 13:33:24 +0100 Subject: [PATCH] phpdoc consistency. --- src/Composer/Command/BaseDependencyCommand.php | 4 +++- src/Composer/Command/DependsCommand.php | 2 +- src/Composer/Command/ProhibitsCommand.php | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/Composer/Command/BaseDependencyCommand.php b/src/Composer/Command/BaseDependencyCommand.php index a84c62bc3..1e4d2e715 100644 --- a/src/Composer/Command/BaseDependencyCommand.php +++ b/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; } /** diff --git a/src/Composer/Command/DependsCommand.php b/src/Composer/Command/DependsCommand.php index 3da8d991b..0cfb5b83d 100644 --- a/src/Composer/Command/DependsCommand.php +++ b/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); } } diff --git a/src/Composer/Command/ProhibitsCommand.php b/src/Composer/Command/ProhibitsCommand.php index 3f0ea15a5..fb717eb7e 100644 --- a/src/Composer/Command/ProhibitsCommand.php +++ b/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); } }