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

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

@@ 421-427 (lines=7) @@
418
                        $model->id
419
                    ];
420
                }
421
                if (!empty($add)) {
422
                    Yii::$app->db->createCommand()->batchInsert(
423
                        $object->categories_table_name,
424
                        ['category_id', 'object_model_id'],
425
                        $add
426
                    )->execute();
427
                }
428
429
                $params = $parent->images;
430
                if (!empty($params)) {

application/modules/shop/models/Product.php 1 location

@@ 490-496 (lines=7) @@
487
            ['and', 'object_model_id = :id', ['in', 'category_id', $remove]],
488
            [':id' => $this->id]
489
        )->execute();
490
        if (!empty($add)) {
491
            Yii::$app->db->createCommand()->batchInsert(
492
                $object->categories_table_name,
493
                ['category_id', 'object_model_id'],
494
                $add
495
            )->execute();
496
        }
497
498
499
    }