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 = 29-36 lines in 2 locations

application/backend/controllers/PropertiesController.php 1 location

@@ 257-292 (lines=36) @@
254
            }
255
256
            $save_result = $model->save();
257
            if ($save_result) {
258
                $this->runAction('save-info');
259
                Yii::$app->session->setFlash('success', Yii::t('app', 'Record has been saved'));
260
                $returnUrl = Yii::$app->request->get(
261
                    'returnUrl',
262
                    [
263
                        '/backend/properties/group',
264
                        'id' => $property_group_id,
265
                    ]
266
                );
267
                switch (Yii::$app->request->post('action', 'save')) {
268
                    case 'next':
269
                        return $this->redirect(
270
                            [
271
                                '/backend/properties/edit-property',
272
                                'property_group_id' => $property_group_id,
273
                                'returnUrl' => $returnUrl,
274
                            ]
275
                        );
276
                    case 'back':
277
                        return $this->redirect($returnUrl);
278
                    default:
279
                        return $this->redirect(
280
                            Url::toRoute(
281
                                [
282
                                    '/backend/properties/edit-property',
283
                                    'id' => $model->id,
284
                                    'property_group_id' => $model->property_group_id,
285
                                    'returnUrl' => $returnUrl,
286
                                ]
287
                            )
288
                        );
289
                }
290
            } else {
291
                Yii::$app->session->setFlash('error', Yii::t('app', 'Cannot save data'));
292
            }
293
        }
294
295
        $searchModel = new PropertyStaticValues();

application/backend/controllers/NavigationController.php 1 location

@@ 121-149 (lines=29) @@
118
119
        $post = Yii::$app->request->post();
120
        if ($model->load($post) && $model->validate()) {
121
            if ($model->save()) {
122
                Yii::$app->session->setFlash('info', Yii::t('app', 'Object saved'));
123
                $returnUrl = Yii::$app->request->get('returnUrl', ['/backend/navigation/index', 'id' => $model->id]);
124
                switch (Yii::$app->request->post('action', 'save')) {
125
                    case 'next':
126
                        return $this->redirect(
127
                            [
128
                                '/backend/navigation/edit',
129
                                'parent_id' => $model->parent_id,
130
                                'returnUrl' => $returnUrl,
131
                            ]
132
                        );
133
                    case 'back':
134
                        return $this->redirect($returnUrl);
135
                    default:
136
                        return $this->redirect(
137
                            Url::toRoute(
138
                                [
139
                                    '/backend/navigation/edit',
140
                                    'id' => $model->id,
141
                                    'parent_id' => $model->parent_id,
142
                                    'returnUrl' => $returnUrl,
143
                                ]
144
                            )
145
                        );
146
                }
147
            } else {
148
                \Yii::$app->session->setFlash('error', Yii::t('app', 'Cannot update data'));
149
            }
150
        }
151
152
        return $this->render(