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 = 5-6 lines in 2 locations

application/backend/controllers/SliderController.php 1 location

@@ 104-109 (lines=6) @@
101
            $abstractModel->load($post);
102
            if ($abstractModel->validate()) {
103
                $model->params = $abstractModel->serialize();
104
                if ($model->save()) {
105
                    return $this->redirectUser($model->id, true, 'index', 'update');
106
107
                } else {
108
                    Yii::$app->session->setFlash('error', Yii::t('app', 'Cannot save data'));
109
                }
110
            } else {
111
                Yii::$app->session->setFlash('error', Yii::t('app', 'Cannot save data'));
112
            }

application/backend/controllers/SpamCheckerController.php 1 location

@@ 59-63 (lines=5) @@
56
        }
57
        $post = Yii::$app->request->post();
58
        if ($model->load($post) && $model->validate()) {
59
            if ($model->save()) {
60
                return $this->redirectUser($model->id);
61
            } else {
62
                Yii::$app->session->setFlash('error', Yii::t('app', 'Cannot save data'));
63
            }
64
        }
65
        return $this->render('spam-checker-form', ['model' => $model]);
66
    }