Re: How to look for unused methods/functions and variables/constants.
| From: | T . Lensselink | Date: | Wed, 12 Dec 2007 10:14:21 +0000 |
| Subject: | Re: How to look for unused methods/functions and variables/constants. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-265747@lists.php.net to get a copy of this message | ||
On Wed, 12 Dec 2007 10:21:58 +0100, Mathijs van Veluw
<mathijs.van.veluw@smscity.com> wrote:
> Hello there,
>
> We have a large project with lots of classes.
> Now i am wondering if there is a way to let something check all those
> files and tell me which methods/functions variables/constants etc..
> arn't used anymore.
>
> Or even which files arn't used anymore.
>
> Is there already something like this?
>
> Thx in advance.
>
> Mathijs
>
You could use Xdebug's Code_Coverage. Or the "Analyze code" feature
in Zend Studio if you're using that :)