Scrutinizer GitHub App not installed

We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.

Install GitHub App

Test Setup Failed
Pull Request — development (#68)
by José
06:06
created

ModelFactory::fields()

Size

Total Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 1
c 0
b 0
f 0
nc 1
1
<?php
2
3
namespace GiveBlood\Support\Database;
4
5
use Illuminate\Database\Eloquent\Factory;
6
use Faker\Generator;
7
/**
8
 * Class ModelFactory
9
 */
10
abstract class ModelFactory
11
{
12
    /**
13
     * @var string
14
     */
15
    protected $model;
16
17
    /**
18
     * @var Factory
19
     */
20
    protected $factory;
21
22
    /**
23
     * @var Generator
24
     */
25
    protected $faker;
26
27
    /**
28
     * ModelFactory construct
29
     */
30
    public function __construct()
31
    {
32
        $this->factory = app()->make(Factory::class);
33
        $this->faker = app()->make(Generator::class);
34
    }
35
36
    /**
37
     *
38
     */
39
    public function define()
40
    {
41
        $this->factory->define(
42
            $this->model, function () {
43
                return $this->fields();
44
            }
45
        );
46
    }
47
48
    /**
49
     * @return array
50
     */
51
    abstract protected function fields();
52
}
53