Conditions | 3 |
Paths | 3 |
Total Lines | 11 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 3 |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
14 | 2 | public function matches(array $conditions, ServerRequestInterface $request) |
|
15 | { |
||
16 | 2 | foreach ($conditions as $condition) { |
|
17 | 2 | $inputSource = $this->getInputSource($condition); |
|
18 | 2 | $matcher = $this->getMatcher($condition); |
|
19 | 2 | if ($matcher->match($inputSource->getValue($request))) { |
|
20 | 1 | return true; |
|
21 | } |
||
22 | 1 | } |
|
23 | 1 | return false; |
|
24 | } |
||
25 | } |
||
26 |