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

routes/tree.php 2 locations

@@ 111-117 (lines=7) @@
108
        $delivery = getDeliveryWithRevision($id, $p1);
109
    }
110
111
    if (!$delivery) {
112
       doRegisterAction($app, $user, $organization, 'tree', 1, 'download_error', 'no delivery',
113
               null, null, null, $eventId, $groupId, null, null, $id,
114
               $delivery['current_revision_id'], null, null);
115
       $app->flash('home_error', 'no_delivery');
116
       $app->redirect($app->request->getReferrer());
117
    }
118
    $file = $preferences['upload.folder'] . $delivery['download_path'];
119
120
    if (!file_exists($file)) {
@@ 120-126 (lines=7) @@
117
    }
118
    $file = $preferences['upload.folder'] . $delivery['download_path'];
119
120
    if (!file_exists($file)) {
121
       doRegisterAction($app, $user, $organization, 'tree', 1, 'download_error', 'no document',
122
               null, null, null, $eventId, $groupId, null, null, $id,
123
               $delivery['current_revision_id'], null, null);
124
       $app->flash('home_error', 'no_document');
125
       $app->redirect($app->request->getReferrer());
126
    }
127
128
    $res = $app->response();
129
    $res['Content-Description'] = 'File Transfer';