@@ -20,7 +20,7 @@ |
||
20 | 20 | |
21 | 21 | public function get(): ?string |
22 | 22 | { |
23 | - if (! $this->has()) { |
|
23 | + if (!$this->has()) { |
|
24 | 24 | return null; |
25 | 25 | } |
26 | 26 |
@@ -24,7 +24,7 @@ discard block |
||
24 | 24 | // this could be a future bug |
25 | 25 | // when no middleware is active the language is not set right |
26 | 26 | // domain.com could be in german etc... |
27 | - if (! Config::beautify()) { |
|
27 | + if (!Config::beautify()) { |
|
28 | 28 | // if the middleware is active we should be redirected to en.domain.com |
29 | 29 | // if not the fallback language is going to be used |
30 | 30 | return Config::fallbackLocale(); |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | } |
35 | 35 | |
36 | 36 | // could be a custom subdomain |
37 | - if (! tongue()->isSpeaking($locale)) { |
|
37 | + if (!tongue()->isSpeaking($locale)) { |
|
38 | 38 | // check if it is a white listed domain |
39 | 39 | |
40 | 40 | if (tongue()->speaking('subdomains', $locale)) { |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | */ |
86 | 86 | protected static function languageIsSet(): bool |
87 | 87 | { |
88 | - return ! app()->runningInConsole() || Arr::has(request()->server(), 'HTTP_ACCEPT_LANGUAGE'); |
|
88 | + return !app()->runningInConsole() || Arr::has(request()->server(), 'HTTP_ACCEPT_LANGUAGE'); |
|
89 | 89 | } |
90 | 90 | |
91 | 91 | /** |