Cleanup of PHP files to match coding conventions

In order to keep a nice consistent feel for potential code contributors familiar with upstream I've cleaned up the php hooks and files according to http://www.mediawiki.org/wiki/Coding_conventions