refactor: code quality changes

This commit is contained in:
HDVinnie
2020-06-02 18:37:19 -04:00
parent 53fd6412b1
commit f69ecec866
25 changed files with 98 additions and 81 deletions
+1 -1
View File
@@ -79,7 +79,7 @@ class Language
public static function allowed($locale = null)
{
if ($locale) {
return in_array($locale, array_keys(self::allowed()));
return array_key_exists($locale, self::allowed());
}
if (config('language.allowed')) {