namespace Friendica\Core\Console;
+use Friendica\BaseObject;
+
/**
* Tired of chasing typos and finding them after a commit.
* Run this and quickly see if we've got any parse errors in our application files.
throw new \Asika\SimpleConsole\CommandArgsException('Too many arguments');
}
- $a = get_app();
-
- $php_path = $a->getConfigValue('config', 'php_path', 'php');
+ $php_path = BaseObject::getApp()->getConfigCache()->get('config', 'php_path', 'php');
if ($this->getOption('v')) {
$this->out('Directory: src');
$this->out('String files');
}
- $this->checkFile($php_path, 'util/strings.php');
-
$files = glob('view/lang/*/strings.php');
$this->checkFiles($php_path, $files);