@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | } |
| 41 | 41 | |
| 42 | 42 | $protocol = $server['SERVER_PROTOCOL'] ?? '1.1'; |
| 43 | - $protocol = str_replace('HTTP/', '', $protocol); |
|
| 43 | + $protocol = str_replace('HTTP/', '', $protocol); |
|
| 44 | 44 | |
| 45 | 45 | if (!($uri instanceof UriInterface)) { |
| 46 | 46 | $uriFactory = new UriFactory(); |
@@ -58,8 +58,8 @@ discard block |
||
| 58 | 58 | $protocol, |
| 59 | 59 | $server, // from extract. |
| 60 | 60 | $cookie, // from extract. |
| 61 | - $post, // from extract. |
|
| 62 | - $get, // from extract. |
|
| 61 | + $post, // from extract. |
|
| 62 | + $get, // from extract. |
|
| 63 | 63 | $files // from extract. |
| 64 | 64 | ); |
| 65 | 65 | } |
@@ -84,7 +84,7 @@ discard block |
||
| 84 | 84 | |
| 85 | 85 | // HTTP protocal version. |
| 86 | 86 | $protocol = $server['SERVER_PROTOCOL'] ?? '1.1'; |
| 87 | - $protocol = str_replace('HTTP/', '', $protocol); |
|
| 87 | + $protocol = str_replace('HTTP/', '', $protocol); |
|
| 88 | 88 | |
| 89 | 89 | $uri = UriFactory::fromGlobal(); |
| 90 | 90 | |
@@ -99,8 +99,8 @@ discard block |
||
| 99 | 99 | $protocol, |
| 100 | 100 | $server, // from extract. |
| 101 | 101 | $cookie, // from extract. |
| 102 | - $post, // from extract. |
|
| 103 | - $get, // from extract. |
|
| 102 | + $post, // from extract. |
|
| 103 | + $get, // from extract. |
|
| 104 | 104 | $files // from extract. |
| 105 | 105 | ); |
| 106 | 106 | } |
@@ -142,7 +142,7 @@ discard block |
||
| 142 | 142 | |
| 143 | 143 | $authority .= $this->getHost(); |
| 144 | 144 | |
| 145 | - if (! is_null($this->getPort())) { |
|
| 145 | + if (!is_null($this->getPort())) { |
|
| 146 | 146 | $authority .= ':' . $this->getPort(); |
| 147 | 147 | } |
| 148 | 148 | |
@@ -467,7 +467,7 @@ discard block |
||
| 467 | 467 | if ($regex) { |
| 468 | 468 | return preg_replace_callback( |
| 469 | 469 | $regex, |
| 470 | - function ($match) { |
|
| 470 | + function($match) { |
|
| 471 | 471 | return rawurlencode($match[0]); |
| 472 | 472 | }, |
| 473 | 473 | $value |