Code Duplication    Length = 18-28 lines in 2 locations

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

@@ 4138-4165 (lines=28) @@
4135
     * @param string $lastConnectionDate
4136
     * @return array     users
4137
     */
4138
    public static function get_users_followed_by_drh(
4139
        $userId,
4140
        $userStatus = 0,
4141
        $getOnlyUserId = false,
4142
        $getSql = false,
4143
        $getCount = false,
4144
        $from = null,
4145
        $numberItems = null,
4146
        $column = null,
4147
        $direction = null,
4148
        $active = null,
4149
        $lastConnectionDate = null
4150
    ) {
4151
        return self::getUsersFollowedByUser(
4152
            $userId,
4153
            $userStatus,
4154
            $getOnlyUserId,
4155
            $getSql,
4156
            $getCount,
4157
            $from,
4158
            $numberItems,
4159
            $column,
4160
            $direction,
4161
            $active,
4162
            $lastConnectionDate,
4163
            DRH
4164
        );
4165
    }
4166
4167
    /**
4168
    * Get users followed by human resource manager
@@ 5156-5173 (lines=18) @@
5153
     * @param string $lastConnectionDate
5154
     * @return array     users
5155
     */
5156
    public static function getUsersFollowedByStudentBoss(
5157
        $userId,
5158
        $userStatus = 0,
5159
        $getOnlyUserId = false,
5160
        $getSql = false,
5161
        $getCount = false,
5162
        $from = null,
5163
        $numberItems = null,
5164
        $column = null,
5165
        $direction = null,
5166
        $active = null,
5167
        $lastConnectionDate = null
5168
    ){
5169
        return self::getUsersFollowedByUser(
5170
            $userId,
5171
            $userStatus,
5172
            $getOnlyUserId,
5173
            $getSql,
5174
            $getCount,
5175
            $from,
5176
            $numberItems,