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

applications/workspace/src/BitPrepared/Bundle/D1b0Workspace/Controller/V1/WorkspaceController.php 1 location

@@ 61-70 (lines=10) @@
58
                                          ON uws.workspace = ws.id
59
                                          WHERE uws.user = ?",[$user_id]);
60
        $list = [];
61
        foreach ($workspaces as $ws) {
62
            array_push($list, [
63
                "id"=>intval($ws['id']),
64
                "title"=>$ws['title'],
65
                "description"=>$ws['description'],
66
                "environment"=>intval($ws['environment']),
67
                "point"=>0, //TODO fare una view con i point giĆ  calcolati per il ws
68
                "completed"=>boolval($ws['completed']),
69
            ]);
70
        }
71
        $headers = [];
72
        return JsonResponse::create($list, 200, $headers)->setSharedMaxAge(300);
73

applications/workspace/src/BitPrepared/Bundle/D1b0Workspace/Controller/V1/UserController.php 1 location

@@ 58-71 (lines=14) @@
55
56
        $badges = R::findAll('userbadgecomplete', 'WHERE user = ?', [$id]);
57
        $badgeList = [];
58
        foreach ($badges as $badge) {
59
            array_push($badgeList,
60
                [
61
                    'badge'=>[
62
                        'id'=>intval($badge['id']),
63
                        'name'=>$badge['name'],
64
                        'description'=>$badge['description'],
65
                        'img'=>$badge['img']
66
                    ],
67
                    'clove'=>intval($badge['clove']),
68
                    'completed'=>boolval($badge['completed'])
69
                ]
70
            );
71
        }
72
        $output['skills'] = $badgeList;
73
        return JsonResponse::create($output, 200, $headers)->setSharedMaxAge(300);
74
    }