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/shop/controllers/BackendProductController.php 2 locations

@@ 441-467 (lines=27) @@
438
                }
439
440
                $params = $parent->images;
441
                if (!empty($params)) {
442
                    $rows = [];
443
                    foreach ($params as $param) {
444
                        $rows[] = [
445
                            $param['object_id'],
446
                            $model->id,
447
                            $param['filename'],
448
                            $param['image_title'],
449
                            $param['image_alt'],
450
                            $param['sort_order'],
451
                        ];
452
                    }
453
454
                    Yii::$app->db->createCommand()->batchInsert(
455
                        Image::tableName(),
456
                        [
457
                            'object_id',
458
                            'object_model_id',
459
                            'filename',
460
                            'image_title',
461
                            'image_alt',
462
                            'sort_order',
463
                        ],
464
                        $rows
465
                    )->execute();
466
467
                }
468
            }
469
        }
470
    }
@@ 533-557 (lines=25) @@
530
                    'object_model_id' => $model->id
531
                ]
532
            )->all();
533
            if (!empty($params)) {
534
                $rows = [];
535
                foreach ($params as $param) {
536
                    $rows[] = [
537
                        $param['object_id'],
538
                        $newModel->id,
539
                        $param['filename'],
540
                        $param['image_title'],
541
                        $param['image_alt'],
542
                        $param['sort_order'],
543
                    ];
544
                }
545
                Yii::$app->db->createCommand()->batchInsert(
546
                    Image::tableName(),
547
                    [
548
                        'object_id',
549
                        'object_model_id',
550
                        'filename',
551
                        'image_title',
552
                        'image_alt',
553
                        'sort_order',
554
                    ],
555
                    $rows
556
                )->execute();
557
            }
558
            $newModelProps = [];
559
            foreach (array_keys($model->propertyGroups) as $key) {
560
                $opg = new ObjectPropertyGroup();

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

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