@@ -58,7 +58,7 @@ discard block |
||
| 58 | 58 | if ($schPos === false) { |
| 59 | 59 | $this->host = $host; |
| 60 | 60 | } else { |
| 61 | - $this->host = substr($host, $schPos+2); |
|
| 61 | + $this->host = substr($host, $schPos + 2); |
|
| 62 | 62 | } |
| 63 | 63 | } |
| 64 | 64 | |
@@ -134,7 +134,7 @@ discard block |
||
| 134 | 134 | if ($this->hasPath()) { |
| 135 | 135 | $path = UrlParserA::normalizePath($this->path); |
| 136 | 136 | } |
| 137 | - if (($this->hasHost() || !empty($path))&& !UrlParserA::hasGoodTermination($path)) { |
|
| 137 | + if (($this->hasHost() || !empty($path)) && !UrlParserA::hasGoodTermination($path)) { |
|
| 138 | 138 | $path .= '/'; |
| 139 | 139 | } |
| 140 | 140 | return $path; |