Skip to content

Commit b37b5b7

Browse files
CodeWithDennisgithub-actions[bot]
authored andcommitted
Fix styling
1 parent f0fe493 commit b37b5b7

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/SelectTree.php

+6-6
Original file line numberDiff line numberDiff line change
@@ -115,16 +115,16 @@ protected function setUp(): void
115115

116116
// Check if the component's relationship is a BelongsTo relationship.
117117
if ($relationship instanceof BelongsTo) {
118-
$relationship->associate($state)->save();
118+
$relationship->associate($state)->save();
119119

120-
return;
120+
return;
121121
}
122122

123-
// Wrap the state in a collection and convert it to an array if it's not set.
124-
$state = Collection::wrap($state ?? []);
123+
// Wrap the state in a collection and convert it to an array if it's not set.
124+
$state = Collection::wrap($state ?? []);
125125

126-
// Sync the relationship with the provided state (IDs).
127-
$component->getRelationship()->sync($state->toArray());
126+
// Sync the relationship with the provided state (IDs).
127+
$component->getRelationship()->sync($state->toArray());
128128
});
129129

130130
$this->createOptionUsing(static function (SelectTree $component, array $data, Form $form) {

0 commit comments

Comments
 (0)