Add PHP syntax checks for travis-ci and pre-commit hook