@@ -208,15 +208,15 @@ public function testHybridSync()
208
208
$ book = new Book (['title ' => 'Harry Potter ' ]);
209
209
$ otherBook = new Book (['title ' => 'Game of Thrones ' ]);
210
210
211
- $ user ->books ()->sync ([$ book ->id ,$ otherBook ->id ]);
211
+ $ user ->books ()->sync ([$ book ->id , $ otherBook ->id ]);
212
212
$ user = MysqlUser::find ($ user ->id ); // refetch
213
213
$ this ->assertCount (2 , $ user ->books );
214
214
215
215
$ user ->books ()->sync ([$ book ->id ]);
216
216
$ user = MysqlUser::find ($ user ->id ); // refetch
217
217
$ this ->assertCount (1 , $ user ->books );
218
218
219
- $ user ->books ()->sync ([$ book ->id ,$ otherBook ->id ]);
219
+ $ user ->books ()->sync ([$ book ->id , $ otherBook ->id ]);
220
220
$ user = MysqlUser::find ($ user ->id ); // refetch
221
221
$ this ->assertCount (2 , $ user ->books );
222
222
// MongoDB User
@@ -227,15 +227,15 @@ public function testHybridSync()
227
227
$ book = new MysqlBook (['title ' => 'Harry Potter ' ]);
228
228
$ otherBook = new MysqlBook (['title ' => 'Game of Thrones ' ]);
229
229
230
- $ user ->mysqlBooks ()->sync ([$ book ->id ,$ otherBook ->id ]);
230
+ $ user ->mysqlBooks ()->sync ([$ book ->id , $ otherBook ->id ]);
231
231
$ user = User::find ($ user ->_id );
232
232
$ this ->assertCount (2 , $ user ->mysqlBooks );
233
233
234
234
$ user ->mysqlBooks ()->sync ([$ book ->id ]);
235
235
$ user = User::find ($ user ->_id );
236
236
$ this ->assertCount (1 , $ user ->mysqlBooks );
237
237
238
- $ user ->mysqlBooks ()->sync ([$ book ->id ,$ otherBook ->id ]);
238
+ $ user ->mysqlBooks ()->sync ([$ book ->id , $ otherBook ->id ]);
239
239
$ user = User::find ($ user ->_id );
240
240
$ this ->assertCount (2 , $ user ->mysqlBooks );
241
241
}
0 commit comments