| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 27 | 6 | public function match(object|array $item, FilterInterface $filter, array $iterableFilterHandlers): bool |
|
| 28 | { |
||
| 29 | /** @var Like $filter */ |
||
| 30 | |||
| 31 | 6 | $itemValue = ArrayHelper::getValue($item, $filter->field); |
|
| 32 | 6 | $argumentValue = $filter->value; |
|
| 33 | |||
| 34 | 6 | return is_string($itemValue) && stripos($itemValue, $argumentValue) !== false; |
|
| 35 | } |
||
| 37 |