Code cleanup

This commit is contained in:
James Cole
2018-04-28 06:23:13 +02:00
parent 6f0e1c79ac
commit 13b78bdc20
218 changed files with 621 additions and 681 deletions

View File

@@ -93,7 +93,7 @@ class HelpController extends Controller
$content = $this->help->getFromGithub($route, $language);
// content will have 0 length when Github failed. Try en_US when it does:
if (0 === strlen($content)) {
if (0 === \strlen($content)) {
$language = 'en_US';
// also check cache first:
@@ -108,7 +108,7 @@ class HelpController extends Controller
}
// help still empty?
if (0 !== strlen($content)) {
if (0 !== \strlen($content)) {
$this->help->putInCache($route, $language, $content);
return $content;