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

routes/upload.php 2 locations

@@ 601-613 (lines=13) @@
598
599
})->name('folderstats');
600
601
function getDelivery($deliveryId) {
602
    return ORM::for_table('delivery')->
603
            select('document.download_filename')->
604
            select('file_extension.mime')->
605
            select('document_data.download_path')->
606
            select('document_data.download_filesize')->
607
            inner_join('revision', array('delivery.current_revision_id', '=', 'revision.id'))->
608
            inner_join('document', array('document.id', '=', 'revision.original_document_id'))->
609
            inner_join('file_extension', array('file_extension.id', '=', 'document.extension_id'))->
610
            inner_join('document_data', array('document_data.id', '=', 'document.document_data_id'))->
611
            where('delivery.id', $deliveryId)->
612
            find_one();
613
}
614
615
function getDeliveryWithRevision($deliveryId, $revId) {
616
    return ORM::for_table('delivery')->
@@ 615-628 (lines=14) @@
612
            find_one();
613
}
614
615
function getDeliveryWithRevision($deliveryId, $revId) {
616
    return ORM::for_table('delivery')->
617
        select('document.download_filename')->
618
        select('file_extension.mime')->
619
        select('document_data.download_path')->
620
        select('document_data.download_filesize')->
621
        inner_join('revision', array('delivery.id', '=', 'revision.delivery_id'))->
622
        inner_join('document', array('document.id', '=', 'revision.original_document_id'))->
623
        inner_join('file_extension', array('file_extension.id', '=', 'document.extension_id'))->
624
        inner_join('document_data', array('document_data.id', '=', 'document.document_data_id'))->
625
        where('delivery.id', $deliveryId)->
626
        where('revision.id', $revId)->
627
        find_one();
628
}
629
630
function getPermissionProfiles($folderId, $permission) {
631
    return ORM::for_table('profile')->