pre-commit hook for php