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/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
    {

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
    {