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

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

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

@@ 430-456 (lines=27) @@
427
                }
428
429
                $params = $parent->images;
430
                if (!empty($params)) {
431
                    $rows = [];
432
                    foreach ($params as $param) {
433
                        $rows[] = [
434
                            $param['object_id'],
435
                            $model->id,
436
                            $param['filename'],
437
                            $param['image_title'],
438
                            $param['image_alt'],
439
                            $param['sort_order'],
440
                        ];
441
                    }
442
443
                    Yii::$app->db->createCommand()->batchInsert(
444
                        Image::tableName(),
445
                        [
446
                            'object_id',
447
                            'object_model_id',
448
                            'filename',
449
                            'image_title',
450
                            'image_alt',
451
                            'sort_order',
452
                        ],
453
                        $rows
454
                    )->execute();
455
456
                }
457
            }
458
        }
459
    }
@@ 521-545 (lines=25) @@
518
                    'object_model_id' => $model->id
519
                ]
520
            )->all();
521
            if (!empty($params)) {
522
                $rows = [];
523
                foreach ($params as $param) {
524
                    $rows[] = [
525
                        $param['object_id'],
526
                        $newModel->id,
527
                        $param['filename'],
528
                        $param['image_title'],
529
                        $param['image_alt'],
530
                        $param['sort_order'],
531
                    ];
532
                }
533
                Yii::$app->db->createCommand()->batchInsert(
534
                    Image::tableName(),
535
                    [
536
                        'object_id',
537
                        'object_model_id',
538
                        'filename',
539
                        'image_title',
540
                        'image_alt',
541
                        'sort_order',
542
                    ],
543
                    $rows
544
                )->execute();
545
            }
546
            $newModelProps = [];
547
            foreach (array_keys($model->propertyGroups) as $key) {
548
                $opg = new ObjectPropertyGroup();