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

@@ 404-410 (lines=7) @@
401
                        $model->id
402
                    ];
403
                }
404
                if (!empty($add)) {
405
                    Yii::$app->db->createCommand()->batchInsert(
406
                        $object->categories_table_name,
407
                        ['category_id', 'object_model_id'],
408
                        $add
409
                    )->execute();
410
                }
411
412
                $params = $parent->images;
413
                if (!empty($params)) {

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

@@ 472-478 (lines=7) @@
469
            ['and', 'object_model_id = :id', ['in', 'category_id', $remove]],
470
            [':id' => $this->id]
471
        )->execute();
472
        if (!empty($add)) {
473
            Yii::$app->db->createCommand()->batchInsert(
474
                $object->categories_table_name,
475
                ['category_id', 'object_model_id'],
476
                $add
477
            )->execute();
478
        }
479
480
481
    }