@@ -120,7 +120,6 @@ |
||
120 | 120 | /** |
121 | 121 | * Return secure_url method or url method depending on config https |
122 | 122 | * |
123 | - * @param string $url |
|
124 | 123 | * |
125 | 124 | * @return string |
126 | 125 | */ |
@@ -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); |
@@ -128,9 +128,9 @@ discard block |
||
128 | 128 | { |
129 | 129 | if (config('laralang.default.https')) { |
130 | 130 | if (isset($routeArgs)) { |
131 | - return secure_url(URL::route($routeName,$routeArgs,false)); |
|
131 | + return secure_url(URL::route($routeName, $routeArgs, false)); |
|
132 | 132 | } |
133 | - return secure_url(URL::route($routeName,[],false)); |
|
133 | + return secure_url(URL::route($routeName, [ ], false)); |
|
134 | 134 | } |
135 | 135 | if (isset($routeArgs)) { |
136 | 136 | return route($routeName, $routeArgs); |
@@ -250,7 +250,7 @@ |
||
250 | 250 | |
251 | 251 | $('#edit').click(function() { |
252 | 252 | var trans_id = $('.trans-id').val(); |
253 | - <?php $url_route = Laralang::checkRoute('laralang::editTrans'); |
|
253 | + <?php $url_route = Laralang::checkRoute('laralang::editTrans'); |
|
254 | 254 | ?> |
255 | 255 | $.ajax({ |
256 | 256 | type: "POST", |