Completed
Push — master ( 10cc8d...4e0fe0 )
by Patrick
02:11
created
api/v1/aws.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -12,6 +12,9 @@  discard block
 block discarded – undo
12 12
     $app->post('/test', 'testX');
13 13
 }
14 14
 
15
+/**
16
+ * @param string $function
17
+ */
15 18
 function sendToBackend($function, $payload)
16 19
 {
17 20
     $context = new ZMQContext();
@@ -72,6 +75,9 @@  discard block
 block discarded – undo
72 75
     }
73 76
 }
74 77
 
78
+/**
79
+ * @param string $test
80
+ */
75 81
 function endswith($string, $test)
76 82
 {
77 83
     $strlen = strlen($string);
Please login to merge, or discard this patch.
api/v1/groups.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -29,6 +29,9 @@
 block discarded – undo
29 29
     }
30 30
 }
31 31
 
32
+/**
33
+ * @param boolean $directOnly
34
+ */
32 35
 function expandGroupMembers($group, $odata, $directOnly)
33 36
 {
34 37
     if($odata->expand !== false && in_array('member', $odata->expand))
Please login to merge, or discard this patch.
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.
_local/run.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -43,6 +43,9 @@  discard block
 block discarded – undo
43 43
     echo json_encode($ret);
44 44
 }
45 45
 
46
+/**
47
+ * @param string $test
48
+ */
46 49
 function endswith($string, $test)
47 50
 {
48 51
     $strlen = strlen($string);
@@ -107,6 +110,9 @@  discard block
 block discarded – undo
107 110
     return $object['Body']->__toString();
108 111
 }
109 112
 
113
+/**
114
+ * @param string $recipient
115
+ */
110 116
 function encodeRecipients($recipient)
111 117
 {
112 118
     if(is_array($recipient))
@@ -120,6 +126,9 @@  discard block
 block discarded – undo
120 126
     return $recipient;
121 127
 }
122 128
 
129
+/**
130
+ * @param Guzzle\Service\Resource\Model $message
131
+ */
123 132
 function fixMessage($message)
124 133
 {
125 134
     $output = array();
Please login to merge, or discard this patch.