From 474b34182984c34f82e50763f8e6bdf6c2b19d5b Mon Sep 17 00:00:00 2001 From: AlexVanderbist Date: Fri, 27 Sep 2024 07:56:20 +0000 Subject: [PATCH] Fix styling --- src/Filters/FiltersOperator.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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; }