| Conditions | 3 |
| Paths | 3 |
| Total Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | public function __invoke(Builder $query, $value, string $property, ?string $modifier = null) : Builder |
||
| 10 | { |
||
| 11 | if ($this->isRelationProperty($query, $property)) { |
||
| 12 | return $this->withRelationConstraint($query, $value, $property); |
||
| 13 | } |
||
| 14 | |||
| 15 | if (is_array($value)) { |
||
| 16 | return $query->orWhereIn($property, $value); |
||
| 17 | } |
||
| 18 | |||
| 19 | return $query->orWhere($property, '=', $value); |
||
| 20 | } |
||
| 21 | } |
||
| 22 |