Please add spaces to your control strucutures, so you follow the coding standards as defined here:
http://book.cakephp.org/2.0/en/contributing/cakephp-coding-conventions.html#ternary-operator