You should use the [code sniffer](https://github.com/cakephp/cakephp-codesniffer) to find coding standards errors.