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

前端 未结 3 1495
有刺的猬
有刺的猬 2021-02-13 05:47

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:31

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

提交回复
热议问题