Skip to content

Commit 474b341

Browse files
AlexVanderbistgithub-actions[bot]
authored andcommitted
Fix styling
1 parent 09d9162 commit 474b341

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/Filters/FiltersOperator.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,13 @@ public function __invoke(Builder $query, $value, string $property)
3030

3131
if (is_array($value)) {
3232
$query->where(function ($query) use ($value, $property) {
33-
foreach($value as $item) {
33+
foreach ($value as $item) {
3434
$this->__invoke($query, $item, $property);
3535
}
3636
});
3737

3838
return;
39-
}
40-
else if ($this->filterOperator->isDynamic()) {
39+
} elseif ($this->filterOperator->isDynamic()) {
4140
$filterOperator = $this->getDynamicFilterOperator($value, $this);
4241
$this->removeDynamicFilterOperatorFromValue($value, $filterOperator);
4342
}
@@ -50,7 +49,7 @@ protected function getDynamicFilterOperator(string $value): FilterOperator
5049
$filterOperator = FilterOperator::EQUAL;
5150

5251
// match filter operators and assign the filter operator.
53-
foreach(FilterOperator::cases() as $filterOperatorCase) {
52+
foreach (FilterOperator::cases() as $filterOperatorCase) {
5453
if (str_starts_with($value, $filterOperatorCase->value) && ! $filterOperatorCase->isDynamic()) {
5554
$filterOperator = $filterOperatorCase;
5655
}

0 commit comments

Comments
 (0)