| 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 | 3 | public function matches(array $conditions, ServerRequestInterface $request) |
|
| 15 | { |
||
| 16 | 3 | foreach ($conditions as $condition) { |
|
| 17 | 3 | $inputSource = $this->getInputSource($condition); |
|
| 18 | 3 | $matcher = $this->getMatcher($condition); |
|
| 19 | 3 | if (! $matcher->match($inputSource->getValue($request))) { |
|
| 20 | 2 | return false; |
|
| 21 | } |
||
| 22 | 1 | } |
|
| 23 | 1 | return true; |
|
| 24 | } |
||
| 25 | } |
||
| 26 |