Easiest way to detect/remove unused `use` statements from PHP codebase

前端 未结 3 1588
难免孤独
难免孤独 2021-02-13 06:04

I\'ve searched all over for something like this but I believe the word \"use\" is perhaps too common for any helpful results:

What is the easiest way to remove all un-us

3条回答
  •  南笙
    南笙 (楼主)
    2021-02-13 06:38

    Check FriendsOfPHP's PHP-CS-Fixer https://github.com/FriendsOfPHP/PHP-CS-Fixer

提交回复
热议问题