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

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

@@ 117-123 (lines=7) @@
114
        $part_id = R::store($part);
115
116
        //add the badge to the project
117
        foreach ($data['badges'] as $badge_id) {
118
            $pb = R::dispense("partbadge");
119
                $pb->badge = $badge_id;
120
                $pb->part = $part_id;
121
                $pb->inserttime = date($this->DATE_FORMAT);
122
            $tmp = R::store($pb);
123
        }
124
125
        //add the workspace created to the user as owner
126
        $usw = R::dispense("userworkspace");
@@ 317-323 (lines=7) @@
314
            $resource_id = R::store($resource);
315
        }
316
317
        foreach ($data['badges'] as $badge_id) { //TODO va fixato nelle api
318
            $pb = R::dispense("partbadge");
319
                $pb->badge = $badge_id;
320
                $pb->part = $part_id;
321
                $pb->inserttime = date($this->DATE_FORMAT);
322
            $tmp = R::store($pb);
323
        }
324
325
        $res = ["id"=>$part_id];
326
        $headers = [];