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

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

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