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

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