@@ -3,13 +3,13 @@ |
||
3 | 3 | use Pmochine\LaravelTongue\Dialect; |
4 | 4 | use Pmochine\LaravelTongue\Tongue; |
5 | 5 | |
6 | -if (! function_exists('tongue')) { |
|
6 | +if (!function_exists('tongue')) { |
|
7 | 7 | function tongue() |
8 | 8 | { |
9 | 9 | return app()->make(Tongue::class); |
10 | 10 | } |
11 | 11 | } |
12 | -if (! function_exists('dialect')) { |
|
12 | +if (!function_exists('dialect')) { |
|
13 | 13 | function dialect() |
14 | 14 | { |
15 | 15 | return app()->make(Dialect::class); |
@@ -56,11 +56,11 @@ discard block |
||
56 | 56 | if (Config::beautify() && tongue()->current() === Config::fallbackLocale()) { |
57 | 57 | $parsed_url['host'] = $domain; |
58 | 58 | } else { |
59 | - $parsed_url['host'] = tongue()->current() . '.' . $domain; |
|
59 | + $parsed_url['host'] = tongue()->current().'.'.$domain; |
|
60 | 60 | } |
61 | 61 | |
62 | 62 | if ($locale) { |
63 | - $parsed_url['host'] = $locale . '.' . $domain; |
|
63 | + $parsed_url['host'] = $locale.'.'.$domain; |
|
64 | 64 | } |
65 | 65 | |
66 | 66 | return Accent::unparseUrl($parsed_url); |
@@ -171,7 +171,7 @@ discard block |
||
171 | 171 | } |
172 | 172 | |
173 | 173 | // Add locale to the host |
174 | - return $locale . '.' . Url::domain(); |
|
174 | + return $locale.'.'.Url::domain(); |
|
175 | 175 | } |
176 | 176 | |
177 | 177 | /** |