@@ -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 | } |
@@ -75,8 +75,8 @@ |
||
| 75 | 75 | $regional = tongue()->speaking('regional', $locale); |
| 76 | 76 | |
| 77 | 77 | if ($regional && is_string($regional)) { |
| 78 | - setlocale(LC_TIME, $regional . '.UTF-8'); |
|
| 79 | - setlocale(LC_MONETARY, $regional . '.UTF-8'); |
|
| 78 | + setlocale(LC_TIME, $regional.'.UTF-8'); |
|
| 79 | + setlocale(LC_MONETARY, $regional.'.UTF-8'); |
|
| 80 | 80 | } |
| 81 | 81 | } |
| 82 | 82 | |