Code Duplication    Length = 18-28 lines in 2 locations

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

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