Skip to content

Commit 1f4f87c

Browse files
committed
StyleCI
1 parent 02c6be3 commit 1f4f87c

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

src/Illuminate/Database/Eloquent/Builder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -637,7 +637,7 @@ public function incrementOrCreate(array $attributes, string $column = 'count', $
637637
return tap($this->firstOrCreate($attributes, [$column => $default]), function ($instance) use ($column, $step, $extra) {
638638
if (! $instance->wasRecentlyCreated) {
639639
$instance->increment($column, $step, $extra);
640-
}
640+
}
641641
});
642642
}
643643

tests/Database/DatabaseEloquentBuilderCreateOrFirstTest.php

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,8 @@ public function testUpdateOrCreateMethodUpdatesRecordCreatedJustNow(): void
300300
], $result->toArray());
301301
}
302302

303-
public function testIncrementOrCreateMethodIncrementsExistingRecord(): void {
303+
public function testIncrementOrCreateMethodIncrementsExistingRecord(): void
304+
{
304305
$model = new EloquentBuilderCreateOrFirstTestModel();
305306
$this->mockConnectionForModel($model, 'SQLite');
306307
$model->getConnection()->shouldReceive('transactionLevel')->andReturn(0);
@@ -341,7 +342,8 @@ public function testIncrementOrCreateMethodIncrementsExistingRecord(): void {
341342
], $result->toArray());
342343
}
343344

344-
public function testIncrementOrCreateMethodCreatesNewRecord(): void {
345+
public function testIncrementOrCreateMethodCreatesNewRecord(): void
346+
{
345347
$model = new EloquentBuilderCreateOrFirstTestModel();
346348
$this->mockConnectionForModel($model, 'SQLite', [123]);
347349
$model->getConnection()->shouldReceive('transactionLevel')->andReturn(0);
@@ -412,7 +414,8 @@ public function testIncrementOrCreateMethodIncrementParametersArePassed(): void
412414
], $result->toArray());
413415
}
414416

415-
public function testIncrementOrCreateMethodRetrievesRecordCreatedJustNow(): void {
417+
public function testIncrementOrCreateMethodRetrievesRecordCreatedJustNow(): void
418+
{
416419
$model = new EloquentBuilderCreateOrFirstTestModel();
417420
$this->mockConnectionForModel($model, 'SQLite');
418421
$model->getConnection()->shouldReceive('transactionLevel')->andReturn(0);
@@ -437,7 +440,7 @@ public function testIncrementOrCreateMethodRetrievesRecordCreatedJustNow(): void
437440
->andReturn([[
438441
'id' => 123,
439442
'attr' => 'foo',
440-
'count' => 1 ,
443+
'count' => 1,
441444
'created_at' => '2023-01-01 00:00:00',
442445
'updated_at' => '2023-01-01 00:00:00',
443446
]]);

0 commit comments

Comments
 (0)