| Conditions | 5 |
| Paths | 4 |
| Total Lines | 19 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 11 |
| CRAP Score | 5 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 23 | 1 | public function match($uri) |
|
| 24 | { |
||
| 25 | 1 | $return = parent::match($uri); |
|
| 26 | |||
| 27 | 1 | if ($return) { |
|
|
|
|||
| 28 | 1 | $match = preg_match_all("`^" . $this->getRegex() . "$`i", $uri, $matches); |
|
| 29 | |||
| 30 | 1 | if ($match > 0) { |
|
| 31 | 1 | $variables = $this->getVariables(); |
|
| 32 | 1 | if (count($variables)) { |
|
| 33 | 1 | foreach ($variables as $key => $variable) { |
|
| 34 | 1 | $this->matches[$variable] = $matches[$key + 1][0]; |
|
| 35 | } |
||
| 36 | } |
||
| 37 | 1 | return true; |
|
| 38 | } |
||
| 39 | } |
||
| 40 | |||
| 41 | 1 | return false; |
|
| 42 | } |
||
| 64 |