Multi-line If Conditions

Multi-line if conditions should be indented one level and each line should begin with a boolean operator. The end parenthesis should be on a new line.

Valid: Correct indentation.

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

Invalid: No indentation used on the condition lines.

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

Valid: Boolean operator at the start of the line.

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

Invalid: Boolean operator at the end of the line.

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

Valid: End parenthesis on a new line.

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

Invalid: End parenthesis not moved to a new line.

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