@@ -277,7 +277,7 @@ discard block |
||
277 | 277 | * Formats a number depending of the number of decimals |
278 | 278 | * |
279 | 279 | * @param float $score |
280 | - * @return float the score formatted |
|
280 | + * @return boolean|string the score formatted |
|
281 | 281 | */ |
282 | 282 | public function format_score($score) |
283 | 283 | { |
@@ -391,7 +391,7 @@ discard block |
||
391 | 391 | |
392 | 392 | /** |
393 | 393 | * @param array $score |
394 | - * @return float|string |
|
394 | + * @return boolean|string |
|
395 | 395 | */ |
396 | 396 | private function display_simple_score($score) |
397 | 397 | { |
@@ -404,7 +404,7 @@ discard block |
||
404 | 404 | /** |
405 | 405 | * Returns "1" for array("100", "100"); |
406 | 406 | * @param array $score |
407 | - * @return float |
|
407 | + * @return boolean|string |
|
408 | 408 | */ |
409 | 409 | private function display_as_decimal($score) |
410 | 410 | { |
@@ -1022,7 +1022,6 @@ |
||
1022 | 1022 | * Processes an IMS/QTI manifest file: store links to new files |
1023 | 1023 | * to be able to transform them into the questions text |
1024 | 1024 | * @param string $filePath The absolute filepath |
1025 | - * @param array $links List of filepaths changes |
|
1026 | 1025 | * @return bool |
1027 | 1026 | */ |
1028 | 1027 | function qtiProcessManifest($filePath) |
@@ -910,7 +910,7 @@ discard block |
||
910 | 910 | /** |
911 | 911 | * This function has been created for avoiding changes directly within QuickForm class. |
912 | 912 | * When we use it, the element is threated as 'required' to be dealt during validation. |
913 | - * @param array $element The array of elements |
|
913 | + * @param array $elements The array of elements |
|
914 | 914 | * @param string $message The message displayed |
915 | 915 | */ |
916 | 916 | public function add_multiple_required_rule($elements, $message) |
@@ -1186,12 +1186,12 @@ discard block |
||
1186 | 1186 | } |
1187 | 1187 | |
1188 | 1188 | /** |
1189 | - * @param $name |
|
1189 | + * @param string $name |
|
1190 | 1190 | * @param $label |
1191 | 1191 | * @param bool $required |
1192 | 1192 | * @param array $attributes |
1193 | 1193 | * @param bool $allowNegative |
1194 | - * @param null $minValue |
|
1194 | + * @param integer $minValue |
|
1195 | 1195 | * @param null $maxValue |
1196 | 1196 | */ |
1197 | 1197 | public function addFloat( |
@@ -65,6 +65,8 @@ discard block |
||
65 | 65 | * @param int user id |
66 | 66 | * @param int user friend id |
67 | 67 | * @param string |
68 | + * @param integer $user_id |
|
69 | + * @param integer $user_friend |
|
68 | 70 | * @author isaac flores paz |
69 | 71 | */ |
70 | 72 | public static function get_relation_between_contacts($user_id, $user_friend) |
@@ -96,6 +98,8 @@ discard block |
||
96 | 98 | * @param int group id |
97 | 99 | * @param string name to search |
98 | 100 | * @param bool true will load firstname, lastname, and image name |
101 | + * @param integer $user_id |
|
102 | + * @param integer $id_group |
|
99 | 103 | * @return array |
100 | 104 | * @author Julio Montoya <[email protected]> Cleaning code, function renamed, $load_extra_info option added |
101 | 105 | * @author isaac flores paz |
@@ -173,6 +177,9 @@ discard block |
||
173 | 177 | * @param int user friend id |
174 | 178 | * @param string title of the message |
175 | 179 | * @param string content of the message |
180 | + * @param integer $user_id |
|
181 | + * @param string $message_title |
|
182 | + * @param string $message_content |
|
176 | 183 | * @return boolean |
177 | 184 | * @author isaac flores paz |
178 | 185 | * @author Julio Montoya <[email protected]> Cleaning code |
@@ -247,6 +254,7 @@ discard block |
||
247 | 254 | * Get number messages of the inbox |
248 | 255 | * @author isaac flores paz |
249 | 256 | * @param int user receiver id |
257 | + * @param integer $user_receiver_id |
|
250 | 258 | * @return int |
251 | 259 | */ |
252 | 260 | public static function get_message_number_invitation_by_user_id($user_receiver_id) |
@@ -289,6 +297,7 @@ discard block |
||
289 | 297 | * Get invitation list sent by user |
290 | 298 | * @author Julio Montoya <[email protected]> |
291 | 299 | * @param int user id |
300 | + * @param integer $user_id |
|
292 | 301 | * @return array() |
293 | 302 | */ |
294 | 303 | public static function get_list_invitation_sent_by_user_id($user_id) |
@@ -331,6 +340,7 @@ discard block |
||
331 | 340 | * Denies invitation |
332 | 341 | * @param int user sender id |
333 | 342 | * @param int user receiver id |
343 | + * @param integer $user_receiver_id |
|
334 | 344 | * @author isaac flores paz |
335 | 345 | * @author Julio Montoya <[email protected]> Cleaning code |
336 | 346 | */ |
@@ -425,7 +435,7 @@ discard block |
||
425 | 435 | * @param string $subject |
426 | 436 | * @param string $content |
427 | 437 | * |
428 | - * @return string message invitation |
|
438 | + * @return false|null message invitation |
|
429 | 439 | */ |
430 | 440 | public static function sendInvitationToUser($userId, $subject = '', $content = '') |
431 | 441 | { |
@@ -1225,7 +1235,7 @@ discard block |
||
1225 | 1235 | * @param string $messageContent of the message |
1226 | 1236 | * @param int $messageId id parent |
1227 | 1237 | * @param string $messageStatus status type of message |
1228 | - * @return boolean |
|
1238 | + * @return false|string |
|
1229 | 1239 | * @author Yannick Warnier |
1230 | 1240 | */ |
1231 | 1241 | public static function sendWallMessage($userId, $friendId, $messageContent, $messageId = 0, $messageStatus = '') |
@@ -1317,7 +1327,7 @@ discard block |
||
1317 | 1327 | * Gets all messages from someone's wall (within specific limits) |
1318 | 1328 | * @param int $userId id of wall shown |
1319 | 1329 | * @param string $messageStatus status wall message |
1320 | - * @param int|string $parentId id message (Post main) |
|
1330 | + * @param integer|null $parentId id message (Post main) |
|
1321 | 1331 | * @param string $start Date from which we want to show the messages, in UTC time |
1322 | 1332 | * @param int $limit Limit for the number of parent messages we want to show |
1323 | 1333 | * @param int $offset Wall message query offset |
@@ -1602,7 +1612,7 @@ discard block |
||
1602 | 1612 | |
1603 | 1613 | /** |
1604 | 1614 | * verify if Url Exist - Using Curl |
1605 | - * @param $uri url |
|
1615 | + * @param string $uri url |
|
1606 | 1616 | * |
1607 | 1617 | * @return boolean |
1608 | 1618 | */ |
@@ -1628,7 +1638,7 @@ discard block |
||
1628 | 1638 | /** |
1629 | 1639 | * Delete messages delete logic |
1630 | 1640 | * @param int $id id message to delete. |
1631 | - * @return bool status query |
|
1641 | + * @return Statement|null status query |
|
1632 | 1642 | */ |
1633 | 1643 | public static function deleteMessage($id) |
1634 | 1644 | { |