@@ -25,7 +25,7 @@ |
||
| 25 | 25 | $user = isset($parsed_url['user']) ? $parsed_url['user'] : ''; |
| 26 | 26 | $pass = isset($parsed_url['pass']) ? ':'.$parsed_url['pass'] : ''; |
| 27 | 27 | $url .= $user.(($user || $pass) ? "$pass@" : ''); |
| 28 | - if (! empty($url)) { |
|
| 28 | + if (!empty($url)) { |
|
| 29 | 29 | $url .= isset($parsed_url['path']) ? '/'.ltrim($parsed_url['path'], '/') : ''; |
| 30 | 30 | } elseif (empty($url)) { |
| 31 | 31 | $url .= isset($parsed_url['path']) ? $parsed_url['path'] : ''; |
@@ -123,7 +123,7 @@ discard block |
||
| 123 | 123 | public function translate($routeName, $routeAttributes = null, $locale = null) |
| 124 | 124 | { |
| 125 | 125 | // If no locale is given, we use the current locale |
| 126 | - if (! $locale) { |
|
| 126 | + if (!$locale) { |
|
| 127 | 127 | $locale = tongue()->current(); |
| 128 | 128 | } |
| 129 | 129 | |
@@ -163,7 +163,7 @@ discard block |
||
| 163 | 163 | { |
| 164 | 164 | $routePath = Accent::findRoutePathByName($routeName); |
| 165 | 165 | |
| 166 | - if (! isset($this->translatedRoutes[$routeName])) { |
|
| 166 | + if (!isset($this->translatedRoutes[$routeName])) { |
|
| 167 | 167 | $this->translatedRoutes[$routeName] = $routePath; |
| 168 | 168 | } |
| 169 | 169 | |
@@ -11,11 +11,11 @@ discard block |
||
| 11 | 11 | { |
| 12 | 12 | $locales = Config::supportedLocales(); |
| 13 | 13 | |
| 14 | - if (empty($locales) || ! is_array($locales)) { |
|
| 14 | + if (empty($locales) || !is_array($locales)) { |
|
| 15 | 15 | throw new SupportedLocalesNotDefined(); |
| 16 | 16 | } |
| 17 | 17 | |
| 18 | - if (! $key) { |
|
| 18 | + if (!$key) { |
|
| 19 | 19 | return collect($locales); |
| 20 | 20 | } |
| 21 | 21 | |
@@ -31,7 +31,7 @@ discard block |
||
| 31 | 31 | return $this->getAliases($locale); |
| 32 | 32 | } |
| 33 | 33 | |
| 34 | - if (! Arr::has($locales, "{$locale}.{$key}")) { |
|
| 34 | + if (!Arr::has($locales, "{$locale}.{$key}")) { |
|
| 35 | 35 | throw new SupportedLocalesNotDefined(); |
| 36 | 36 | } |
| 37 | 37 | |
@@ -49,7 +49,7 @@ discard block |
||
| 49 | 49 | { |
| 50 | 50 | $bcp47 = data_get($locales, "{$locale}.regional"); |
| 51 | 51 | |
| 52 | - if (! $bcp47) { |
|
| 52 | + if (!$bcp47) { |
|
| 53 | 53 | return $locale; |
| 54 | 54 | } //locale is the "minimum" of BCP 47 |
| 55 | 55 | |