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 = 25-27 lines in 3 locations

application/modules/page/backend/PageController.php 1 location

@@ 294-318 (lines=25) @@
291
                    'object_model_id' => $model->id
292
                ]
293
            )->all();
294
            if (!empty($params)) {
295
                $rows = [];
296
                foreach ($params as $param) {
297
                    $rows[] = [
298
                        $param['object_id'],
299
                        $newModel->id,
300
                        $param['filename'],
301
                        $param['image_title'],
302
                        $param['image_alt'],
303
                        $param['sort_order'],
304
                    ];
305
                }
306
                Yii::$app->db->createCommand()->batchInsert(
307
                    Image::tableName(),
308
                    [
309
                        'object_id',
310
                        'object_model_id',
311
                        'filename',
312
                        'image_title',
313
                        'image_alt',
314
                        'sort_order',
315
                    ],
316
                    $rows
317
                )->execute();
318
            }
319
            $newModelProps = [];
320
            foreach (array_keys($model->propertyGroups) as $key) {
321
                $opg = new ObjectPropertyGroup();

application/modules/shop/controllers/BackendProductController.php 2 locations

@@ 413-439 (lines=27) @@
410
                }
411
412
                $params = $parent->images;
413
                if (!empty($params)) {
414
                    $rows = [];
415
                    foreach ($params as $param) {
416
                        $rows[] = [
417
                            $param['object_id'],
418
                            $model->id,
419
                            $param['filename'],
420
                            $param['image_title'],
421
                            $param['image_alt'],
422
                            $param['sort_order'],
423
                        ];
424
                    }
425
426
                    Yii::$app->db->createCommand()->batchInsert(
427
                        Image::tableName(),
428
                        [
429
                            'object_id',
430
                            'object_model_id',
431
                            'filename',
432
                            'image_title',
433
                            'image_alt',
434
                            'sort_order',
435
                        ],
436
                        $rows
437
                    )->execute();
438
439
                }
440
            }
441
        }
442
    }
@@ 504-528 (lines=25) @@
501
                    'object_model_id' => $model->id
502
                ]
503
            )->all();
504
            if (!empty($params)) {
505
                $rows = [];
506
                foreach ($params as $param) {
507
                    $rows[] = [
508
                        $param['object_id'],
509
                        $newModel->id,
510
                        $param['filename'],
511
                        $param['image_title'],
512
                        $param['image_alt'],
513
                        $param['sort_order'],
514
                    ];
515
                }
516
                Yii::$app->db->createCommand()->batchInsert(
517
                    Image::tableName(),
518
                    [
519
                        'object_id',
520
                        'object_model_id',
521
                        'filename',
522
                        'image_title',
523
                        'image_alt',
524
                        'sort_order',
525
                    ],
526
                    $rows
527
                )->execute();
528
            }
529
            $newModelProps = [];
530
            foreach (array_keys($model->propertyGroups) as $key) {
531
                $opg = new ObjectPropertyGroup();