X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FConsole%2FAddon.php;h=aa47d41a2411ba30c8e245a5886445e2b80c82a5;hb=40a126306621fe9eadb58101bd19a0be32e4c163;hp=1389e97bf4f75573c0423d09c16b5a0c0a396b5f;hpb=3d8e82d95d9cc76b45a8db301b22c4111f335e1c;p=friendica.git diff --git a/src/Console/Addon.php b/src/Console/Addon.php index 1389e97bf4..aa47d41a24 100644 --- a/src/Console/Addon.php +++ b/src/Console/Addon.php @@ -1,6 +1,6 @@ getOption('v')) { $this->out('Class: ' . __CLASS__); @@ -116,8 +116,7 @@ HELP; /** * 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() @@ -165,10 +164,9 @@ HELP; * Enables an addon * * @return int Return code of this command - * * @throws \Exception */ - private function enable() + private function enable(): int { $addonname = $this->getArgument(1); @@ -190,10 +188,9 @@ HELP; * Disables an addon * * @return int Return code of this command - * * @throws \Exception */ - private function disable() + private function disable(): int { $addonname = $this->getArgument(1);