Finding unused methods of classes in a php project

Fell into the hands of the ancient project, faced with the need to find unused in the project static class libraries

On the advice from here put it, he found unused constants, fields, variables, but the fact that I have not found.

Tell me any tool please!
October 8th 19 at 00:25
3 answers
October 8th 19 at 00:27
Look at corona xdebug, code coverage, dead code. It knows how to do this.
OK, thank you. xdebug seems to be giving only the log of calls, it is unlikely it will fit, the rest will look - olen48 commented on October 8th 19 at 00:30
October 8th 19 at 00:29
2 and 3 are special options for xdebug, which allow you to search not used code.
yeah, came across on stackoverflow on your phrases, thank you! - olen48 commented on October 8th 19 at 00:32
October 8th 19 at 00:31
It is virtually impossible, given the specificity of the language and challenges call_user_function*
Netbeans and other ides have a "find usage" (by right clicking on the method), but right now, edit your validation class and it finds nothing, so methods are called using this->{'_'. $v['name']}();
So I suggest to use the Golden rule: works — do not touch.
No matter which way the function is called, the interpreter or through the body of the function or not.
this->{'_'. $v['name']}();<br>

Bad idea, there are __get() and __call() - olen48 commented on October 8th 19 at 00:34

Find more questions by tags PHP