mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-05-01 16:00:53 -05:00
refactor: code quality changes
This commit is contained in:
@@ -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')) {
|
||||
|
||||
Reference in New Issue
Block a user