Code Duplication    Length = 9-9 lines in 3 locations

class.AuthProvider.php 3 locations

@@ 222-230 (lines=9) @@
219
     *
220
     * @return array|boolean An array of Auth\User objects or false if no users were found
221
     */
222
    public function getUsersByFilter($filter, $select = false, $top = false, $skip = false, $orderby = false, $methodName = false)
223
    {
224
        if($methodName === false)
225
        {
226
            return $this->callOnEach('getUsersByFilter', array($filter, $select, $top, $skip, $orderby), 'current');
227
        }
228
        $auth = $this->getMethodByName($methodName);
229
        return $auth->getUsersByFilter($filter, $select, $top, $skip, $orderby);
230
    }
231
232
    /**
233
     * Get an array of Auth\PendingUser from a filtered set
@@ 244-252 (lines=9) @@
241
     *
242
     * @return array|boolean An array of Auth\PendingUser objects or false if no pending users were found
243
     */
244
    public function getPendingUsersByFilter($filter, $select = false, $top = false, $skip = false, $orderby = false, $methodName = false)
245
    {
246
        if($methodName === false)
247
        {
248
            return $this->callOnEach('getPendingUsersByFilter', array($filter, $select, $top, $skip, $orderby), 'pending');
249
        }
250
        $auth = $this->getMethodByName($methodName);
251
        return $auth->getPendingUsersByFilter($filter, $select, $top, $skip, $orderby);
252
    }
253
254
    /**
255
     * Get an array of Auth\Group from a filtered set
@@ 266-274 (lines=9) @@
263
     *
264
     * @return array|false An array of Auth\Group objects or false if no pending users were found
265
     */
266
    public function getGroupsByFilter($filter, $select = false, $top = false, $skip = false, $orderby = false, $methodName = false)
267
    {
268
        if($methodName === false)
269
        {
270
            return $this->callOnEach('getGroupsByFilter', array($filter, $select, $top, $skip, $orderby), 'current');
271
        }
272
        $auth = $this->getMethodByName($methodName);
273
        return $auth->getGroupsByFilter($filter, $select, $top, $skip, $orderby);
274
    }
275
276
    /**
277
     * Get the number of currently active users on the system