Code Duplication    Length = 9-9 lines in 3 locations

class.AuthProvider.php 3 locations

@@ 258-266 (lines=9) @@
255
     *
256
     * @return array|false An array of Auth\User objects or false if no users were found
257
     */
258
    public function getUsersByFilter($filter, $select=false, $top=false, $skip=false, $orderby=false, $methodName = false)
259
    {
260
        if($methodName === false)
261
        {
262
            return $this->callOnEach('getUsersByFilter', array($filter, $select, $top, $skip, $orderby), 'current');
263
        }
264
        $auth = $this->getAuthenticator($methodName);
265
        return $auth->getUsersByFilter($filter, $select, $top, $skip, $orderby);
266
    }
267
268
    /**
269
     * Get an array of Auth\PendingUser from a filtered set
@@ 280-288 (lines=9) @@
277
     *
278
     * @return array|false An array of Auth\PendingUser objects or false if no pending users were found
279
     */
280
    public function getPendingUsersByFilter($filter, $select=false, $top=false, $skip=false, $orderby=false, $methodName = false)
281
    {
282
        if($methodName === false)
283
        {
284
            return $this->callOnEach('getPendingUsersByFilter', array($filter, $select, $top, $skip, $orderby), 'pending');
285
        }
286
        $auth = $this->getAuthenticator($methodName);
287
        return $auth->getPendingUsersByFilter($filter, $select, $top, $skip, $orderby);
288
    }
289
290
    /**
291
     * Get an array of Auth\Group from a filtered set
@@ 302-310 (lines=9) @@
299
     *
300
     * @return array|false An array of Auth\Group objects or false if no pending users were found
301
     */
302
    public function getGroupsByFilter($filter, $select=false, $top=false, $skip=false, $orderby=false, $methodName = false)
303
    {
304
        if($methodName === false)
305
        {
306
            return $this->callOnEach('getGroupsByFilter', array($filter, $select, $top, $skip, $orderby), 'current');
307
        }
308
        $auth = $this->getAuthenticator($methodName);
309
        return $auth->getGroupsByFilter($filter, $select, $top, $skip, $orderby);
310
    }
311
312
    /**
313
     * Get the number of currently active users on the system