Add PHPCS to travis and fix violations.

Some warnings are left, but those won't fail the build.
@GrahamCampbell I just made it consistent with this.