m160805_062054_addErrorStatus   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 7
dl 0
loc 13
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A initInverter() 0 11 1
1
<?php
2
namespace execut\import\migrations;
3
class m160805_062054_addErrorStatus extends \execut\yii\migration\Migration
4
{
5
    public function initInverter(\execut\yii\migration\Inverter $i)
6
    {
7
        $i->table('import_files_statuses')->batchInsert([
8
            'id',
9
            'key',
10
            'name'
11
        ], [
12
            [
13
                9,
14
                'error',
15
                'Error',
16
            ]
17
        ]);
18
    }
19
}
20