Pages   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 4

Importance

Changes 0
Metric Value
wmc 1
lcom 1
cbo 4
dl 0
loc 17
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A run() 0 9 1
1
<?php
2
namespace TildBJ\Seeder\Tests\Functional\Seeder;
3
4
use TildBJ\Seeder;
5
6
/**
7
 * Class Pages
8
 * @package TildBJ\Seeder\Tests\Functional\Seeder
9
 */
10
class Pages extends Seeder\Seeder\DatabaseSeeder
11
{
12
    /**
13
     * Run the database seeds.
14
     *
15
     * @return void
16
     */
17
    public function run()
18
    {
19
        $this->factory->create('pages', 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...
20
            $seed->set([
21
                'title' => 'foobar',
22
                'media' => $this->call(Seeder\Seeder\Image::class)
23
            ]);
24
        });
25
    }
26
}
27