diff --git a/src/Filters/FiltersOperator.php b/src/Filters/FiltersOperator.php index 2d918b83..3323f9d8 100644 --- a/src/Filters/FiltersOperator.php +++ b/src/Filters/FiltersOperator.php @@ -30,14 +30,13 @@ public function __invoke(Builder $query, $value, string $property) if (is_array($value)) { $query->where(function ($query) use ($value, $property) { - foreach($value as $item) { + foreach ($value as $item) { $this->__invoke($query, $item, $property); } }); return; - } - else if ($this->filterOperator->isDynamic()) { + } elseif ($this->filterOperator->isDynamic()) { $filterOperator = $this->getDynamicFilterOperator($value, $this); $this->removeDynamicFilterOperatorFromValue($value, $filterOperator); } @@ -50,7 +49,7 @@ protected function getDynamicFilterOperator(string $value): FilterOperator $filterOperator = FilterOperator::EQUAL; // match filter operators and assign the filter operator. - foreach(FilterOperator::cases() as $filterOperatorCase) { + foreach (FilterOperator::cases() as $filterOperatorCase) { if (str_starts_with($value, $filterOperatorCase->value) && ! $filterOperatorCase->isDynamic()) { $filterOperator = $filterOperatorCase; }