Today I am faced with a spaghetti of some new unknown code for a webservice, and I need to make sense of it. The code is using CodeIgniter with a HMVC extension which helps, but the problem is that it contains many unused/old/etc... files/folders. It also does not help that I recently converted to using PHP, so I am still learning my way around best practices.
- Is there a way to set the debugger up in a way that it breaks at the beginning of every single PHP file? (I have Xdebug set up ready to rock)
- What is the most effective way to analyse code for unused files? ( I saw a few projects for this, but unsure where to start)
Thanks!