Is there a way to refactor PHP to determine which functions are never called?

I have a large code base that has undergone many changes over the years. I would like to remove features that are no longer called or relevant. Is there a tool that will analyze the code base and determine if any method is used?

I also use phpunit / xdebug, which reports which functions were not performed for unit tests, however the coverage is only 55% and will require a lot of work to bring it to 100% (I'm working on it!).

Everything that was a command line tool would be very good, as I could connect it to hudson (CI).

+4
source share

Source: https://habr.com/ru/post/1311464/


All Articles