Skip to content

Commit 74fba08

Browse files
committed
fix to styleci
1 parent a6ae7ac commit 74fba08

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/Relations/BelongsToMany.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ public function detach($ids = [], $touch = true)
224224
$ids = (array) $ids;
225225

226226

227-
if ($this->parent instanceof \Jenssegers\Mongodb\Eloquent\Model){
227+
if ($this->parent instanceof \Jenssegers\Mongodb\Eloquent\Model) {
228228
$this->parent->pull($this->getRelatedKey(), $ids);
229229
}
230230

tests/HybridRelationsTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -208,15 +208,15 @@ public function testHybridSync()
208208
$book = new Book(['title' => 'Harry Potter']);
209209
$otherBook = new Book(['title' => 'Game of Thrones']);
210210

211-
$user->books()->sync([$book->id,$otherBook->id]);
211+
$user->books()->sync([$book->id, $otherBook->id]);
212212
$user = MysqlUser::find($user->id); // refetch
213213
$this->assertCount(2, $user->books);
214214

215215
$user->books()->sync([$book->id]);
216216
$user = MysqlUser::find($user->id); // refetch
217217
$this->assertCount(1, $user->books);
218218

219-
$user->books()->sync([$book->id,$otherBook->id]);
219+
$user->books()->sync([$book->id, $otherBook->id]);
220220
$user = MysqlUser::find($user->id); // refetch
221221
$this->assertCount(2, $user->books);
222222
// MongoDB User
@@ -227,15 +227,15 @@ public function testHybridSync()
227227
$book = new MysqlBook(['title' => 'Harry Potter']);
228228
$otherBook = new MysqlBook(['title' => 'Game of Thrones']);
229229

230-
$user->mysqlBooks()->sync([$book->id,$otherBook->id]);
230+
$user->mysqlBooks()->sync([$book->id, $otherBook->id]);
231231
$user = User::find($user->_id);
232232
$this->assertCount(2, $user->mysqlBooks);
233233

234234
$user->mysqlBooks()->sync([$book->id]);
235235
$user = User::find($user->_id);
236236
$this->assertCount(1, $user->mysqlBooks);
237237

238-
$user->mysqlBooks()->sync([$book->id,$otherBook->id]);
238+
$user->mysqlBooks()->sync([$book->id, $otherBook->id]);
239239
$user = User::find($user->_id);
240240
$this->assertCount(2, $user->mysqlBooks);
241241
}

0 commit comments

Comments
 (0)