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

TypesPaymentSeeder   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A run() 0 21 1
1
<?php
2
3
namespace Mongi\Mongicommerce\Seedeers;
4
use Carbon\Carbon;
5
use Illuminate\Database\Seeder;
6
use Illuminate\Support\Facades\DB;
7
8
class TypesPaymentSeeder extends Seeder
9
{
10
    /**
11
     * Run the database seeds.
12
     *
13
     * @return void
14
     */
15
    public function run()
16
    {
17
        $data = [
18
            [
19
                'name' => 'Stripe',
20
                'created_at' => Carbon::now(),
21
                'updated_at' => Carbon::now()
22
            ],
23
            [
24
                'name' => 'Bonifico',
25
                'created_at' => Carbon::now(),
26
                'updated_at' => Carbon::now()
27
            ],
28
            [
29
                'name' => 'In Negozio',
30
                'created_at' => Carbon::now(),
31
                'updated_at' => Carbon::now()
32
            ],
33
34
        ];
35
        DB::table('payment_type')->insert($data);
36
    }
37
}
38