[dev] enable debug mode on travis
[dev] rewrite pre-commit hook in php

Fixes phpcs running on deleted and non-php files
[dev] add travis config file check to pre-commit hook
[dev] update travis config file