Code Duplication    Length = 9-9 lines in 3 locations

class.AuthProvider.php 3 locations

@@ 242-250 (lines=9) @@
239
     *
240
     * @return array|boolean An array of Auth\User objects or false if no users were found
241
     */
242
    public function getUsersByFilter($filter, $select = false, $top = false, $skip = false, $orderby = false, $methodName = false)
243
    {
244
        if($methodName === false)
245
        {
246
            return $this->callOnEach('getUsersByFilter', array($filter, $select, $top, $skip, $orderby), 'current');
247
        }
248
        $auth = $this->getMethodByName($methodName);
249
        return $auth->getUsersByFilter($filter, $select, $top, $skip, $orderby);
250
    }
251
252
    /**
253
     * Get an array of Auth\PendingUser from a filtered set
@@ 264-272 (lines=9) @@
261
     *
262
     * @return array|boolean An array of Auth\PendingUser objects or false if no pending users were found
263
     */
264
    public function getPendingUsersByFilter($filter, $select = false, $top = false, $skip = false, $orderby = false, $methodName = false)
265
    {
266
        if($methodName === false)
267
        {
268
            return $this->callOnEach('getPendingUsersByFilter', array($filter, $select, $top, $skip, $orderby), 'pending');
269
        }
270
        $auth = $this->getMethodByName($methodName);
271
        return $auth->getPendingUsersByFilter($filter, $select, $top, $skip, $orderby);
272
    }
273
274
    /**
275
     * Get an array of Auth\Group from a filtered set
@@ 286-294 (lines=9) @@
283
     *
284
     * @return array|false An array of Auth\Group objects or false if no pending users were found
285
     */
286
    public function getGroupsByFilter($filter, $select = false, $top = false, $skip = false, $orderby = false, $methodName = false)
287
    {
288
        if($methodName === false)
289
        {
290
            return $this->callOnEach('getGroupsByFilter', array($filter, $select, $top, $skip, $orderby), 'current');
291
        }
292
        $auth = $this->getMethodByName($methodName);
293
        return $auth->getGroupsByFilter($filter, $select, $top, $skip, $orderby);
294
    }
295
296
    /**
297
     * Get the number of currently active users on the system