You can use the official [codesniffer](https://github.com/cakephp/cakephp-codesniffer).