@@ -40,8 +40,8 @@ discard block |
||
40 | 40 | #[Pure] |
41 | 41 | public function get(): string |
42 | 42 | { |
43 | - return $this->composeScheme() . |
|
44 | - $this->host() . |
|
43 | + return $this->composeScheme(). |
|
44 | + $this->host(). |
|
45 | 45 | ($this->port() ? ':'.$this->port : null); |
46 | 46 | } |
47 | 47 | |
@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | |
105 | 105 | private static function parse(string $url): array |
106 | 106 | { |
107 | - if (in_array($url, ['//','/'])) { |
|
107 | + if (in_array($url, ['//', '/'])) { |
|
108 | 108 | return [ |
109 | 109 | 'scheme' => null, |
110 | 110 | 'host' => null, |
@@ -153,7 +153,7 @@ discard block |
||
153 | 153 | return $parsed['host']; |
154 | 154 | } |
155 | 155 | |
156 | - if (! isset($parsed['path'])) { |
|
156 | + if ( ! isset($parsed['path'])) { |
|
157 | 157 | return null; |
158 | 158 | } |
159 | 159 |
@@ -134,7 +134,7 @@ |
||
134 | 134 | |
135 | 135 | private function delocalizePath(array $available_locales): string |
136 | 136 | { |
137 | - if (! $this->parsedUrl->hasPath()) { |
|
137 | + if ( ! $this->parsedUrl->hasPath()) { |
|
138 | 138 | return ''; |
139 | 139 | } |
140 | 140 |