Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Determining which PHP source files are not used

I have a large web app, and I think there are a bunch of old files that are no longer being used, is there an app which can tell me what these files are?

like image 879
UnkwnTech Avatar asked Nov 28 '09 03:11

UnkwnTech


2 Answers

There is also the Dead Code Detector (DCD). It finds functions that are never called, which may help to clean up even the files you keep in production.

like image 195
fuxia Avatar answered Sep 19 '22 18:09

fuxia


I think you need to check out the project management tools available for php.

You can have a look at phpUnderControl (http://www.phpundercontrol.org/about.html) and CruiseControl (you can google it).

You can also use a tool (i.e and IDE) that will give a Code Coverage Report.

like image 24
Andreas Avatar answered Sep 17 '22 18:09

Andreas