File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -63,15 +63,15 @@ public function cleanFilters(): void
63
63
$ filterDefinitions = $ this ->filters ();
64
64
65
65
// 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 ) {
67
67
68
68
// ignore search
69
69
if ($ filterName === 'search ' ) {
70
70
return true ;
71
71
}
72
72
73
73
// filter out any keys that weren't defined as a filter
74
- if (!isset ($ filterDefinitions [$ filterName ])) {
74
+ if (! isset ($ filterDefinitions [$ filterName ])) {
75
75
return false ;
76
76
}
77
77
@@ -82,7 +82,6 @@ public function cleanFilters(): void
82
82
83
83
// handle Select filters
84
84
if ($ filterDefinitions [$ filterName ]->isSelect ()) {
85
-
86
85
foreach ($ filterDefinitions [$ filterName ]->options () as $ optionValue => $ optionLabel ) {
87
86
88
87
// if the option is an integer, typecast filter value
@@ -92,13 +91,10 @@ public function cleanFilters(): void
92
91
} elseif ($ optionValue === $ filterValue ) {
93
92
return true ;
94
93
}
95
-
96
94
}
97
-
98
95
}
99
96
100
97
return false ;
101
-
102
98
}, ARRAY_FILTER_USE_BOTH );
103
99
}
104
100
You can’t perform that action at this time.
0 commit comments