PHP Code:
function blah()
{
if (this.condition)
{
if (this.completelydifferentcondition)
blah2();
else
blah3();
}
}
My general stylings. I normally have brackets around all conditions and events but when i'm finished and there is only one statement, I generally remove them.
Like
PHP Code:
function Dosomething()
return this.something.index();
public function yay()
return localfunction();