]> git.mxchange.org Git - friendica.git/commitdiff
Added returned type-int "int"
authorRoland Häder <roland@mxchange.org>
Wed, 13 Jul 2022 19:09:49 +0000 (21:09 +0200)
committerRoland Häder <roland@mxchange.org>
Wed, 13 Jul 2022 19:10:50 +0000 (21:10 +0200)
28 files changed:
src/Console/Addon.php
src/Console/ArchiveContact.php
src/Console/AutomaticInstallation.php
src/Console/Cache.php
src/Console/Config.php
src/Console/Contact.php
src/Console/CreateDoxygen.php
src/Console/DatabaseStructure.php
src/Console/DocBloxErrorChecker.php
src/Console/Extract.php
src/Console/FixAPDeliveryWorkerTaskParameters.php
src/Console/GlobalCommunityBlock.php
src/Console/GlobalCommunitySilence.php
src/Console/Lock.php
src/Console/Maintenance.php
src/Console/MergeContacts.php
src/Console/MoveToAvatarCache.php
src/Console/PhpToPo.php
src/Console/PoToPhp.php
src/Console/PostUpdate.php
src/Console/Relay.php
src/Console/Relocate.php
src/Console/ServerBlock.php
src/Console/Storage.php
src/Console/Test.php
src/Console/Typo.php
src/Console/User.php
src/Core/Console.php

index 74b0818100065eea79582cf03fdc121ff9141edf..13e1951f2ec822266f49ec52ff35d7bbbb47060f 100644 (file)
@@ -82,7 +82,7 @@ HELP;
                AddonCore::loadAddons();
        }
 
