Skip to content

Commit cb804c4

Browse files
committed
Apply fixes from StyleCI
1 parent a91b059 commit cb804c4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Illuminate/Database/Eloquent/Factories/Factory.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -458,8 +458,8 @@ public function insert(array $attributes = [], ?Model $parent = null): void
458458
{
459459
$made = $this->make($attributes, $parent);
460460

461-
$madeCollection = $made instanceof Collection
462-
? $made
461+
$madeCollection = $made instanceof Collection
462+
? $made
463463
: $this->newModel()->newCollection([$made]);
464464

465465
$model = $madeCollection->first();

tests/Database/DatabaseEloquentFactoryTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -989,7 +989,7 @@ public function test_factory_can_insert()
989989
->count(5)
990990
->recycle([
991991
(new FactoryTestUserFactory())->create(['name' => Name::Taylor]),
992-
(new FactoryTestUserFactory())->create(['name' => Name::Shad, 'created_at' => now()])
992+
(new FactoryTestUserFactory())->create(['name' => Name::Shad, 'created_at' => now()]),
993993
])
994994
->state(['title' => 'hello'])
995995
->insert();

0 commit comments

Comments
 (0)