braces should start in it's own line. Check http://joomla.github.io/coding-standards/?coding-standards/chapters/php.md.

Please install the sniffer.