Passed
Push — task/upgrade-to-laravel-8 ( 06df3c...4c1b1e )
by Chris
03:46
created

ResourceSeeder   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A run() 0 3 1
1
<?php
2
3
namespace Database\Seeders;
4
5
use App\Models\Resource;
6
use Illuminate\Database\Seeder;
7
8
class ResourceSeeder extends Seeder // phpcs:ignore
9
{
10
    /**
11
     * Run the database seeds.
12
     *
13
     * @return void
14
     */
15
    public function run(): void
16
    {
17
        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

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