Completed
Push — master ( 64aeb7...576a4c )
by Dennis
01:45
created

User::run()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 5

Duplication

Lines 9
Ratio 100 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 9
loc 9
rs 9.6666
c 1
b 0
f 0
cc 1
eloc 5
nc 1
nop 0
1
<?php
2
namespace Dennis\Seeder\Tests\Functional\Seeder;
3
4
use Dennis\Seeder;
5
6
/**
7
 * Class User
8
 * @package Dennis\Seeder\Seeder
9
 *
10
 * @example
11
 */
12 View Code Duplication
class User extends Seeder\Seeder\DatabaseSeeder
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
13
{
14
    /**
15
     * Run the database seeds.
16
     *
17
     * @return void
18
     */
19
    public function run()
20
    {
21
        $this->factory->create('fe_users', 2)->each(function (Seeder\Seed $seed, Seeder\Faker $faker) {
0 ignored issues
show
Unused Code introduced by
The parameter $faker is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
22
            $seed->set([
23
                'email' => '[email protected]',
24
                'usergroup' => $this->call(Group::class)
25
            ]);
26
        });
27
    }
28
}
29