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 = 16-18 lines in 2 locations

routes/event.php 1 location

@@ 249-266 (lines=18) @@
246
        $app->redirect($app->urlFor('manageitem', array('id' => $id, 'profileid' => $_POST['profile'], 'actid' => $actid )));
247
    }
248
249
    if (isset($_POST['up']) || isset($_POST['down'])) {
250
        if (isset($_POST['up'])) {
251
            $item1 = getItemById($organization['id'], $_POST['up']);
252
            $item2 = getPreviousItem($organization['id'], $_POST['up'], $profileid);
253
        }
254
        else {
255
            $item1 = getItemById($organization['id'], $_POST['down']);
256
            $item2 = getNextItem($organization['id'], $_POST['down'], $profileid);
257
        }
258
259
        if (!$item1 || !$item2) {
260
            $app->redirect($app->urlFor('login'));
261
        }
262
263
        $order_nr = $item1['order_nr'];
264
        $item1->set('order_nr', $item2['order_nr'])->save();
265
        $item2->set('order_nr', $order_nr)->save();
266
    }
267
268
    if (isset($_POST['new'])) {
269
        $lines = explode("\n", $_POST['newelements']);

routes/manage.php 1 location

@@ 556-571 (lines=16) @@
553
        $app->redirect($app->urlFor('login'));
554
    }
555
556
    if (isset($_POST['up']) || isset($_POST['down'])) {
557
        if (isset($_POST['up'])) {
558
            $snap1 = getSnapshotById($organization['id'], $_POST['up']);
559
            $snap2 = getNextSnapshot($organization['id'], $_POST['up']);
560
        }
561
        else {
562
            $snap1 = getSnapshotById($organization['id'], $_POST['down']);
563
            $snap2 = getPreviousSnapshot($organization['id'], $_POST['down']);
564
        }
565
        if (!$snap1 || !$snap2) {
566
            $app->redirect($app->urlFor('login'));
567
        }
568
        $order_nr = $snap1['order_nr'];
569
        $snap1->set('order_nr', $snap2['order_nr'])->save();
570
        $snap2->set('order_nr', $order_nr)->save();
571
    }
572
573
    if (isset($_POST['delete'])) {
574