| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 23 | 21 | public function match(array|object $item, array $arguments, array $iterableFilterHandlers): bool |
|
| 24 | { |
||
| 25 | 21 | if (count($arguments) !== 1) { |
|
| 26 | 4 | throw new InvalidArgumentException('$arguments should contain exactly one element.'); |
|
| 27 | } |
||
| 28 | |||
| 29 | 17 | [$field] = $arguments; |
|
| 30 | 17 | FilterAssert::fieldIsString($field); |
|
| 31 | |||
| 32 | /** @var string $field */ |
||
| 33 | 9 | return empty($item[$field]); |
|
| 34 | } |
||
| 36 |