driftingly/rector-laravel

Missing namespace for factory

Opened this issue · 0 comments

The rule FactoryDefinitionRector as defined here, should do more.
https://github.com/driftingly/rector-laravel/blob/main/docs/rector_rules_overview.md#factorydefinitionrector

The namespace could be added if not present in the file since Laravel want it.
Plus the name should be renamed too (if rector allows it, otherwise a message could be enough)