Conditions | 3 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 12 |
Changes | 0 |
1 | <?php |
||
38 | public function create(Form $form): FormView |
||
39 | { |
||
40 | $builder = $this->formFactory->createBuilder($form->formType); |
||
41 | |||
42 | if (!($currentAction = $builder->getAction()) || '' === $currentAction) { |
||
43 | $builder->setAction($this->getFormAction($form)); |
||
44 | } |
||
45 | |||
46 | return new FormView($builder->getForm()); |
||
47 | } |
||
54 |