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

RegionFactory   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 8
c 1
b 0
f 0
dl 0
loc 23
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A definition() 0 9 1
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