Code Duplication    Length = 18-28 lines in 2 locations

main/inc/lib/usermanager.lib.php 2 locations

@@ 3867-3894 (lines=28) @@
3864
     * @param string $lastConnectionDate
3865
     * @return array     users
3866
     */
3867
    public static function get_users_followed_by_drh(
3868
        $userId,
3869
        $userStatus = 0,
3870
        $getOnlyUserId = false,
3871
        $getSql = false,
3872
        $getCount = false,
3873
        $from = null,
3874
        $numberItems = null,
3875
        $column = null,
3876
        $direction = null,
3877
        $active = null,
3878
        $lastConnectionDate = null
3879
    ) {
3880
        return self::getUsersFollowedByUser(
3881
            $userId,
3882
            $userStatus,
3883
            $getOnlyUserId,
3884
            $getSql,
3885
            $getCount,
3886
            $from,
3887
            $numberItems,
3888
            $column,
3889
            $direction,
3890
            $active,
3891
            $lastConnectionDate,
3892
            DRH
3893
        );
3894
    }
3895
3896
    /**
3897
    * Get users followed by human resource manager
@@ 4872-4889 (lines=18) @@
4869
     * @param string $lastConnectionDate
4870
     * @return array     users
4871
     */
4872
    public static function getUsersFollowedByStudentBoss(
4873
        $userId,
4874
        $userStatus = 0,
4875
        $getOnlyUserId = false,
4876
        $getSql = false,
4877
        $getCount = false,
4878
        $from = null,
4879
        $numberItems = null,
4880
        $column = null,
4881
        $direction = null,
4882
        $active = null,
4883
        $lastConnectionDate = null
4884
    ){
4885
        return self::getUsersFollowedByUser(
4886
            $userId,
4887
            $userStatus,
4888
            $getOnlyUserId,
4889
            $getSql,
4890
            $getCount,
4891
            $from,
4892
            $numberItems,