I've just started working on a larger preexisting code base (PHP) and it has come to my attention that a lot of these files use includes/requires in an unreadable way. The includes/requires sort of cascade through the file system, because almost every file in the system includes/requires a file called common.php. This common file includes/requires just about every other file, so it seems that when a developer was in doubt, they just included/required common and called it good.
This was written by professional web developers, and I'm still a student, so I'm curious if this is common practice in PHP. In PHP should there be a common file that includes/requires everything, should each file be included/required case by case, or is there a different way that is common practice?
On a side note: I'm trying to switch out an api file for a new one (while keeping the old for compatibility testing), and it is difficult for me to tell which files use my new api or the old one.