@@ -378,7 +378,7 @@ discard block |
||
| 378 | 378 | 'fragment' |
| 379 | 379 | ]; |
| 380 | 380 | |
| 381 | - foreach($components as $v) { |
|
| 381 | + foreach ($components as $v) { |
|
| 382 | 382 | $this->{$v} = isset($data[$v]) ? $this->filter($v, $data[$v]) : ''; |
| 383 | 383 | } |
| 384 | 384 | |
@@ -439,7 +439,7 @@ discard block |
||
| 439 | 439 | if ($regex) { |
| 440 | 440 | return preg_replace_callback( |
| 441 | 441 | $regex, |
| 442 | - function ($match) { |
|
| 442 | + function($match) { |
|
| 443 | 443 | return rawurlencode($match[0]); |
| 444 | 444 | }, |
| 445 | 445 | $value |
@@ -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 | } |