Test Failed
Push — main ( 92d586...908f29 )
by Davide
12:57
created

RegionFactory::definition()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 6
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 9
rs 10
1
<?php
2
3
namespace Database\Factories;
4
5
use App\Models\Region;
6
use Illuminate\Database\Eloquent\Factories\Factory;
7
8
class RegionFactory extends Factory
9
{
10
    /**
11
     * The name of the factory's corresponding model.
12
     *
13
     * @var string
14
     */
15
    protected $model = Region::class;
16
17
    /**
18
     * Define the model's default state.
19
     *
20
     * @return array
21
     */
22
    public function definition()
23
    {
24
        return [
25
            'name' => [
26
                'en' => $this->faker->sentence($nbWords = 2, $variableNbWords = true),
27
                'it' => $this->faker->sentence($nbWords = 2, $variableNbWords = true),
28
            ],
29
            'country_id' => $this->faker->numberBetween($min = 1, $max = 250),
30
            'timezone' => '+1:00',
31
        ];
32
    }
33
}
34
35
36
37