-       protected function doExecute()
+       protected function doExecute(): int
        {
                if ($this->getOption('v')) {
                        $this->out('Class: ' . __CLASS__);
index 4990d99e0bdd9de1141f181ea3ed84e5db726c75..4bd832a616b520adca308a5e8a7d89d873c0c288 100644 (file)
@@ -80,7 +80,7 @@ HELP;
                $this->l10n = $l10n;
        }
 
-       protected function doExecute()
+       protected function doExecute(): int
        {
                if ($this->getOption('v')) {
                        $this->out('Class: ' . __CLASS__);
index ca25d71a6f59e6c1f6f6eb8b6a39f51ea7392b57..1a6d10c241a8f89afa79a72a4adc92878a4b47cd 100644 (file)
@@ -110,7 +110,7 @@ HELP;
                $this->dba         = $dba;
        }
 
-       protected function doExecute()
+       protected function doExecute(): int
        {
                // Initialise the app
                $this->out("Initializing setup...");
index e02d2225a2234698f741fdb5e866039bd3c54db4..5062872e84559662d314c79adddd3bebd238614d 100644 (file)
@@ -90,7 +90,7 @@ HELP;
                $this->cache   = $cache;
        }
 
-       protected function doExecute()
+       protected function doExecute(): int
        {
                if ($this->getOption('v')) {
                        $this->out('Executable: ' . $this->executable);
index e32983a68a652aa6e332710798e002afb25acadd..760b1ca51b39822b1a67da3e103c2c30984e3459 100644 (file)
@@ -102,7 +102,7 @@ HELP;
                $this->config = $config;
        }
 
-       protected function doExecute()
+       protected function doExecute(): int
        {
                if ($this->getOption('v')) {
                        $this->out('Executable: ' . $this->executable);
index f051d870a295c8710a72f21a7b7c57992fc3f486..37f3f056e4f755da410df6b52419f702c53ef090 100644 (file)
@@ -76,7 +76,7 @@ HELP;
                $this->appMode = $appMode;
        }
 
-       protected function doExecute()
+       protected function doExecute(): int
        {
                if ($this->getOption('v')) {
                        $this->out('Class: ' . __CLASS__);
index f7cdeaa3ef0110c8c04ab7d70aa1e81696049784..3d5ba865c06c8015339eeb9019782801825f57fa 100644 (file)
@@ -45,7 +45,7 @@ HELP;
                return $help;
        }
 
-       protected function doExecute()
+       protected function doExecute(): int
        {
                if ($this->getOption('v')) {
                        $this->out('Class: ' . __CLASS__);
index 7bb7120fa7646cb2e5871547ba17587a6a3f81c5..88f12476f5f90feb4f3c5a1d20086b77b4feef58 100644 (file)
@@ -94,7 +94,7 @@ HELP;
                $this->basePath = $basePath->getPath();
        }
 
-       protected function doExecute()
+       protected function doExecute(): int
        {
                if ($this->getOption('v')) {
                        $this->out('Class: ' . __CLASS__);
index 9e9eb149707fda267daf779cd97b8782609ca510..3d3a2b6d86f5b7786795a4e2a0e86dbff09fe888 100644 (file)
@@ -71,7 +71,7 @@ HELP;
                return $help;
        }
 
-       protected function doExecute()
+       protected function doExecute(): int
        {
                if ($this->getOption('v')) {
                        $this->out('Class: ' . __CLASS__);
index 1d651f64130e6027a028a929e56438ad5dcd0088..06015f6970692506407c8b2c471e80abea95bafe 100644 (file)
@@ -49,7 +49,7 @@ HELP;
                return $help;
        }
 
-       protected function doExecute()
+       protected function doExecute(): int
        {
                if ($this->getOption('v')) {
                        $this->out('Class: ' . __CLASS__);
index e4b895dead3c7471ca40fc5394e380f88d41bdb8..eb285da8d78b9b47bb849e68ee3ab73c2f9e6c17 100644 (file)
@@ -85,7 +85,7 @@ HELP;
                $this->l10n = $l10n;
        }
 
-       protected function doExecute()
+       protected function doExecute(): int
        {
                if ($this->getOption('v')) {
                        $this->out('Class: ' . __CLASS__);
index 39ce6d30149e636564c9930c590f93c10f00ee68..81099712ea0ebe9339b36448f2ab17a9de95be4b 100644 (file)
@@ -70,7 +70,7 @@ HELP;
                $this->l10n = $l10n;
        }
 
-       protected function doExecute()
+       protected function doExecute(): int
        {
                if ($this->getOption('v')) {
                        $this->out('Class: ' . __CLASS__);
index a493bbcb86d32ffdb8383f837a73909f48d1bae8..89674efd39f64249f9f5d87e6d3e8ae3b29ac32a 100644 (file)
@@ -75,7 +75,7 @@ HELP;
                $this->dba  =$dba;
        }
 
-       protected function doExecute()
+       protected function doExecute(): int
        {
                if ($this->getOption('v')) {
                        $this->out('Class: ' . __CLASS__);
index eea5d51e10fa252bba1432c004786cd8b89e3018..a89f3d861ab050130b3741620d4db6d40f4aeeb3 100644 (file)
@@ -84,7 +84,7 @@ HELP;
                $this->lock    = $lock;
        }
 
-       protected function doExecute()
+       protected function doExecute(): int
        {
                if ($this->getOption('v')) {
                        $this->out('Executable: ' . $this->executable);
index 7e731828466d8d2f5b176bb9f149948c389007b3..7744c9ee471d0b56ed07ea4ab25825a20e86fbc9 100644 (file)
@@ -77,7 +77,7 @@ HELP;
                $this->config = $config;
        }
 
-       protected function doExecute()
+       protected function doExecute(): int
        {
                if ($this->getOption('v')) {
                        $this->out('Class: ' . __CLASS__);
index 543ad316e7f9fc48c3f92589282c1e9c9e58095a..0d05c579fabaaa737b3419c97102c7ba3ed107dd 100644 (file)
@@ -67,7 +67,7 @@ HELP;
                $this->l10n = $l10n;
        }
 
-       protected function doExecute()
+       protected function doExecute(): int
        {
                $duplicates = $this->dba->p("SELECT COUNT(*) AS `total`, `uri-id`, MAX(`url`) AS `url` FROM `contact` WHERE `uid` = 0 GROUP BY `uri-id` HAVING total > 1");
                while ($duplicate = $this->dba->fetch($duplicates)) {
index 441dff682d9b57567d861ee7ede5c27c5b53e0a7..1f3147791f8b929743c6cf340751d3b28e1a5953 100644 (file)
@@ -85,7 +85,7 @@ HELP;
                $this->config = $config;
        }
 
-       protected function doExecute()
+       protected function doExecute(): int
        {
                if (!$this->config->get('system', 'avatar_cache')) {
                        $this->err($this->l10n->t('The avatar cache needs to be enabled to use this command.'));
index a6667048f432c375e969445d9bebc0d5b23716a1..4041c4069cc480a1dc5da5add328eda26d7aed82 100644 (file)
@@ -63,7 +63,7 @@ HELP;
                return $help;
        }
 
-       protected function doExecute()
+       protected function doExecute(): int
        {
                if ($this->getOption('v')) {
                        $this->out('Class: ' . __CLASS__);
index b67327826b72d6dc9e58b4018d5f31fcac3f6983..4f28db88b23d0945529f16bb7047f4bff5de48fd 100644 (file)
@@ -50,7 +50,7 @@ HELP;
                return $help;
        }
 
-       protected function doExecute()
+       protected function doExecute(): int
        {
                if ($this->getOption('v')) {
                        $this->out('Class: ' . __CLASS__);
index 376d3abb4b0354f6a4463b1785e9fa054626a7f7..8bec14e2767030846980b9759cd1e3e99da545b1 100644 (file)
@@ -69,7 +69,7 @@ HELP;
                $this->l10n = $l10n;
        }
 
-       protected function doExecute()
+       protected function doExecute(): int
        {
                $a = \Friendica\DI::app();
 
index 4f6bbc6b6b7c54ca1301ccb107beea18d936798f..56a3c3186af4808cdb911075991402784e4ff838 100644 (file)
@@ -76,7 +76,7 @@ HELP;
                $this->dba = $dba;
        }
 
-       protected function doExecute()
+       protected function doExecute(): int
        {
                if ($this->getOption('v')) {
                        $this->out('Executable: ' . $this->executable);
index c0054d3963299502a8adcc29d11f3f32698114a1..c1db6ef534c604f42f70c07c11522b67b48418ac 100644 (file)
@@ -74,7 +74,7 @@ HELP;
                $this->config   = $config;
        }
 
-       protected function doExecute()
+       protected function doExecute(): int
        {
                if (count($this->args) == 0) {
                        $this->out($this->getHelp());
index 9bf2c0eccafe5b4b65f646404574d8d71ff9ef44..38ae35d1057bdb0a366042890cbc94933ed1a8fe 100644 (file)
@@ -79,7 +79,7 @@ HELP;
                $this->config = $config;
        }
 
-       protected function doExecute()
+       protected function doExecute(): int
        {
                if (count($this->args) == 0) {
                        $this->printBlockedServers($this->config);
index d5af7c51356ece6e33f3f1e0ed1e429544050720..587601ba0c4461fcc2e2adfef6430fb5cdfe3715 100644 (file)
@@ -69,7 +69,7 @@ HELP;
                return $help;
        }
 
-       protected function doExecute()
+       protected function doExecute(): int
        {
                if ($this->getOption('v')) {
                        $this->out('Executable: ' . $this->executable);
index 062e386f05a94ee26ca566bff99cbee6d6196a60..15c6bf60b0483828ebd3475384cd985f1702905c 100644 (file)
@@ -42,7 +42,7 @@ HELP;
                return $help;
        }
 
-       protected function doExecute()
+       protected function doExecute(): int
        {
                if ($this->getOption('v')) {
                        $this->out('Class: ' . __CLASS__);
index 1397f6092fa97f7b39d29ff90673ad90e5b83562..4414662e7f4b150d96f9fad4fb419d13d9c162b8 100644 (file)
@@ -60,7 +60,7 @@ HELP;
                $this->config = $config;
        }
 
-       protected function doExecute()
+       protected function doExecute(): int
        {
                if ($this->getOption('v')) {
                        $this->out('Class: ' . __CLASS__);
index 1c1d26b0a9d773bffeab5d6a800a844e012301f7..586c300eaf295518e796057b004c8c204c6b241d 100644 (file)
@@ -97,7 +97,7 @@ HELP;
                $this->pConfig = $pConfig;
        }
 
-       protected function doExecute()
+       protected function doExecute(): int
        {
                if ($this->getOption('v')) {
                        $this->out('Class: ' . __CLASS__);
index ebd4c51a9ddb8ff1d07ce57cc6fcd8c831c231a0..2521e21bef7e08e385702dbdf856d3f7b1bd93ef 100644 (file)
@@ -121,7 +121,7 @@ HELP;
                $this->dice = $dice;
        }
 
-       protected function doExecute()
+       protected function doExecute(): int
        {
                if ($this->getOption('v')) {
                        $this->out('Executable: ' . $this->executable);