Completed
Push — master ( 83a2a5...ced03c )
by Patrick
03:16
created
api/v1/users.php 1 patch
Doc Comments   +16 added lines patch added patch discarded remove patch
@@ -43,6 +43,9 @@  discard block
 block discarded – undo
43 43
     }
44 44
 }
45 45
 
46
+/**
47
+ * @param boolean $message
48
+ */
46 49
 function validateCanCreateUser($proposedUser, $auth, &$message)
47 50
 {
48 51
     $user = $auth->getUsersByFilter(new \Data\Filter('mail eq '.$proposedUser->mail));
@@ -103,6 +106,9 @@  discard block
 block discarded – undo
103 106
     return ($uid === 'me' || $uid === $app->user->uid);
104 107
 }
105 108
 
109
+/**
110
+ * @param string $uid
111
+ */
106 112
 function getUserByUIDReadOnly($app, $uid)
107 113
 {
108 114
     if(userIsMe($app, $uid))
@@ -185,6 +191,9 @@  discard block
 block discarded – undo
185 191
     }
186 192
 }
187 193
 
194
+/**
195
+ * @param Exception $e
196
+ */
188 197
 function exceptionCodeToHttpCode($e)
189 198
 {
190 199
     if($e->getCode() === 3)
@@ -194,6 +203,9 @@  discard block
 block discarded – undo
194 203
     return 500;
195 204
 }
196 205
 
206
+/**
207
+ * @param string $uid
208
+ */
197 209
 function getUser($app, $uid, $payload)
198 210
 {
199 211
     if(!$app->user)
@@ -323,6 +335,10 @@  discard block
 block discarded – undo
323 335
     echo json_encode(array('success'=>true));
324 336
 }
325 337
 
338
+/**
339
+ * @param Data\Filter $filter
340
+ * @param boolean $pending
341
+ */
326 342
 function getAllUsersByFilter($filter, &$pending)
327 343
 {
328 344
     $auth = AuthProvider::getInstance();
Please login to merge, or discard this patch.