@@ -54,8 +54,12 @@ |
||
| 54 | 54 | { |
| 55 | 55 | $formGroup = new static(new Fields([$field])); |
| 56 | 56 | |
| 57 | - if($field->getLabel()) $formGroup->label($field->getLabel()); |
|
| 58 | - if($field->getDescription()) $formGroup->description($field->getDescription()); |
|
| 57 | + if($field->getLabel()) { |
|
| 58 | + $formGroup->label($field->getLabel()); |
|
| 59 | + } |
|
| 60 | + if($field->getDescription()) { |
|
| 61 | + $formGroup->description($field->getDescription()); |
|
| 62 | + } |
|
| 59 | 63 | $formGroup->markAsRequired($field->required()); |
| 60 | 64 | |
| 61 | 65 | return $formGroup; |