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

routes/event.php 2 locations

@@ 293-307 (lines=15) @@
290
        $app->redirect($app->request()->getPathInfo());
291
    }
292
293
    if (isset($_POST['delete']) && isset($_POST['item'])) {
294
        ORM::get_db()->beginTransaction();
295
        if (deleteEventItems($id, $_POST['item'])) {
296
            if ($event['folder_id']) {
297
                checkItemUpdateStatusByFolder($event['folder_id']);
298
            }
299
            ORM::get_db()->commit();
300
            $app->flash('save_ok', 'ok');
301
        }
302
        else {
303
            ORM::get_db()->rollBack();
304
            $app->flash('save_error', 'error');
305
        }
306
        $app->redirect($app->request()->getPathInfo());
307
    }
308
309
    if (isset($_POST['order'])) {
310
        ORM::get_db()->beginTransaction();
@@ 427-441 (lines=15) @@
424
        $item2->set('order_nr', $order_nr)->save();
425
    }
426
427
    if (isset($_POST['delete'])) {
428
        ORM::get_db()->beginTransaction();
429
        if (deleteEventItems($id, $_POST['item'])) {
430
            if ($event['folder_id']) {
431
                checkItemUpdateStatusByFolder($event['folder_id']);
432
            }
433
            ORM::get_db()->commit();
434
            $app->flash('save_ok', 'ok');
435
        }
436
        else {
437
            ORM::get_db()->rollBack();
438
            $app->flash('save_error', 'error');
439
        }
440
        $app->redirect($app->request()->getPathInfo());
441
    }
442
443
    $uploadAs = array();
444