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/tree.php 1 location

@@ 674-686 (lines=13) @@
671
    return $folders;
672
}
673
674
function getSnapshotsFromFolder($folderId) {
675
    return ORM::for_table('folder_delivery')->
676
            distinct()->
677
            select('snapshot_id')->
678
            select('snapshot.display_name')->
679
            select('snapshot.order_nr')->
680
            inner_join('snapshot', array('snapshot.id', '=', 'folder_delivery.snapshot_id'))->
681
            where_not_null('snapshot_id')->
682
            where('folder_id', $folderId)->
683
            where('snapshot.visible', 1)->
684
            order_by_desc('snapshot.order_nr')->
685
            find_many();
686
}
687
688
function getDeliveriesFromFolders($folders, $userProfiles, &$profileGender, $userId, $snapshot = null) {
689

routes/personal.php 1 location

@@ 787-800 (lines=14) @@
784
                find_array();
785
}
786
787
function getPersonsByOrganization($orgId) {
788
    $data = ORM::for_table('person')->
789
                select('person.id', 'id')->
790
                select('person.display_name')->
791
                select('person.user_name')->
792
                select('person_organization.is_active')->
793
                inner_join('person_organization', array('person_organization.person_id', '=', 'person.id'))->
794
                where('person_organization.organization_id', $orgId)->
795
                order_by_desc('person_organization.is_active')->
796
                order_by_asc('person.display_name')->
797
                find_array();
798
799
    return parseArray($data);
800
}
801
802
function getProfilesByGroup($id, $orgId, $filter = true) {
803
    $data = ORM::for_table('profile')->