@@ -42,7 +42,7 @@ |
||
42 | 42 | */ |
43 | 43 | public function process(\ArrayAccess $credentials): void |
44 | 44 | { |
45 | - $stamp = $credentials->offsetExists('timestamp') ? $credentials->offsetGet('timestamp') : 0 ; |
|
45 | + $stamp = $credentials->offsetExists('timestamp') ? $credentials->offsetGet('timestamp') : 0; |
|
46 | 46 | if (!empty($stamp)) { |
47 | 47 | // now we have public key and salt from our storage, so it's time to check it |
48 | 48 |
@@ -8,7 +8,7 @@ |
||
8 | 8 | $id = '123456789'; |
9 | 9 | $forward = new \kalanis\kw_address_handler\Forward(); |
10 | 10 | $forward->setLink($link->linkVariant('short/edit/?id=' . $id)); // you go there |
11 | -$forward->setForward($link->linkVariant('short/dashboard')); // and from there go here (usually back) |
|
11 | +$forward->setForward($link->linkVariant('short/dashboard')); // and from there go here (usually back) |
|
12 | 12 | echo sprintf('<a href="%s" class="button">%s</a>', |
13 | 13 | $forward->getLink(), |
14 | 14 | strval($id) |
@@ -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)) { |