| @@ 67-69 (lines=3) @@ | ||
| 64 | if ($countMatches == 0 || $countMatches == 2 |
|
| 65 | && $this->explodedPath[$j] != $route->explodePath[$j]) { |
|
| 66 | $result[0] = Status::NOT_FOUND; |
|
| 67 | } elseif ($countMatches == 3) { |
|
| 68 | $result[2][$route->ruleMatches[$j][2]] = $this->explodedPath[$j]; |
|
| 69 | } elseif ($countMatches == 5) { |
|
| 70 | if (!preg_match("/^".$route->ruleMatches[$j][4]."$/", $this->explodedPath[$j])) { |
|
| 71 | $result[0] = Status::NOT_FOUND; |
|
| 72 | } else { |
|
| @@ 72-74 (lines=3) @@ | ||
| 69 | } elseif ($countMatches == 5) { |
|
| 70 | if (!preg_match("/^".$route->ruleMatches[$j][4]."$/", $this->explodedPath[$j])) { |
|
| 71 | $result[0] = Status::NOT_FOUND; |
|
| 72 | } else { |
|
| 73 | $result[2][$route->ruleMatches[$j][2]] = $this->explodedPath[$j]; |
|
| 74 | } |
|
| 75 | } elseif ($countMatches == 0) { |
|
| 76 | $result[0] = Status::NOT_FOUND; |
|
| 77 | } |
|