Code Duplication    Length = 9-9 lines in 3 locations

class.AuthProvider.php 3 locations

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