Skip to content

Commit 8790c37

Browse files
cranycranef3l1x
authored andcommitted
chore(bootstrap5): code formatting
1 parent 2700fce commit 8790c37

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

src/Rendering/Bootstrap5HorizontalRenderer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ public function render(Form $form, $mode = null): string
8383
}
8484

8585
// the .invalid-feedback expects .is-invalid on the same level to be displayed
86-
if ($control->hasErrors()
87-
&& ($control instanceof Controls\Checkbox
86+
if ($control->hasErrors()
87+
&& ($control instanceof Controls\Checkbox
8888
|| $control instanceof Controls\CheckboxList
8989
|| $control instanceof Controls\RadioList)) {
9090
$control->getSeparatorPrototype()->setName('div')->addClass('is-invalid');

src/Rendering/Bootstrap5InlineRenderer.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ public function render(Form $form, $mode = null): string
9797
if ($control->hasErrors()) {
9898
$control->getSeparatorPrototype()->setName('div')->addClass('is-invalid');
9999
}
100+
100101
$control->getSeparatorPrototype()->setName('div')->addClass('form-check form-check-inline');
101102
$control->getControlPrototype()->addClass('form-check-input');
102103
$control->getLabelPrototype()->addClass('form-check-label');

src/Rendering/Bootstrap5VerticalRenderer.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,11 @@ public function render(Form $form, $mode = null): string
9898
if ($control->hasErrors()) {
9999
$control->getSeparatorPrototype()->setName('div')->addClass('is-invalid');
100100
}
101+
101102
$control->getSeparatorPrototype()->setName('div')->addClass('form-check');
102103
$control->getControlPrototype()->addClass('form-check-input');
103104
$control->getLabelPrototype()->addClass('form-check-label');
104-
break;
105+
break;
105106
}
106107
}
107108

0 commit comments

Comments
 (0)