@@ -21,7 +21,7 @@ |
||
| 21 | 21 | if (0 !== strncmp('cli', PHP_SAPI, 3)) { |
| 22 | 22 | if (true !== headers_sent()) { |
| 23 | 23 | if ($step) { |
| 24 | - header( 'Refresh:' . $step . ';url=' . $this->removeNullBytes($redirectTo) ); |
|
| 24 | + header('Refresh:' . $step . ';url=' . $this->removeNullBytes($redirectTo)); |
|
| 25 | 25 | } else { |
| 26 | 26 | header('Location: ' . $this->removeNullBytes($redirectTo), true, $targetMethod); |
| 27 | 27 | exit(0); |
@@ -68,7 +68,7 @@ discard block |
||
| 68 | 68 | */ |
| 69 | 69 | public function getAddress(): ?string |
| 70 | 70 | { |
| 71 | - return $this->source ? $this->rebuild()->source->getAddress() : null ; |
|
| 71 | + return $this->source ? $this->rebuild()->source->getAddress() : null; |
|
| 72 | 72 | } |
| 73 | 73 | |
| 74 | 74 | protected function rebuild(): self |
@@ -111,7 +111,7 @@ discard block |
||
| 111 | 111 | $parts = explode($argSeparator, $queryString); |
| 112 | 112 | |
| 113 | 113 | foreach ($parts as $part) { |
| 114 | - list($paramName, $paramValue) = array_pad(explode('=', $part, 2), 2, ''); |
|
| 114 | + list($paramName, $paramValue) = array_pad(explode('=', $part, 2), 2, ''); |
|
| 115 | 115 | |
| 116 | 116 | switch ($decType) { |
| 117 | 117 | case PHP_QUERY_RFC3986: |
@@ -134,14 +134,14 @@ discard block |
||
| 134 | 134 | $keys = [$paramName]; |
| 135 | 135 | } |
| 136 | 136 | |
| 137 | - $target = &$result; |
|
| 137 | + $target = &$result; |
|
| 138 | 138 | |
| 139 | 139 | foreach ($keys as $index) { |
| 140 | 140 | if ('' === $index) { |
| 141 | 141 | if (isset($target)) { |
| 142 | 142 | if (is_array($target)) { |
| 143 | - $intKeys = array_filter(array_keys($target), 'is_int'); |
|
| 144 | - $index = count($intKeys) ? max($intKeys)+1 : 0; |
|
| 143 | + $intKeys = array_filter(array_keys($target), 'is_int'); |
|
| 144 | + $index = count($intKeys) ? max($intKeys) + 1 : 0; |
|
| 145 | 145 | } else { |
| 146 | 146 | $target = [$target]; |
| 147 | 147 | $index = 1; |
@@ -154,7 +154,7 @@ discard block |
||
| 154 | 154 | $target[$index] = [$target[$index]]; |
| 155 | 155 | } |
| 156 | 156 | |
| 157 | - $target = &$target[$index]; |
|
| 157 | + $target = &$target[$index]; |
|
| 158 | 158 | } |
| 159 | 159 | |
| 160 | 160 | if (is_array($target)) { |