Add PHPCS to travis and fix violations.

Some warnings are left, but those won't fail the build.
Sorry about the inconsistency. We should use two space indent :)