woofyman99/phocoa — comment on commit 24a61b78bd6783e7880ee2da53b2181c576de7a2
File:  line 0
By apinstein:

Please use this if formatting...

if ()
{
}
else
{
}

Even if it's a one-line if block. In my experience I always end up creating bugs in the future when adding additional functionality.

The only time I ever don't use {} on if's is for one liners like:

if ($something) throw new Exception("FOO");

Otherwise *always* use {}.