Passed
Push — develop ( 2fff64...5f0aa7 )
by Septianata
04:06
created

BranchFactory   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A definition() 0 8 1
1
<?php
2
3
namespace Database\Factories;
4
5
use App\Models\Branch;
6
use Illuminate\Database\Eloquent\Factories\Factory;
7
8
class BranchFactory extends Factory
9
{
10
    /**
11
     * The name of the factory's corresponding model.
12
     *
13
     * @var string
14
     */
15
    protected $model = Branch::class;
16
17
    /**
18
     * Define the model's default state.
19
     *
20
     * @return array
21
     */
22
    public function definition()
23
    {
24
        return [
25
            'name' => 'BCA KCU Denpasar',
26
            'address' => 'Jl. Hasanuddin No.58, Pemecutan, Kec. Denpasar Bar., Kota Denpasar, Bali 80232',
27
            'address_latitude' => '-8.6581162',
28
            'address_longitude' => '115.2127812',
29
            'google_map_url' => 'https://www.google.com/maps/place/BCA+KCU+Denpasar/@-8.6581162,115.2127812,20z/data=!4m5!3m4!1s0x2dd240987c02083b:0x45b03e6b3ab46412!8m2!3d-8.6583514!4d115.2127877',
30
        ];
31
    }
32
}
33