| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 2.0185 |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | 1 | public function match(array $item, array $arguments, array $filterProcessors): bool |
|
| 17 | { |
||
| 18 | 1 | $operation = array_shift($arguments[0]); |
|
| 19 | |||
| 20 | 1 | $processor = $filterProcessors[$operation] ?? null; |
|
| 21 | 1 | if($processor === null) { |
|
| 22 | throw new \RuntimeException(sprintf('Operation "%s" is not supported', $operation)); |
||
| 23 | } |
||
| 24 | /* @var $processor IterableProcessorInterface */ |
||
| 25 | 1 | return !$processor->match($item, $arguments[0], $filterProcessors); |
|
| 26 | } |
||
| 29 |