Passed
Push — feature/job-status-transitions ( 644244...8c1bd7 )
by Tristan
04:36 queued 12s
created

ResourceSeeder::run()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
use App\Models\Resource;
4
use Illuminate\Database\Seeder;
5
6
class ResourceSeeder extends Seeder // phpcs:ignore
7
{
8
    /**
9
     * Run the database seeds.
10
     *
11
     * @return void
12
     */
13
    public function run(): void
14
    {
15
        factory(Resource::class, 5)->create();
0 ignored issues
show
Bug introduced by
The function factory was not found. Maybe you did not declare it correctly or list all dependencies? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

15
        /** @scrutinizer ignore-call */ 
16
        factory(Resource::class, 5)->create();
Loading history...
16
    }
17
}
18