Skip to content

Commit 0c96f80

Browse files
committed
fix styleci again
1 parent 74fba08 commit 0c96f80

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/Relations/BelongsToMany.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -223,13 +223,10 @@ public function detach($ids = [], $touch = true)
223223
// We'll return the numbers of affected rows when we do the deletes.
224224
$ids = (array) $ids;
225225

226-
227226
if ($this->parent instanceof \Jenssegers\Mongodb\Eloquent\Model) {
228227
$this->parent->pull($this->getRelatedKey(), $ids);
229228
}
230229

231-
232-
233230
// Prepare the query to select all related objects.
234231
if (count($ids) > 0) {
235232
$query->whereIn($this->related->getKeyName(), $ids);

tests/HybridRelationsTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,7 @@ public function testHybridWith()
194194
$this->assertEquals($user->id, $user->books->count());
195195
});
196196
}
197+
197198
public function testHybridSync()
198199
{
199200
$user = new MysqlUser;

0 commit comments

Comments
 (0)