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

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