Test Failed
Push — master ( 83b4ef...37cc60 )
by Gianluca
19:45 queued 19:45
created

StasusesOrderSeeder   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 42
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A run() 0 35 1
1
<?php
2
3
namespace Mongi\Mongicommerce\Seedeers;
4
5
use Carbon\Carbon;
6
use Illuminate\Database\Seeder;
7
use Illuminate\Support\Facades\DB;
8
9
class StasusesOrderSeeder extends Seeder
10
{
11
    /**
12
     * Run the database seeds.
13
     *
14
     * @return void
15
     */
16
    public function run()
17
    {
18
        $data = [
19
            [
20
                'name' => 'In preparazione',
21
                'color' => 'badge-warning',
22
                'created_at' => Carbon::now(),
23
                'updated_at' => Carbon::now()
24
            ],
25
            [
26
                'name' => 'Attesa di pagamento',
27
                'color' => 'badge-info',
28
                'created_at' => Carbon::now(),
29
                'updated_at' => Carbon::now()
30
            ],
31
            [
32
                'name' => 'consegnato al corriere',
33
                'color' => 'badge-primary',
34
                'created_at' => Carbon::now(),
35
                'updated_at' => Carbon::now()
36
            ],
37
            [
38
                'name' => 'Completato',
39
                'color' => 'badge-success',
40
                'created_at' => Carbon::now(),
41
                'updated_at' => Carbon::now()
42
            ],
43
            [
44
                'name' => 'Rifiutato',
45
                'color' => 'badge-danger',
46
                'created_at' => Carbon::now(),
47
                'updated_at' => Carbon::now()
48
            ],
49
        ];
50
        DB::table('statuses_order')->insert($data);
51
    }
52
}
53