In this case, as it is a complex if statement, I'm not 100% convinced about moving the parenthesis onto the same line here. It makes more sense to me the way it was. Please see the arrays section at http://joomla.github.io/coding-standards/?coding-standards/chapters/php.md for a good example.