driftingly / rector-laravel

Rector upgrades rules for Laravel
http://getrector.org
MIT License
469 stars 48 forks source link

Missing namespace for factory #213

Open jeff1326 opened 2 months ago

jeff1326 commented 2 months ago

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)