Possible Duplicate:
How can I find unused functions in a PHP project
How can I check for unused code in PHP5? Something like the following?
- Scan classes with Reflection
- Follow "normal" code with
token_get_all()and find variables with token T_NEW and then scan for method calls. - Output something like
classname (count of new declarations) methods (count of calls)