@@ -269,9 +269,9 @@ |
||
| 269 | 269 | $fragment = $this->url['fragment']; |
| 270 | 270 | |
| 271 | 271 | return $this->createUriString(($scheme !== '') ? $scheme.'://' : '', |
| 272 | - $this->getAuthority(), |
|
| 273 | - $this->getPath(), |
|
| 274 | - ($query !== '') ? '?'.$query : '', |
|
| 275 | - ($fragment !== '') ? '#'. $fragment : ''); |
|
| 272 | + $this->getAuthority(), |
|
| 273 | + $this->getPath(), |
|
| 274 | + ($query !== '') ? '?'.$query : '', |
|
| 275 | + ($fragment !== '') ? '#'. $fragment : ''); |
|
| 276 | 276 | } |
| 277 | 277 | } |
@@ -79,11 +79,11 @@ discard block |
||
| 79 | 79 | $authority = $this->url['host']; |
| 80 | 80 | |
| 81 | 81 | if ($this->url['user'] !== '') { |
| 82 | - $authority = $this->getUserInfo() . '@' . $authority; |
|
| 82 | + $authority = $this->getUserInfo().'@'.$authority; |
|
| 83 | 83 | } |
| 84 | 84 | |
| 85 | 85 | if ($this->url['port'] !== 0) { |
| 86 | - $authority .= ':' . $this->url['port']; |
|
| 86 | + $authority .= ':'.$this->url['port']; |
|
| 87 | 87 | } |
| 88 | 88 | |
| 89 | 89 | return $authority; |
@@ -97,7 +97,7 @@ discard block |
||
| 97 | 97 | $user = $this->url['user']; |
| 98 | 98 | |
| 99 | 99 | if ($this->url['pass'] !== '' && $this->url['pass'] !== null) { |
| 100 | - $user .= ':' . $this->url['pass']; |
|
| 100 | + $user .= ':'.$this->url['pass']; |
|
| 101 | 101 | } |
| 102 | 102 | |
| 103 | 103 | return ($user !== '') ? $user : ''; |
@@ -189,7 +189,7 @@ discard block |
||
| 189 | 189 | */ |
| 190 | 190 | public function withHost(string $host) : UriInterface |
| 191 | 191 | { |
| 192 | - if (filter_var($host, FILTER_VALIDATE_DOMAIN, FILTER_FLAG_HOSTNAME) === false){ |
|
| 192 | + if (filter_var($host, FILTER_VALIDATE_DOMAIN, FILTER_FLAG_HOSTNAME) === false) { |
|
| 193 | 193 | throw new InvalidArgumentException(__CLASS__.': Invalid host provided for '.__METHOD__); |
| 194 | 194 | } |
| 195 | 195 | |
@@ -272,6 +272,6 @@ discard block |
||
| 272 | 272 | $this->getAuthority(), |
| 273 | 273 | $this->getPath(), |
| 274 | 274 | ($query !== '') ? '?'.$query : '', |
| 275 | - ($fragment !== '') ? '#'. $fragment : ''); |
|
| 275 | + ($fragment !== '') ? '#'.$fragment : ''); |
|
| 276 | 276 | } |
| 277 | 277 | } |