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

routes/manage.php 1 location

@@ 756-771 (lines=16) @@
753
        max('order_nr');
754
}
755
756
function getAutoCleaningFolders($orgId) {
757
    $data = ORM::for_table('folder_delivery')->
758
        select('folder.*')->
759
        select('category.display_name', 'category_display_name')->
760
        select_expr('COUNT(*)', 'total')->
761
        inner_join('folder', array('folder_delivery.folder_id', '=', 'folder.id'))->
762
        inner_join('category', array('folder.category_id', '=', 'category.id'))->
763
        where('category.organization_id', $orgId)->
764
        where('folder.auto_clean', 1)->
765
        where_null('folder_delivery.snapshot_id')->
766
        group_by('folder_delivery.folder_id')->
767
        order_by_asc('folder.category_id')->
768
        find_array();
769
770
    return $data;
771
}
772
773
function archiveFolders($orgId, $snapId, $folders) {
774

routes/personal.php 1 location

@@ 606-619 (lines=14) @@
603
        find_one();
604
}
605
606
function getProfilesByUser($orgId, $personId) {
607
    return ORM::for_table('profile')->
608
                    select('profile.*')->
609
                    select('profile_group.display_name_neutral')->
610
                    select('profile_group.display_name_male')->
611
                    select('profile_group.display_name_female')->
612
                    select('profile_group.description', 'profile_group_description')->
613
                    inner_join('profile_group', array('profile_group.id', '=', 'profile.profile_group_id'))->
614
                    inner_join('person_profile', array('person_profile.profile_id', '=', 'profile.id'))->
615
                    where('person_profile.person_id', $personId)->
616
                    where('profile_group.organization_id', $orgId)->
617
                    order_by_asc('profile_group.display_name_neutral')->
618
                    find_array();
619
}
620
621
function getProfilesListByUser($orgId, $personId) {
622
    $data = ORM::for_table('profile')->