@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | */ |
44 | 44 | public function current($key = null) |
45 | 45 | { |
46 | - if (! $key) { |
|
46 | + if (!$key) { |
|
47 | 47 | return $this->locale->get(); |
48 | 48 | } |
49 | 49 | |
@@ -88,7 +88,7 @@ discard block |
||
88 | 88 | //fallback language is the same as the current language |
89 | 89 | if (Config::beautify() && $this->current() === Config::fallbackLocale()) { |
90 | 90 | //didn't found locale means browser is set to exmaple.com |
91 | - if (! $locale) { |
|
91 | + if (!$locale) { |
|
92 | 92 | return false; |
93 | 93 | } |
94 | 94 | //browser is set to en.example.com but should be forced back to example.com |
@@ -110,7 +110,7 @@ discard block |
||
110 | 110 | */ |
111 | 111 | public function speaks(string $locale) |
112 | 112 | { |
113 | - if (! $this->isSpeaking($locale)) { |
|
113 | + if (!$this->isSpeaking($locale)) { |
|
114 | 114 | //locale does not exist. |
115 | 115 | return dialect()->redirectBackToLatest(); |
116 | 116 | } |
@@ -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); |