Image::run()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 13

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 8
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 13
ccs 8
cts 8
cp 1
rs 9.8333
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 1
1
<?php
2
3
namespace TildBJ\Seeder\Seeder;
4
5
use TildBJ\Seeder;
6
7
/**
8
 * Class Image
9
 * @package TildBJ\Seeder\Seeder
10
 */
11
class Image extends \TildBJ\Seeder\Seeder\DatabaseSeeder
12
{
13 1
    public function run()
14
    {
15 1
        $this->factory->create('sys_file_reference')->each(
16 1
            function (Seeder\Seed $seed, Seeder\Faker $faker) {
17 1
                $seed->set(
18
                    array(
19 1
                        'pid' => 0,
20 1
                        'uid_local' => $faker->getImage(),
0 ignored issues
show
Bug introduced by
The method getImage() does not seem to exist on object<TildBJ\Seeder\Faker>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
21
                    )
22
                );
23 1
            }
24
        );
25 1
    }
26
}
27