SeedDriverConfigsTable::run()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 4
nc 1
nop 0
1
<?php namespace Bedard\Shop\Updates;
2
3
use Bedard\Shop\Models\DriverConfig;
4
use October\Rain\Database\Updates\Seeder;
5
6
class SeedDriverConfigsTable extends Seeder
7
{
8
    public function run()
9
    {
10
        $nopayment = DriverConfig::firstOrNew(['class' => 'Bedard\Shop\Drivers\NoPayment']);
11
        $nopayment->config = ['event_complete' => 5];
12
        $nopayment->save();
13
    }
14
}
15