SeedDriverConfigsTable   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 9
rs 10
c 0
b 0
f 0

1 Method

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