When chaining commands, I would prefer the semicolon on a line of it's own
$entity
    ->foo()
    ->bar()
;