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

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

@@ 493-495 (lines=3) @@
490
        $newModel->name .= ' (copy ' . date('Y-m-d h:i:s', $time) . ')';
491
        $newModel->slug .= '-copy-' . date('Ymdhis', $time);
492
        $newModel->id = null;
493
        if ($newModel->validate() === false) {
494
            $newModel->slug = substr(uniqid() . "-" . $model->slug, 0, 80);
495
        }
496
        if ($newModel->save()) {
497
            $object = Object::getForClass(get_class($newModel));
498
            // save categories

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

@@ 292-294 (lines=3) @@
289
        $newModel->slug .= '-copy-' . date('Ymdhis', $time);
290
        $newModel->title .= '-copy-' . date('Ymdhis', $time);
291
        $newModel->id = null;
292
        if ($newModel->validate() === false) {
293
            $newModel->slug = substr(uniqid() . "-" . $model->slug, 0, 80);
294
        }
295
        if ($newModel->save()) {
296
            $object = Object::getForClass(get_class($newModel));
297
            $query = new Query();