Is there a good way to format long ternary operator line ? Let's say :
$order = new Order($this->isProfessionalChildCollaborator($this->getUser()) ? $this->getUser()->getParent() : $this->getUser());
This is too long according to 120 char per line defined in PSR. Should I do :
$order = new Order(
$this->isProfessionalChildCollaborator($this->getUser()) ?
$this->getUser()->getParent() :
$this->getUser()
);
Or is there any other best practice?