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 — filters ( b41112...24729b )
by
unknown
13:18
created

m151207_103155_google_merchants   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 46
Duplicated Lines 0 %

Coupling/Cohesion

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A up() 0 22 1
A down() 0 9 1
1
<?php
2
3
use app\backend\models\BackendMenu;
4
use yii\db\Migration;
5
6
class m151207_103155_google_merchants extends Migration
7
{
8
    public function up()
9
    {
10
        $shopMenuItem = BackendMenu::findOne([
11
            'name' => 'Settings',
12
        ]);
13
14
        $this->insert(
15
            BackendMenu::tableName(),
16
           [
17
               'parent_id' => $shopMenuItem->id,
18
               'name' => 'Google Merchants',
19
               'route' => '/shop/backend-google-feed/settings',
20
               'icon' => 'google',
21
               'sort_order' => '0',
22
               'added_by_ext' => 'core',
23
               'rbac_check' => 'content manage',
24
               'css_class' => Null,
25
               'translation_category' => 'app',
26
           ]
27
        );
28
29
    }
30
31
    public function down()
32
    {
33
        $this->delete(
34
            BackendMenu::tableName(),
35
            [
36
                'route' => '/shop/backend-google-feed/settings'
37
            ]
38
        );
39
    }
40
41
    /*
42
    // Use safeUp/safeDown to run migration code within a transaction
43
    public function safeUp()
44
    {
45
    }
46
47
    public function safeDown()
48
    {
49
    }
50
    */
51
}
52