Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
rustagir committed Jan 31, 2025
1 parent e558e60 commit b5a25b6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions docs/includes/usage-examples/FindOneTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ public function testFindOne(): void
echo $movie->toJson();
// end-eloquent-find-one

$this->assertInstanceOf(Movie::class, $movie);

// begin-qb-find-one
$movie = DB::table('movies')
->where('directors', 'Rob Reiner')
Expand All @@ -42,6 +40,7 @@ public function testFindOne(): void
echo $movie['title'];
// end-qb-find-one

$this->assertInstanceOf(Movie::class, $movie);
$this->assertSame($movie['title'], 'The Shawshank Redemption');
$this->expectOutputString('{"_id":"679cdb4834e26dc5370de462","title":"The Shawshank Redemption","directors":["Frank Darabont","Rob Reiner"]}The Shawshank Redemption');
}
Expand Down
2 changes: 1 addition & 1 deletion docs/usage-examples/insertOne.txt
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ each corresponding query syntax:
method from the ``DB`` facade
- Inserts a document into the ``movies`` collection

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

- ``title`` value of ``"Marriage Story"``
Expand Down

0 comments on commit b5a25b6

Please sign in to comment.