Enabled phpcs for CI

And fixed framework code