Conditions | 3 |
Paths | 3 |
Total Lines | 9 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
35 | public function isOk(Result $result) |
||
36 | { |
||
37 | //The validator is used, so we can apply the rule |
||
38 | if (null !== $result->getValidatorResult()) { |
||
39 | return ($result->getUrl()->getExpectedStatus() == $result->getStatusCode()) && $result->getValidatorResult(); |
||
40 | } |
||
41 | |||
42 | return $result->getUrl()->getExpectedStatus() == $result->getStatusCode(); |
||
43 | } |
||
44 | |||
57 |