Skip to content

Commit c5cdadb

Browse files
authored
Fix code style
1 parent 1b71ae4 commit c5cdadb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Relations/BelongsToMany.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ public function sync($ids, $detaching = true)
123123

124124
if ($ids instanceof Collection) {
125125
$ids = $ids->modelKeys();
126-
} else if ($ids instanceof MongodbModel) {
126+
} elseif ($ids instanceof MongodbModel) {
127127
$ids = [$ids->{$this->relatedKey}];
128128
}
129129

0 commit comments

Comments
 (0)