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.

Code Duplication    Length = 22-23 lines in 3 locations

application/backend/controllers/BackendMenuController.php 1 location

@@ 45-67 (lines=23) @@
42
        ];
43
    }
44
45
    public function actionIndex($parent_id = 1)
46
    {
47
        $searchModel = new BackendMenu();
48
        $searchModel->parent_id = $parent_id;
49
50
        $params = Yii::$app->request->get();
51
52
        $dataProvider = $searchModel->search($params);
53
54
        $model = null;
55
        if ($parent_id > 0) {
56
            $model = BackendMenu::findOne($parent_id);
57
        }
58
59
        return $this->render(
60
            'index',
61
            [
62
                'dataProvider' => $dataProvider,
63
                'searchModel' => $searchModel,
64
                'model' => $model,
65
            ]
66
        );
67
    }
68
69
    public function actionEdit($parent_id = null, $id = null)
70
    {

application/modules/page/backend/PageController.php 1 location

@@ 89-110 (lines=22) @@
86
        ];
87
    }
88
89
    public function actionIndex($parent_id = 1)
90
    {
91
        $searchModel = new Page();
92
        $searchModel->parent_id = $parent_id;
93
94
        $params = Yii::$app->request->get();
95
        $dataProvider = $searchModel->search($params);
96
97
        $model = null;
98
        if ($parent_id > 0) {
99
            $model = Page::findOne($parent_id);
100
        }
101
102
        return $this->render(
103
            'index',
104
            [
105
                'dataProvider' => $dataProvider,
106
                'searchModel' => $searchModel,
107
                'model' => $model,
108
            ]
109
        );
110
    }
111
112
    public function actionEdit($parent_id, $id = null)
113
    {

application/modules/shop/controllers/BackendCategoryController.php 1 location

@@ 87-109 (lines=23) @@
84
        ];
85
    }
86
87
    public function actionIndex($parent_id = 0)
88
    {
89
        $searchModel = new Category();
90
        $searchModel->parent_id = $parent_id;
91
92
        $params = Yii::$app->request->get();
93
94
        $dataProvider = $searchModel->search($params);
95
96
        $model = null;
97
        if ($parent_id > 0) {
98
            $model = Category::findOne($parent_id);
99
        }
100
101
        return $this->render(
102
            'index',
103
            [
104
                'dataProvider' => $dataProvider,
105
                'searchModel' => $searchModel,
106
                'model' => $model,
107
            ]
108
        );
109
    }
110
111
    public function actionEdit($parent_id = null, $id = null)
112
    {