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

UsersSeeder::run()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 3
nc 1
nop 0
dl 0
loc 5
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Database\Seeders;
4
5
use Illuminate\Database\Seeder;
6
use App\Models\Manager;
7
use App\Models\Applicant;
8
use App\Models\HrAdvisor;
9
10
class UsersSeeder extends Seeder // phpcs:ignore
11
{
12
13
    /**
14
     * Run the Users table seeds.
15
     *
16
     * @return void
17
     */
18
    public function run()
19
    {
20
        factory(Manager::class, 10)->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

20
        /** @scrutinizer ignore-call */ 
21
        factory(Manager::class, 10)->create();
Loading history...
21
        factory(Applicant::class, 5)->create();
22
        factory(HrAdvisor::class, 1)->create();
23
    }
24
}
25