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 = 16-20 lines in 3 locations

application/extensions/DefaultTheme/backend/ConfigurationController.php 2 locations

@@ 56-75 (lines=20) @@
53
        );
54
    }
55
56
    public function actionEditPart($id='')
57
    {
58
        $model = $this->loadModel(ThemeParts::className(), $id, true);
59
        if ($model->isNewRecord === true) {
60
            $model->loadDefaultValues();
61
        }
62
63
        if ($model->load(Yii::$app->request->post()) && $model->validate()) {
64
            if ($model->save()) {
65
                return $this->redirectUser($model->id, true, 'index', 'edit-part');
66
            }
67
        }
68
69
        return $this->render(
70
            'edit-part',
71
            [
72
                'model' => $model,
73
            ]
74
        );
75
    }
76
77
    public function actionDeletePart($id)
78
    {
@@ 88-107 (lines=20) @@
85
        return $this->redirect(['index']);
86
    }
87
88
    public function actionEditVariation($id='')
89
    {
90
        $model = $this->loadModel(ThemeVariation::className(), $id, true);
91
        if ($model->isNewRecord === true) {
92
            $model->loadDefaultValues();
93
        }
94
95
        if ($model->load(Yii::$app->request->post()) && $model->validate()) {
96
            if ($model->save()) {
97
                return $this->redirectUser($model->id, true, 'index', 'edit-variation');
98
            }
99
        }
100
101
        return $this->render(
102
            'edit-variation',
103
            [
104
                'model' => $model,
105
            ]
106
        );
107
    }
108
109
    public function actionDeleteVariation($id)
110
    {

application/modules/shop/backend/AddonsController.php 1 location

@@ 103-118 (lines=16) @@
100
     * @return string|\yii\web\Response
101
     * @throws NotFoundHttpException
102
     */
103
    public function actionEditCategory($id=null)
104
    {
105
        $model = $this->loadModel(AddonCategory::className(), $id, true);
106
107
        if ($model->load(Yii::$app->request->post()) && $model->validate()) {
108
            if ($model->save()) {
109
                return $this->redirectUser($model->id, true, 'index', 'edit-category');
110
            }
111
        }
112
        return $this->render(
113
            'edit-category',
114
            [
115
                'model' => $model,
116
            ]
117
        );
118
    }
119
120
    /**
121
     * Shows list of Addons binded to specified AddonCategory