@@ -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'] : ''; |
@@ -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 |
@@ -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 |
@@ -28,7 +28,7 @@ |
||
28 | 28 | */ |
29 | 29 | protected static function configDomainIsSet(): bool |
30 | 30 | { |
31 | - if (! $domain = Config::domain()) { |
|
31 | + if (!$domain = Config::domain()) { |
|
32 | 32 | return false; |
33 | 33 | } // config was not set |
34 | 34 |