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 ( 8094dd...b8aa76 )
by
unknown
17:27
created

m151217_104446_wysiwygEditorsMenu::up()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 21
Code Lines 14

Duplication

Lines 21
Ratio 100 %
Metric Value
dl 21
loc 21
rs 9.3143
cc 1
eloc 14
nc 1
nop 0
1
<?php
2
3
use app\backend\models\BackendMenu;
4
use yii\db\Migration;
5
6 View Code Duplication
class m151217_104446_wysiwygEditorsMenu extends Migration
2 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
Coding Style Compatibility introduced by
PSR1 recommends that each class must be in a namespace of at least one level to avoid collisions.

You can fix this by adding a namespace to your class:

namespace YourVendor;

class YourClass { }

When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.

Loading history...
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' => 'Wysiwyg editors',
19
                'route' => '/core/backend-wysiwyg/index',
20
                'icon' => 'pencil-square-o',
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
    public function down()
31
    {
32
        $this->delete(
33
            BackendMenu::tableName(),
34
            [
35
                'route' => '/core/backend-wysiwyg/index'
36
            ]
37
        );
38
    }
39
40
    /*
41
    // Use safeUp/safeDown to run migration code within a transaction
42
    public function safeUp()
43
    {
44
    }
45
46
    public function safeDown()
47
    {
48
    }
49
    */
50
}
51