Code Duplication    Length = 18-28 lines in 2 locations

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

@@ 4187-4214 (lines=28) @@
4184
     * @param string $lastConnectionDate
4185
     * @return array     users
4186
     */
4187
    public static function get_users_followed_by_drh(
4188
        $userId,
4189
        $userStatus = 0,
4190
        $getOnlyUserId = false,
4191
        $getSql = false,
4192
        $getCount = false,
4193
        $from = null,
4194
        $numberItems = null,
4195
        $column = null,
4196
        $direction = null,
4197
        $active = null,
4198
        $lastConnectionDate = null
4199
    ) {
4200
        return self::getUsersFollowedByUser(
4201
            $userId,
4202
            $userStatus,
4203
            $getOnlyUserId,
4204
            $getSql,
4205
            $getCount,
4206
            $from,
4207
            $numberItems,
4208
            $column,
4209
            $direction,
4210
            $active,
4211
            $lastConnectionDate,
4212
            DRH
4213
        );
4214
    }
4215
4216
    /**
4217
    * Get users followed by human resource manager
@@ 5209-5226 (lines=18) @@
5206
     * @param string $lastConnectionDate
5207
     * @return array     users
5208
     */
5209
    public static function getUsersFollowedByStudentBoss(
5210
        $userId,
5211
        $userStatus = 0,
5212
        $getOnlyUserId = false,
5213
        $getSql = false,
5214
        $getCount = false,
5215
        $from = null,
5216
        $numberItems = null,
5217
        $column = null,
5218
        $direction = null,
5219
        $active = null,
5220
        $lastConnectionDate = null
5221
    ){
5222
        return self::getUsersFollowedByUser(
5223
            $userId,
5224
            $userStatus,
5225
            $getOnlyUserId,
5226
            $getSql,
5227
            $getCount,
5228
            $from,
5229
            $numberItems,