<?php
/**
- * @copyright Copyright (C) 2021, Friendica
+ * @copyright Copyright (C) 2010-2023, the Friendica project
*
* @license GNU AGPL version 3 or any later version
*
AddonCore::loadAddons();
}
- protected function doExecute()
+ protected function doExecute(): int
{
if ($this->getOption('v')) {
$this->out('Class: ' . __CLASS__);
/**
* Lists plugins
*
- * @return int Return code of this command
- *
+ * @return int|bool Return code of this command, false on error (?)
* @throws \Exception
*/
private function list()
* Enables an addon
*
* @return int Return code of this command
- *
* @throws \Exception
*/
- private function enable()
+ private function enable(): int
{
$addonname = $this->getArgument(1);
* Disables an addon
*
* @return int Return code of this command
- *
* @throws \Exception
*/
- private function disable()
+ private function disable(): int
{
$addonname = $this->getArgument(1);