Use checkPhp function for pre-commit