Skip to content

Commit b5a25b6

Browse files
committed
formatting
1 parent e558e60 commit b5a25b6

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

docs/includes/usage-examples/FindOneTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@ public function testFindOne(): void
3131
echo $movie->toJson();
3232
// end-eloquent-find-one
3333

34-
$this->assertInstanceOf(Movie::class, $movie);
35-
3634
// begin-qb-find-one
3735
$movie = DB::table('movies')
3836
->where('directors', 'Rob Reiner')
@@ -42,6 +40,7 @@ public function testFindOne(): void
4240
echo $movie['title'];
4341
// end-qb-find-one
4442

43+
$this->assertInstanceOf(Movie::class, $movie);
4544
$this->assertSame($movie['title'], 'The Shawshank Redemption');
4645
$this->expectOutputString('{"_id":"679cdb4834e26dc5370de462","title":"The Shawshank Redemption","directors":["Frank Darabont","Rob Reiner"]}The Shawshank Redemption');
4746
}

docs/usage-examples/insertOne.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ each corresponding query syntax:
8686
method from the ``DB`` facade
8787
- Inserts a document into the ``movies`` collection
8888

89-
The example calls the ``create()`` method to insert a document
89+
The example calls the ``insert()`` method to insert a document
9090
that contains the following fields and values:
9191

9292
- ``title`` value of ``"Marriage Story"``

0 commit comments

Comments
 (0)