Well noted. I would go even further:
<?php
function checkSomething($a, $b)
{
if (!$a->doIexist()) {
return false;
}
$a->doSomeStuff();
$b->wowIamSoComplex();
return ($b->stillGoing() || $b->maybeThisWorks());
}
?>
Well, actually, replace
if ($b->stillGoing() || $b->maybeThisWorks()) {
return true;
}
return false;
with
return ($b->stillGoing() || $b->maybeThisWorks());