Completed
Push — master ( b74cd0...088e4f )
by Dennis
11:47
created

SubGroup   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 100 %

Coupling/Cohesion

Components 1
Dependencies 4

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 1
lcom 1
cbo 4
dl 16
loc 16
rs 10
c 2
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A run() 8 8 1

How to fix   Duplicated Code   

Duplicated Code

Duplicate code is one of the most pungent code smells. A rule that is often used is to re-structure code once it is duplicated in three or more places.

Common duplication problems, and corresponding solutions are:

1
<?php
2
namespace Dennis\Seeder\Tests\Unit\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 SubGroup 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_groups', 1)->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
                'title' => 'SubGroup',
24
            ]);
25
        });
26
    }
27
}
28