@@ -117,7 +117,7 @@ |
||
117 | 117 | } |
118 | 118 | |
119 | 119 | /** |
120 | - * @return int |
|
120 | + * @return string|null |
|
121 | 121 | */ |
122 | 122 | public function getPort() { |
123 | 123 | if ($this->hasPort() && $this->port != 80) { |
@@ -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; |
@@ -167,6 +167,7 @@ |
||
167 | 167 | |
168 | 168 | /** |
169 | 169 | * @param array ...$values |
170 | + * @param string $values |
|
170 | 171 | * @return string |
171 | 172 | */ |
172 | 173 | public static function d(...$values) { |