Conditions | 4 |
Paths | 3 |
Total Lines | 10 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 4 |
Changes | 0 |
1 | <?php |
||
42 | 7 | public function getTests(RequestContext $requestContext) |
|
43 | { |
||
44 | 7 | foreach ($this->map as list($tests, $requestConstraint)) { |
|
45 | /** @var RequestConstraintInterface $requestConstraint */ |
||
46 | 7 | if (null === $requestConstraint || $requestConstraint->matches($requestContext)) { |
|
47 | 5 | return $tests; |
|
48 | } |
||
49 | } |
||
50 | |||
51 | 2 | return []; |
|
52 | } |
||
63 |