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