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