-
-
Notifications
You must be signed in to change notification settings - Fork 57
Open
Description
Type: Suggestion
💡 Code Quality: There's a lot of repetition in the filter definitions (lines 35-110). Each filter follows the same pattern:
- Define the filter service with a tag
- Create an alias
- Define the form type
- Create another alias
Consider extracting this into a helper function or loop to reduce duplication:
$filters = [
'string' => ['filter' => StringFilter::class, 'form' => StringFilterType::class],
'boolean' => ['filter' => BooleanFilter::class, 'form' => BooleanFilterType::class],
// ...
];
foreach ($filters as $type => $classes) {
// Register filter and form type
}This would make the code more maintainable and less error-prone.
Originally posted by @Prometee in #436 (comment)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels