@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | * @param string $functionName The function to call |
60 | 60 | * @param array $args The arguments for the function |
61 | 61 | * @param string $checkField A field to check if it is set a certain way before calling the function |
62 | - * @param mixed $checkValue The value that field should be set to to not call the function |
|
62 | + * @param boolean $checkValue The value that field should be set to to not call the function |
|
63 | 63 | * @param callable $resFunction Function to call on the result, otherwise the function will return on the first non-false result |
64 | 64 | * |
65 | 65 | * @return Auth\Group|Auth\User|false The merged returnValue |
@@ -91,6 +91,10 @@ discard block |
||
91 | 91 | return $ret; |
92 | 92 | } |
93 | 93 | |
94 | + /** |
|
95 | + * @param string|boolean $methodName |
|
96 | + * @param string $functionName |
|
97 | + */ |
|
94 | 98 | protected function callFunction($methodName, $functionName, $args, $checkField = false, $checkValue = false, $resFunction = null) |
95 | 99 | { |
96 | 100 | if($methodName === false) |
@@ -167,7 +167,7 @@ discard block |
||
167 | 167 | public function getUsersByFilter($filter, $select = false, $top = false, $skip = false, $orderby = false, $methodName = false) |
168 | 168 | { |
169 | 169 | return $this->callFunction($methodName, 'getUsersByFilter', array($filter, $select, $top, $skip, $orderby), |
170 | - 'current', false, array($this, 'mergeResult')); |
|
170 | + 'current', false, array($this, 'mergeResult')); |
|
171 | 171 | } |
172 | 172 | |
173 | 173 | /** |
@@ -185,7 +185,7 @@ discard block |
||
185 | 185 | public function getPendingUsersByFilter($filter, $select = false, $top = false, $skip = false, $orderby = false, $methodName = false) |
186 | 186 | { |
187 | 187 | return $this->callFunction($methodName, 'getPendingUsersByFilter', array($filter, $select, $top, $skip, $orderby), |
188 | - 'pending', false, array($this, 'mergeResult')); |
|
188 | + 'pending', false, array($this, 'mergeResult')); |
|
189 | 189 | } |
190 | 190 | |
191 | 191 | /** |
@@ -203,7 +203,7 @@ discard block |
||
203 | 203 | public function getGroupsByFilter($filter, $select = false, $top = false, $skip = false, $orderby = false, $methodName = false) |
204 | 204 | { |
205 | 205 | return $this->callFunction($methodName, 'getGroupsByFilter', array($filter, $select, $top, $skip, $orderby), |
206 | - 'current', false, array($this, 'mergeResult')); |
|
206 | + 'current', false, array($this, 'mergeResult')); |
|
207 | 207 | } |
208 | 208 | |
209 | 209 | /** |