Adding PHP CodeSniffer to .travis.yml and fixing PSR-1 and PSR-2 compliance issues