]> git.mxchange.org Git - friendica.git/blobdiff - src/Console/Addon.php
New table "post-counts" to precalculate the counts
[friendica.git] / src / Console / Addon.php
index 1389e97bf4f75573c0423d09c16b5a0c0a396b5f..aa47d41a2411ba30c8e245a5886445e2b80c82a5 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2022, the Friendica project
+ * @copyright Copyright (C) 2010-2023, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -82,7 +82,7 @@ HELP;
                AddonCore::loadAddons();
        }
 
-       protected function doExecute()
+       protected function doExecute(): int
        {
                if ($this->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);