coding standards according to new sniffer rules

Fix coding standard violations that now occur due to the new CakePHP sniffer rules from https://github.com/cakephp/cakephp-codesniffer/pull/32 and https://github.com/cakephp/cakephp-codesniffer/pull/40