@@ -96,8 +96,9 @@ discard block |
||
| 96 | 96 | $this->response |
| 97 | 97 | ); |
| 98 | 98 | |
| 99 | + } else { |
|
| 100 | + return null; |
|
| 99 | 101 | } |
| 100 | - else return null; |
|
| 101 | 102 | |
| 102 | 103 | } |
| 103 | 104 | |
@@ -183,7 +184,9 @@ discard block |
||
| 183 | 184 | |
| 184 | 185 | if (preg_match('/' . $value['regex'] . '/', $bits[$key], $matches)) { |
| 185 | 186 | |
| 186 | - if (count($matches) == 1) $matches = $matches[0]; |
|
| 187 | + if (count($matches) == 1) { |
|
| 188 | + $matches = $matches[0]; |
|
| 189 | + } |
|
| 187 | 190 | |
| 188 | 191 | $this->request->query()->set($key, $matches); |
| 189 | 192 | |