Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexVanderbist authored and github-actions[bot] committed Sep 27, 2024
1 parent 09d9162 commit 474b341
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/Filters/FiltersOperator.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand All @@ -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;
}
Expand Down

0 comments on commit 474b341

Please sign in to comment.