[ticket/11630] Improvements to the PHP lint pre-commit hook

Previous PR: https://github.com/phpbb/phpbb3/pull/1345

http://tracker.phpbb.com/browse/PHPBB3-11630