Passed
Push — feature/job-builder/work-env-r... ( 3641b6...4a7aa4 )
by Tristan
22:01 queued 06:05
created

UsersSeeder   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A run() 0 4 1
1
<?php
2
3
use Illuminate\Database\Seeder;
4
use App\Models\Manager;
5
use App\Models\Applicant;
6
7
class UsersSeeder extends Seeder
0 ignored issues
show
Coding Style Compatibility introduced by
PSR1 recommends that each class must be in a namespace of at least one level to avoid collisions.

You can fix this by adding a namespace to your class:

namespace YourVendor;

class YourClass { }

When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.

Loading history...
8
{
9
10
    /**
11
     * Run the Users table seeds.
12
     *
13
     * @return void
14
     */
15
    public function run()
0 ignored issues
show
introduced by
Method \UsersSeeder::run() does not have return type hint for its return value but it should be possible to add it based on @return annotation "void".
Loading history...
16
    {
17
        factory(Manager::class, 10)->create();
18
        factory(Applicant::class, 5)->create();
19
    }
20
21
}
22