Control Structure Signatures

Control structures should use one space around the parentheses in conditions. The opening brace should be preceded by one space and should be at the end of the line.

Valid: Correct spacing around the condition.

if<em> </em>($foo)<em> </em>{ }

Invalid: Incorrect spacing around the condition.

if<em></em>($foo)<em></em>{ }

Valid: Correct placement of the opening brace.

if ($foo) <em>{</em> }

Invalid: Incorrect placement of the opening brace on a new line.

if ($foo) <em>{</em> }