-
-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
complexity:smallLess than 2 hoursLess than 2 hourslang:phpPHP/LaravelPHP/Laravelpriority:lowBacklogBacklogtype:refactorCode improvement without behaviour changeCode improvement without behaviour change
Description
Parent audit: #41
Finding
ModuleRegistry contains duplicated code patterns for registering and resolving different module types, increasing maintenance burden and inconsistency risk.
Fix
Extract common registration/resolution logic into shared methods or a base registry class. Use a strategy or template method pattern to handle type-specific differences.
Acceptance Criteria
- Common registration logic extracted to shared method
- Common resolution logic extracted to shared method
- Type-specific behaviour handled via strategy/template pattern
- Code duplication reduced by at least 30%
- All existing tests pass without modification
- No behavioural changes
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
complexity:smallLess than 2 hoursLess than 2 hourslang:phpPHP/LaravelPHP/Laravelpriority:lowBacklogBacklogtype:refactorCode improvement without behaviour changeCode improvement without behaviour change