There are two formats that stick out in WP’s source code that I have grown to like:
if (4 == $val)
t$val = 5;
and
$val = (4 == $val ? 5 : $val);
Anyone have any objections to the spacing and formatting used in these? The first shows no use of brackets when the statement contains one line of code inside the conditional and indents that line of code. The second spaces the shorthand if / else out and puts the statement inside parenthesis.