Code Duplication    Length = 18-28 lines in 2 locations

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

@@ 4155-4182 (lines=28) @@
4152
     * @param string $lastConnectionDate
4153
     * @return array     users
4154
     */
4155
    public static function get_users_followed_by_drh(
4156
        $userId,
4157
        $userStatus = 0,
4158
        $getOnlyUserId = false,
4159
        $getSql = false,
4160
        $getCount = false,
4161
        $from = null,
4162
        $numberItems = null,
4163
        $column = null,
4164
        $direction = null,
4165
        $active = null,
4166
        $lastConnectionDate = null
4167
    ) {
4168
        return self::getUsersFollowedByUser(
4169
            $userId,
4170
            $userStatus,
4171
            $getOnlyUserId,
4172
            $getSql,
4173
            $getCount,
4174
            $from,
4175
            $numberItems,
4176
            $column,
4177
            $direction,
4178
            $active,
4179
            $lastConnectionDate,
4180
            DRH
4181
        );
4182
    }
4183
4184
    /**
4185
    * Get users followed by human resource manager
@@ 5173-5190 (lines=18) @@
5170
     * @param string $lastConnectionDate
5171
     * @return array     users
5172
     */
5173
    public static function getUsersFollowedByStudentBoss(
5174
        $userId,
5175
        $userStatus = 0,
5176
        $getOnlyUserId = false,
5177
        $getSql = false,
5178
        $getCount = false,
5179
        $from = null,
5180
        $numberItems = null,
5181
        $column = null,
5182
        $direction = null,
5183
        $active = null,
5184
        $lastConnectionDate = null
5185
    ){
5186
        return self::getUsersFollowedByUser(
5187
            $userId,
5188
            $userStatus,
5189
            $getOnlyUserId,
5190
            $getSql,
5191
            $getCount,
5192
            $from,
5193
            $numberItems,