@@ -4,7 +4,7 @@ discard block |
||
4 | 4 | echo 'form not found'; |
5 | 5 | return; |
6 | 6 | } |
7 | -$userForm = \UserForms\Form::get((int)$formId); |
|
7 | +$userForm = \UserForms\Form::get((int) $formId); |
|
8 | 8 | if (!$userForm) { |
9 | 9 | echo 'form not found'; |
10 | 10 | return; |
@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | echo "<p class = 'text-center'>{$userForm->description}</p>"; |
19 | 19 | } |
20 | 20 | foreach ($userForm->inputs(['order' => ['weight']]) as $input) { |
21 | - $form->input($input->type, 'UserForms[' . (int)$formId . '][input' . $input->id . ']', $input->label, ['required' => $input->required]); |
|
21 | + $form->input($input->type, 'UserForms[' . (int) $formId . '][input' . $input->id . ']', $input->label, ['required' => $input->required]); |
|
22 | 22 | } |
23 | 23 | ?> |
24 | 24 | <button class='btn btn-success btn-block'><?= urldecode($btnText); ?></button> |