Sylius, just like Symfony, uses soft line limit, so this can all go into one line, or even better. Set the form to $form variable and return it after if / else.