[ticket/10724] Added whitespace checks in pre-commit hook

http://tracker.phpbb.com/browse/PHPBB3-10724