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

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

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

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