ResourceSeeder   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 2
dl 0
loc 10
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A run() 0 3 1
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