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

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

@@ 109-116 (lines=8) @@
106
        $part_id = R::store($part);
107
108
        //add the badge to the project
109
        foreach ($data['badges'] as $badge_id) {
110
            //TODO insert those badge as first hidden post
111
            $pb = R::dispense("partbadge");
112
                $pb->badge = $badge_id;
113
                $pb->part = $part_id;
114
                $pb->inserttime = date('Y-m-d H:i:s');
115
            $tmp = R::store($pb);
116
        }
117
118
        //add the workspace created to the user as owner
119
        $usw = R::dispense("userworkspace");
@@ 213-219 (lines=7) @@
210
            }
211
        }
212
213
        foreach($data['badges'] as $badge_id){ //TODO va fixato nelle api
214
            $pb = R::dispense("partbadge");
215
                $pb->badge = $badge_id;
216
                $pb->part = $part_id;
217
                $pb->inserttime = date('Y-m-d H:i:s');
218
            $tmp = R::store($pb);
219
        }
220
221
        $res = ["id"=>$part_id];
222
        $headers = [];