Skip to content

Commit

Permalink
apply phpcbf formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
GromNaN committed Mar 18, 2024
1 parent 537a828 commit e3dfa89
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Eloquent/Builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ public function createOrFirst(array $attributes = [], array $values = []): Model
$document = $collection->findOneAndUpdate(
$attributes,
// Before MongoDB 5.0, $setOnInsert requires a non-empty document.
// This is should not be an issue as $values includes the query filter.
// This should not be an issue as $values includes the query filter.
['$setOnInsert' => (object) $values],
[
'upsert' => true,
Expand Down
4 changes: 1 addition & 3 deletions tests/Query/AggregationBuilderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@
use MongoDB\Laravel\Tests\Models\User;
use MongoDB\Laravel\Tests\TestCase;

use function is_array;

class AggregationBuilderTest extends TestCase
{
public function tearDown(): void
Expand Down Expand Up @@ -91,7 +89,7 @@ public function testAddRawStage(): void
$expected = [
['$match' => ['name' => 'John Doe']],
['$limit' => 10],
['$replaceRoot' => ['$newRoot' => '$$ROOT']],
['$replaceRoot' => ['newRoot' => '$$ROOT']],
];

$this->assertSamePipeline($expected, $pipeline->getPipeline());
Expand Down

0 comments on commit e3dfa89

Please sign in to comment.