Code Duplication    Length = 18-28 lines in 2 locations

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

@@ 4249-4276 (lines=28) @@
4246
     * @param string $lastConnectionDate
4247
     * @return array     users
4248
     */
4249
    public static function get_users_followed_by_drh(
4250
        $userId,
4251
        $userStatus = 0,
4252
        $getOnlyUserId = false,
4253
        $getSql = false,
4254
        $getCount = false,
4255
        $from = null,
4256
        $numberItems = null,
4257
        $column = null,
4258
        $direction = null,
4259
        $active = null,
4260
        $lastConnectionDate = null
4261
    ) {
4262
        return self::getUsersFollowedByUser(
4263
            $userId,
4264
            $userStatus,
4265
            $getOnlyUserId,
4266
            $getSql,
4267
            $getCount,
4268
            $from,
4269
            $numberItems,
4270
            $column,
4271
            $direction,
4272
            $active,
4273
            $lastConnectionDate,
4274
            DRH
4275
        );
4276
    }
4277
4278
    /**
4279
    * Get users followed by human resource manager
@@ 4977-4994 (lines=18) @@
4974
     * @param string $lastConnectionDate
4975
     * @return array     users
4976
     */
4977
    public static function getUsersFollowedByStudentBoss(
4978
        $userId,
4979
        $userStatus = 0,
4980
        $getOnlyUserId = false,
4981
        $getSql = false,
4982
        $getCount = false,
4983
        $from = null,
4984
        $numberItems = null,
4985
        $column = null,
4986
        $direction = null,
4987
        $active = null,
4988
        $lastConnectionDate = null
4989
    ) {
4990
        return self::getUsersFollowedByUser(
4991
            $userId,
4992
            $userStatus,
4993
            $getOnlyUserId,
4994
            $getSql,
4995
            $getCount,
4996
            $from,
4997
            $numberItems,