diff options
Diffstat (limited to 'core/Command/App/ListApps.php')
-rw-r--r-- | core/Command/App/ListApps.php | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/core/Command/App/ListApps.php b/core/Command/App/ListApps.php index 6c3d4bb743d..524b5ecd89d 100644 --- a/core/Command/App/ListApps.php +++ b/core/Command/App/ListApps.php @@ -2,6 +2,7 @@ /** * @copyright Copyright (c) 2016, ownCloud, Inc. * + * @author Christoph Wurst <christoph@winzerhof-wurst.at> * @author Joas Schilling <coding@schilljs.com> * @author Morris Jobke <hey@morrisjobke.de> * @author Robin Appelman <robin@icewind.nl> @@ -22,7 +23,6 @@ * along with this program. If not, see <http://www.gnu.org/licenses/> * */ - namespace OC\Core\Command\App; use OC\Core\Command\Base; @@ -60,8 +60,8 @@ class ListApps extends Base { ; } - protected function execute(InputInterface $input, OutputInterface $output) { - if ($input->getOption('shipped') === 'true' || $input->getOption('shipped') === 'false'){ + protected function execute(InputInterface $input, OutputInterface $output): int { + if ($input->getOption('shipped') === 'true' || $input->getOption('shipped') === 'false') { $shippedFilter = $input->getOption('shipped') === 'true'; } else { $shippedFilter = null; @@ -73,7 +73,7 @@ class ListApps extends Base { //sort enabled apps above disabled apps foreach ($apps as $app) { - if ($shippedFilter !== null && $this->manager->isShipped($app) !== $shippedFilter){ + if ($shippedFilter !== null && $this->manager->isShipped($app) !== $shippedFilter) { continue; } if ($this->manager->isInstalled($app)) { @@ -96,6 +96,7 @@ class ListApps extends Base { } $this->writeAppList($input, $output, $apps); + return 0; } /** @@ -121,10 +122,10 @@ class ListApps extends Base { /** * @param string $optionName - * @param CompletionContext $completionContext + * @param CompletionContext $context * @return array */ - public function completeOptionValues($optionName, CompletionContext $completionContext) { + public function completeOptionValues($optionName, CompletionContext $context) { if ($optionName === 'shipped') { return ['true', 'false']; } |