M
M
mitaichik2016-02-01 12:22:18
PHP
mitaichik, 2016-02-01 12:22:18

Is there a PHP unused code analyzer?

Hello. I got a project in which the developers did not remove the old code and did not mark it as depricated. It's hard to figure out what's really relevant and what's not.
Is there a good code analyzer to detect unnecessary code? There is a wonderful Find Usage in phpStorm, but it does not give a picture as a whole: when deleting some method, you have to go through all the others again.
Maybe there is some such analyzer?
Thanks in advance!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Muhammad, 2016-02-01
@muhammad_97

PHP Dead Code Detector : https://github.com/sebastianbergmann/phpdcd

S
Sergey, 2016-02-01
Protko @Fesor

try running it through phpdepend or phpmetrics. These are very useful tools for analyzing code and finding "interesting" places.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question