Code Duplication    Length = 18-28 lines in 2 locations

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

@@ 4264-4291 (lines=28) @@
4261
     * @param string $lastConnectionDate
4262
     * @return array     users
4263
     */
4264
    public static function get_users_followed_by_drh(
4265
        $userId,
4266
        $userStatus = 0,
4267
        $getOnlyUserId = false,
4268
        $getSql = false,
4269
        $getCount = false,
4270
        $from = null,
4271
        $numberItems = null,
4272
        $column = null,
4273
        $direction = null,
4274
        $active = null,
4275
        $lastConnectionDate = null
4276
    ) {
4277
        return self::getUsersFollowedByUser(
4278
            $userId,
4279
            $userStatus,
4280
            $getOnlyUserId,
4281
            $getSql,
4282
            $getCount,
4283
            $from,
4284
            $numberItems,
4285
            $column,
4286
            $direction,
4287
            $active,
4288
            $lastConnectionDate,
4289
            DRH
4290
        );
4291
    }
4292
4293
    /**
4294
    * Get users followed by human resource manager
@@ 4992-5009 (lines=18) @@
4989
     * @param string $lastConnectionDate
4990
     * @return array     users
4991
     */
4992
    public static function getUsersFollowedByStudentBoss(
4993
        $userId,
4994
        $userStatus = 0,
4995
        $getOnlyUserId = false,
4996
        $getSql = false,
4997
        $getCount = false,
4998
        $from = null,
4999
        $numberItems = null,
5000
        $column = null,
5001
        $direction = null,
5002
        $active = null,
5003
        $lastConnectionDate = null
5004
    ) {
5005
        return self::getUsersFollowedByUser(
5006
            $userId,
5007
            $userStatus,
5008
            $getOnlyUserId,
5009
            $getSql,
5010
            $getCount,
5011
            $from,
5012
            $numberItems,