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

@@ 499-505 (lines=7) @@
496
            ['and', 'object_model_id = :id', ['in', 'category_id', $remove]],
497
            [':id' => $this->id]
498
        )->execute();
499
        if (!empty($add)) {
500
            Yii::$app->db->createCommand()->batchInsert(
501
                $object->categories_table_name,
502
                ['category_id', 'object_model_id'],
503
                $add
504
            )->execute();
505
        }
506
507
508
    }