You are right. But I guess EmailReporting source code deviates a lot from the standards set by the MantisBT community, especially in the case of controls structures.  Refer http://www.mantisbt.org/wiki/doku.php/mantisbt:coding_guidelines#braces_and_parentheses