@@ -270,7 +270,7 @@ |
||
| 270 | 270 | * |
| 271 | 271 | * @link https://github.com/guzzle/psr7/blob/c0dcda9f54d145bd4d062a6d15f54931a67732f9/src/Uri.php#L89-L130 |
| 272 | 272 | */ |
| 273 | -function parseUrl(string $url):?array{ |
|
| 273 | +function parseUrl(string $url): ?array{ |
|
| 274 | 274 | // If IPv6 |
| 275 | 275 | $prefix = ''; |
| 276 | 276 | /** @noinspection RegExpRedundantEscape */ |
@@ -96,7 +96,7 @@ discard block |
||
| 96 | 96 | $uri = $uri->withHost($hostHeaderParts[0]); |
| 97 | 97 | |
| 98 | 98 | if(isset($hostHeaderParts[1])){ |
| 99 | - $hasPort = true; |
|
| 99 | + $hasPort = true; |
|
| 100 | 100 | $uri = $uri->withPort($hostHeaderParts[1]); |
| 101 | 101 | } |
| 102 | 102 | } |
@@ -116,7 +116,7 @@ discard block |
||
| 116 | 116 | $uri = $uri->withPath($requestUriParts[0]); |
| 117 | 117 | |
| 118 | 118 | if(isset($requestUriParts[1])){ |
| 119 | - $hasQuery = true; |
|
| 119 | + $hasQuery = true; |
|
| 120 | 120 | $uri = $uri->withQuery($requestUriParts[1]); |
| 121 | 121 | } |
| 122 | 122 | } |