Skip to content

Commit 2f16d4a

Browse files
bdelamatreactions-user
authored andcommitted
Fix styling
1 parent bbe77a5 commit 2f16d4a

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/Traits/WithFilters.php

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -63,15 +63,15 @@ public function cleanFilters(): void
6363
$filterDefinitions = $this->filters();
6464

6565
// filter $filters values
66-
$this->filters = array_filter($this->filters, function($filterValue, $filterName) use($filterDefinitions) {
66+
$this->filters = array_filter($this->filters, function ($filterValue, $filterName) use ($filterDefinitions) {
6767

6868
// ignore search
6969
if ($filterName === 'search') {
7070
return true;
7171
}
7272

7373
// filter out any keys that weren't defined as a filter
74-
if (!isset($filterDefinitions[$filterName])) {
74+
if (! isset($filterDefinitions[$filterName])) {
7575
return false;
7676
}
7777

@@ -82,7 +82,6 @@ public function cleanFilters(): void
8282

8383
// handle Select filters
8484
if ($filterDefinitions[$filterName]->isSelect()) {
85-
8685
foreach ($filterDefinitions[$filterName]->options() as $optionValue => $optionLabel) {
8786

8887
// if the option is an integer, typecast filter value
@@ -92,13 +91,10 @@ public function cleanFilters(): void
9291
} elseif ($optionValue === $filterValue) {
9392
return true;
9493
}
95-
9694
}
97-
9895
}
9996

10097
return false;
101-
10298
}, ARRAY_FILTER_USE_BOTH);
10399
}
104100

0 commit comments

Comments
 (0)