Summary
Standardize defineValidationRules(Request $request): void across DemoWeb and DemoApi middleware templates for a consistent method contract.
Scope
- Update
BaseMiddleware.php.tpl in DemoWeb and DemoApi to use : void
- Update all middleware template overrides to match
: void
Why
Current templates use mixed signatures (with and without : void), which creates inconsistency in generated modules and avoidable confusion during maintenance.
Acceptance criteria
- All
defineValidationRules(Request $request) methods under:
src/Module/Templates/DemoWeb/src/Middlewares
src/Module/Templates/DemoApi/src/Middlewares
use : void consistently, including base middleware templates.
Summary
Standardize
defineValidationRules(Request $request): voidacross DemoWeb and DemoApi middleware templates for a consistent method contract.Scope
BaseMiddleware.php.tplin DemoWeb and DemoApi to use: void: voidWhy
Current templates use mixed signatures (with and without
: void), which creates inconsistency in generated modules and avoidable confusion during maintenance.Acceptance criteria
defineValidationRules(Request $request)methods under:src/Module/Templates/DemoWeb/src/Middlewaressrc/Module/Templates/DemoApi/src/Middlewaresuse
: voidconsistently, including base middleware templates.