]> git.mxchange.org Git - friendica.git/blobdiff - src/Console/GlobalCommunityBlock.php
spelling: unable
[friendica.git] / src / Console / GlobalCommunityBlock.php
index 1789b66d9ca58378c172e37dc485a5c0a5f95d2d..6eb17034897097f33dd375179737c82e3175362d 100644 (file)
@@ -1,4 +1,23 @@
 <?php
+/**
+ * @copyright Copyright (C) 2010-2023, the Friendica project
+ *
+ * @license GNU AGPL version 3 or any later version
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program.  If not, see <https://www.gnu.org/licenses/>.
+ *
+ */
 
 namespace Friendica\Console;
 
@@ -7,15 +26,10 @@ use Friendica\Core\L10n;
 use Friendica\Model\Contact;
 
 /**
- * @brief tool to block an account from the node
+ * tool to block an account from the node
  *
  * With this tool, you can block an account in such a way, that no postings
  * or comments this account writes are accepted to the node.
- *
- * License: AGPLv3 or later, same as Friendica
- *
- * @author Tobias Diekershoff <tobias.diekershoff@gmx.net>
- * @author Hypolite Petovan <hypolite@mrpetovan.com>
  */
 class GlobalCommunityBlock extends \Asika\SimpleConsole\Console
 {
@@ -26,7 +40,7 @@ class GlobalCommunityBlock extends \Asika\SimpleConsole\Console
         */
        private $appMode;
        /**
-        * @var L10n\L10n
+        * @var \Friendica\Core\L10n
         */
        private $l10n;
 
@@ -56,7 +70,7 @@ HELP;
                $this->l10n = $l10n;
        }
 
-       protected function doExecute()
+       protected function doExecute(): int
        {
                if ($this->getOption('v')) {
                        $this->out('Class: ' . __CLASS__);