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

applications/workspace/src/BitPrepared/Bundle/D1b0Workspace/Controller/V1/WorkspaceController.php 2 locations

@@ 445-450 (lines=6) @@
442
            //RIMUOVO GLI ELEMENTI CHE HO MODIFICATO
443
        }
444
445
        foreach ($delete_badge as $d) {
446
            //RIMUOVO REALMENTE DAL DB LE COSE CHE HO LASCIATO FUORI DALLA PUT (PRESENTI NEL DB MA NON NELLA NUOVA VERSIONE ODIO LE PUT)
447
            $badge = R::load("partbadge", $d['id']); //FORSE RILOADARLI NON È NECESSARIO
448
            $badge->deleted = true;
449
            R::store($badge);
450
        }
451
452
        $res = ["id"=>$part_id];
453
        $headers = [];
@@ 465-470 (lines=6) @@
462
463
464
        $delete_badge = R::findAll("partbadge", "WHERE part = ?", [$part_id]);
465
        foreach ($delete_badge as $d) {
466
            $badge = R::load("partbadge", [$d->id]); //FORSE RILOADARLI NON È NECESSARIO BASTA FARE $d->deleted=true; e store($d)
467
                $badge->deleted = true;
468
            R::store($badge);
469
        }
470
471
        //TODO soft delete resource!
472
473
        $response = new Response();