| @@ -51,8 +51,8 @@ discard block | ||
| 51 | 51 | |
| 52 | 52 | public function get() | 
| 53 | 53 |      { | 
| 54 | - return $this->composeScheme() . | |
| 55 | - $this->host() . | |
| 54 | + return $this->composeScheme(). | |
| 55 | + $this->host(). | |
| 56 | 56 | ($this->port() ? ':'.$this->port : null); | 
| 57 | 57 | } | 
| 58 | 58 | |
| @@ -113,7 +113,7 @@ discard block | ||
| 113 | 113 | |
| 114 | 114 | private static function parse(string $url) | 
| 115 | 115 |      { | 
| 116 | -        if (in_array($url, ['//','/'])) { | |
| 116 | +        if (in_array($url, ['//', '/'])) { | |
| 117 | 117 | return [ | 
| 118 | 118 | 'scheme' => null, | 
| 119 | 119 | 'host' => null, | 
| @@ -161,7 +161,7 @@ discard block | ||
| 161 | 161 | return $parsed['host']; | 
| 162 | 162 | } | 
| 163 | 163 | |
| 164 | -        if (! isset($parsed['path'])) { | |
| 164 | +        if ( ! isset($parsed['path'])) { | |
| 165 | 165 | return null; | 
| 166 | 166 | } | 
| 167 | 167 | |
| @@ -126,7 +126,7 @@ | ||
| 126 | 126 | |
| 127 | 127 | private function delocalizePath(array $available_locales) | 
| 128 | 128 |      { | 
| 129 | -        if (! $this->parsedUrl->hasPath()) { | |
| 129 | +        if ( ! $this->parsedUrl->hasPath()) { | |
| 130 | 130 | return; | 
| 131 | 131 | } | 
| 132 | 132 | |
| @@ -33,10 +33,10 @@ | ||
| 33 | 33 | |
| 34 | 34 | public function get(): string | 
| 35 | 35 |      { | 
| 36 | - $result = $this->root->get() . | |
| 37 | - ($this->hasPath() ? '/' . $this->path() : '') . | |
| 38 | - ($this->hasQuery() ? '?' . $this->query() : '') . | |
| 39 | - ($this->hasHash() ? '#' . $this->hash() : ''); | |
| 36 | + $result = $this->root->get(). | |
| 37 | + ($this->hasPath() ? '/'.$this->path() : ''). | |
| 38 | + ($this->hasQuery() ? '?'.$this->query() : ''). | |
| 39 | + ($this->hasHash() ? '#'.$this->hash() : ''); | |
| 40 | 40 | |
| 41 | 41 |          return str_replace('///', '//', $result); | 
| 42 | 42 | } |