@@ -46,7 +46,7 @@ discard block  | 
                                                    ||
| 46 | 46 |      { | 
                                                        
| 47 | 47 | $locale = $this->app->getLocale();  | 
                                                        
| 48 | 48 | |
| 49 | -        if (! $key) { | 
                                                        |
| 49 | +        if (!$key) { | 
                                                        |
| 50 | 50 | return $locale;  | 
                                                        
| 51 | 51 | }  | 
                                                        
| 52 | 52 | |
@@ -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 | return abort(404); //oder error?  | 
                                                        
| 116 | 116 | }  | 
                                                        
| 117 | 117 | |
@@ -153,11 +153,11 @@ discard block  | 
                                                    ||
| 153 | 153 |      { | 
                                                        
| 154 | 154 | $locales = Config::supportedLocales();  | 
                                                        
| 155 | 155 | |
| 156 | -        if (empty($locales) || ! is_array($locales)) { | 
                                                        |
| 156 | +        if (empty($locales) || !is_array($locales)) { | 
                                                        |
| 157 | 157 | throw new SupportedLocalesNotDefined();  | 
                                                        
| 158 | 158 | }  | 
                                                        
| 159 | 159 | |
| 160 | -        if (! $key) { | 
                                                        |
| 160 | +        if (!$key) { | 
                                                        |
| 161 | 161 | return collect($locales);  | 
                                                        
| 162 | 162 | }  | 
                                                        
| 163 | 163 | |
@@ -165,7 +165,7 @@ discard block  | 
                                                    ||
| 165 | 165 | return $this->BCP47($locale, $locales);  | 
                                                        
| 166 | 166 | }  | 
                                                        
| 167 | 167 | |
| 168 | -        if (! array_has($locales, "{$locale}.{$key}")) { | 
                                                        |
| 168 | +        if (!array_has($locales, "{$locale}.{$key}")) { | 
                                                        |
| 169 | 169 | throw new SupportedLocalesNotDefined();  | 
                                                        
| 170 | 170 | }  | 
                                                        
| 171 | 171 | |
@@ -180,7 +180,7 @@ discard block  | 
                                                    ||
| 180 | 180 | */  | 
                                                        
| 181 | 181 | protected function findLocale()  | 
                                                        
| 182 | 182 |      { | 
                                                        
| 183 | -        if (! Config::subdomain()) { | 
                                                        |
| 183 | +        if (!Config::subdomain()) { | 
                                                        |
| 184 | 184 | return false; //use Mcamara Localization  | 
                                                        
| 185 | 185 | }  | 
                                                        
| 186 | 186 | |
@@ -209,7 +209,7 @@ discard block  | 
                                                    ||
| 209 | 209 |      { | 
                                                        
| 210 | 210 |          $bcp47 = data_get($locales, "{$locale}.regional"); | 
                                                        
| 211 | 211 | |
| 212 | -        if (! $bcp47) { | 
                                                        |
| 212 | +        if (!$bcp47) { | 
                                                        |
| 213 | 213 | return $locale;  | 
                                                        
| 214 | 214 | } //locale is the "minimum" of BCP 47  | 
                                                        
| 215 | 215 | |