]> git.mxchange.org Git - friendica.git/blobdiff - src/Console/Typo.php
Posts per author/server on the community pages (#13764)
[friendica.git] / src / Console / Typo.php
index 8935a86c17b7acc3e7706f6ae2766b8557a1bf1c..a3e9b770505b6873540c0d9ba10aae6bdcacd227 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2020, Friendica
+ * @copyright Copyright (C) 2010-2023, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -21,7 +21,7 @@
 
 namespace Friendica\Console;
 
-use Friendica\Core\Config\IConfig;
+use Friendica\Core\Config\Capability\IManageConfigValues;
 
 /**
  * Tired of chasing typos and finding them after a commit.
@@ -32,7 +32,7 @@ class Typo extends \Asika\SimpleConsole\Console
        protected $helpOptions = ['h', 'help', '?'];
 
        /**
-        * @var IConfig
+        * @var IManageConfigValues
         */
        private $config;
 
@@ -53,14 +53,14 @@ HELP;
                return $help;
        }
 
-       public function __construct(IConfig $config, array $argv = null)
+       public function __construct(IManageConfigValues $config, array $argv = null)
        {
                parent::__construct($argv);
 
                $this->config = $config;
        }
 
-       protected function doExecute()
+       protected function doExecute(): int
        {
                if ($this->getOption('v')) {
                        $this->out('Class: ' . __CLASS__);
@@ -105,13 +105,6 @@ HELP;
                $files = glob('mod/*.php');
                $this->checkFiles($php_path, $files);
 
-               if ($this->getOption('v')) {
-                       $this->out('Directory: include');
-               }
-
-               $files = glob('include/*.php');
-               $this->checkFiles($php_path, $files);
-
                if ($this->getOption('v')) {
                        $this->out('Directory: addon');
                }