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 = 14-20 lines in 4 locations

application/backend/controllers/FormController.php 1 location

@@ 262-275 (lines=14) @@
259
        );
260
    }
261
262
    public function actionDelete($id = null)
263
    {
264
        if ((null === $id) || (null === $model = Form::findOne($id))) {
265
            throw new NotFoundHttpException;
266
        }
267
268
        if (!$model->delete()) {
269
            Yii::$app->session->setFlash('error', Yii::t('app', 'Object not removed'));
270
        } else {
271
            Yii::$app->session->setFlash('info', Yii::t('app', 'Object removed'));
272
        }
273
274
        return $this->redirect(Url::toRoute('index'));
275
    }
276
277
    public function actionRemoveAll()
278
    {

application/backend/controllers/ViewController.php 1 location

@@ 158-171 (lines=14) @@
155
        );
156
    }
157
158
    public function actionDelete($id = null)
159
    {
160
        if ((null === $id) || (null === $model = View::findOne($id))) {
161
            throw new NotFoundHttpException;
162
        }
163
164
        if (!$model->delete()) {
165
            Yii::$app->session->setFlash('error', Yii::t('app', 'Object not removed'));
166
        } else {
167
            Yii::$app->session->setFlash('info', Yii::t('app', 'Object removed'));
168
        }
169
170
        return $this->redirect(Url::toRoute('index'));
171
    }
172
173
    public function actionRemoveAll()
174
    {

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

@@ 123-141 (lines=19) @@
120
121
122
123
    public function actionDelete($id = null)
124
    {
125
        if ((null === $id) || (null === $model = Discount::findOne($id))) {
126
            throw new NotFoundHttpException;
127
        }
128
129
        if (!$model->delete()) {
130
            Yii::$app->session->setFlash('info', Yii::t('app', 'The object is placed in the cart'));
131
        } else {
132
            Yii::$app->session->setFlash('info', Yii::t('app', 'Object removed'));
133
        }
134
135
        return $this->redirect(
136
            Yii::$app->request->get(
137
                'returnUrl',
138
                '/shop/backend-discount/index'
139
            )
140
        );
141
    }
142
143
    public function actionRemoveAll()
144
    {

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

@@ 410-429 (lines=20) @@
407
        ];
408
    }
409
410
    public function actionDelete($id = null)
411
    {
412
        /** @var Order $model */
413
        if ((null === $id) || (null === $model = Order::findOne($id))) {
414
            throw new NotFoundHttpException;
415
        }
416
417
        if (!$model->delete()) {
418
            Yii::$app->session->setFlash('info', Yii::t('app', 'The object is placed in the cart'));
419
        } else {
420
            Yii::$app->session->setFlash('info', Yii::t('app', 'Object removed'));
421
        }
422
423
        return $this->redirect(
424
            Yii::$app->request->get(
425
                'returnUrl',
426
                Url::toRoute(['index'])
427
            )
428
        );
429
    }
430
431
    public function actionDeleteOrderItem($id)
432
    {