@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | public static function trans($string) |
20 | 20 | { |
21 | 21 | $translator = config('laralang.default.translator'); |
22 | - if (!in_array(config('laralang.default.translator'), ['apertium', 'mymemory', 'google'])) { |
|
22 | + if (!in_array(config('laralang.default.translator'), [ 'apertium', 'mymemory', 'google' ])) { |
|
23 | 23 | return "<font style='color:red;'>Laralang doesn't support $translator translator. Check config</font>"; |
24 | 24 | } else { |
25 | 25 | if (config('laralang.default.translator') == 'mymemory') { |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | */ |
40 | 40 | public static function toLanguages() |
41 | 41 | { |
42 | - $locales = []; |
|
42 | + $locales = [ ]; |
|
43 | 43 | $translations = DB_Translation::distinct()->select('to_lang')->get(); |
44 | 44 | foreach ($translations as $object) { |
45 | 45 | array_push($locales, $object->to_lang); |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | */ |
56 | 56 | public static function fromLanguages() |
57 | 57 | { |
58 | - $locales = []; |
|
58 | + $locales = [ ]; |
|
59 | 59 | $translations = DB_Translation::distinct()->select('from_lang')->get(); |
60 | 60 | foreach ($translations as $object) { |
61 | 61 | array_push($locales, $object->from_lang); |