Completed
Push — master ( 96e397...a65e1b )
by Dennis
03:31
created

Image::run()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 13
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 13
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 7
nc 1
nop 0
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
    public function run()
14
    {
15
        $this->factory->create('sys_file_reference')->each(
16
            function (Seeder\Seed $seed, Seeder\Faker $faker) {
17
                $seed->set(
18
                    array(
19
                        'pid' => 0,
20
                        '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
            }
24
        );
25
    }
26
}
27