| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 50 | 81 | public function doMatch(\ReRoute\RequestContext $requestContext) { |
|
| 51 | 81 | if (false == $this->isMatched($requestContext)) { |
|
|
|
|||
| 52 | 48 | return false; |
|
| 53 | } |
||
| 54 | 42 | $routeMatch = new RouteMatch($this->getResult()); |
|
| 55 | 42 | $this->storeParametersToRouteMatch($routeMatch); |
|
| 56 | 42 | return $routeMatch; |
|
| 57 | } |
||
| 58 | |||
| 67 | } |
When comparing two booleans, it is generally considered safer to use the strict comparison operator.