My colleage sam marshall made this for the OU development team, and I just took 5 minutes to throw it onto github so others could benefit.
https://github.com/timhunt/moodle-local_codechecker
At the moment the tool is very basic, but can easily be extended in future.
After you have installed this local plugin into Moodle in the usual way, you should see a new option Code checker under Site administration -> Development.
We hope you find this tool useful. Please feel free to enhance it.
This only works with Moodle 2.0.
(Note there is another coding style checker included in the download, but it is much harder to use, and the checks it does are not consistent with the coding guidelines because they are out-of-date. It is burried in lib/pear/PHP/runsniffer.)