GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Test Setup Failed
Push — master ( e91cf6...3a6b3f )
by Alexander
10:43
created

m151215_114531_content_block_groups   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 55
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2
Metric Value
wmc 2
lcom 1
cbo 2
dl 0
loc 55
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
B up() 0 31 1
A down() 0 9 1
1
<?php
2
3
use yii\db\Migration;
4
5
class m151215_114531_content_block_groups extends Migration
6
{
7
    public function up()
8
    {
9
10
        $this->createTable(
11
            '{{%content_block_group%}}',
12
            [
13
                'id' => $this->primaryKey(),
14
                'parent_id' => $this->integer(10)->notNull()->defaultValue(1),
15
                'name' => $this->string(250)->notNull(),
16
                'sort_order' => $this->integer()->notNull()->defaultValue(0)
17
            ]
18
        );
19
20
        $this->insert(
21
            '{{%content_block_group%}}',
22
            [
23
                'parent_id' => 0,
24
                'name' => 'root',
25
                'sort_order' => 0
26
            ]
27
        );
28
29
        $groupID = $this->db->lastInsertID;
30
31
        $this->addColumn(
32
            '{{%content_block}}',
33
            'group_id',
34
            $this->integer(2)->notNull()->defaultValue($groupID)
35
        );
36
37
    }
38
39
    public function down()
40
    {
41
        $this->dropColumn(
42
            '{{%content_block}}',
43
            'group_id'
44
        );
45
46
        $this->dropTable('{{%content_block_group%}}');
47
    }
48
49
    /*
50
    // Use safeUp/safeDown to run migration code within a transaction
51
    public function safeUp()
52
    {
53
    }
54
55
    public function safeDown()
56
    {
57
    }
58
    */
59
}
60