X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FConsole%2FAddon.php;h=aa47d41a2411ba30c8e245a5886445e2b80c82a5;hb=40a126306621fe9eadb58101bd19a0be32e4c163;hp=3577982ba72bdb2f3c484ce7d3baed7a0d9269d0;hpb=f25c3f4619182f363ba87d738d6eb61fb6985ae6;p=friendica.git diff --git a/src/Console/Addon.php b/src/Console/Addon.php index 3577982ba7..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);