@@ -18,7 +18,7 @@ |
||
18 | 18 | * Asset constructor. |
19 | 19 | * @param int $id |
20 | 20 | * @param int $path |
21 | - * @param $title |
|
21 | + * @param string $title |
|
22 | 22 | */ |
23 | 23 | public function __construct($id, $path, $title) |
24 | 24 | { |
@@ -272,6 +272,7 @@ |
||
272 | 272 | } |
273 | 273 | /** |
274 | 274 | * Get dummy titles, descriptions and texts |
275 | + * @param string $type |
|
275 | 276 | */ |
276 | 277 | function get_dummy_content($type) |
277 | 278 | { |
@@ -261,7 +261,7 @@ |
||
261 | 261 | * @param $form |
262 | 262 | * @param string $name |
263 | 263 | * @param null $default_value |
264 | - * @return bool |
|
264 | + * @return false|null |
|
265 | 265 | */ |
266 | 266 | public function fill_grade_model_select_in_form(&$form, $name = 'gradebook_model_id', $default_value = null) |
267 | 267 | { |
@@ -149,7 +149,7 @@ |
||
149 | 149 | } |
150 | 150 | |
151 | 151 | /** |
152 | - * @param $action |
|
152 | + * @param string $action |
|
153 | 153 | * @param MenuItemInterface $menu |
154 | 154 | * @return MenuItemInterface |
155 | 155 | */ |
@@ -52,6 +52,7 @@ |
||
52 | 52 | /** |
53 | 53 | * Set id |
54 | 54 | * |
55 | + * @param integer $id |
|
55 | 56 | * @return integer |
56 | 57 | */ |
57 | 58 | public function setId($id) |
@@ -134,7 +134,7 @@ |
||
134 | 134 | } |
135 | 135 | |
136 | 136 | /** |
137 | - * @return string |
|
137 | + * @return integer |
|
138 | 138 | */ |
139 | 139 | public function getTool() |
140 | 140 | { |
@@ -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) |
@@ -337,7 +337,7 @@ discard block |
||
337 | 337 | * Save a participant in a meeting room |
338 | 338 | * @param int $meetingId |
339 | 339 | * @param int $participantId |
340 | - * @return false|int The last inserted ID. Otherwise return false |
|
340 | + * @return false|string The last inserted ID. Otherwise return false |
|
341 | 341 | */ |
342 | 342 | public function saveParticipant($meetingId, $participantId) |
343 | 343 | { |
@@ -410,7 +410,7 @@ discard block |
||
410 | 410 | /** |
411 | 411 | * Returns a meeting "join" URL |
412 | 412 | * @param string The name of the meeting (usually the course code) |
413 | - * @return mixed The URL to join the meeting, or false on error |
|
413 | + * @return false|string The URL to join the meeting, or false on error |
|
414 | 414 | * @todo implement moderator pass |
415 | 415 | * @assert ('') === false |
416 | 416 | * @assert ('abcdefghijklmnopqrstuvwxyzabcdefghijklmno') === false |
@@ -791,7 +791,7 @@ discard block |
||
791 | 791 | * @param string The internal ID of the meeting (id field for this meeting) |
792 | 792 | * @param string $courseCode |
793 | 793 | * |
794 | - * @return void |
|
794 | + * @return false|null |
|
795 | 795 | * @assert (0) === false |
796 | 796 | */ |
797 | 797 | public function endMeeting($id, $courseCode = null) |
@@ -1270,7 +1270,7 @@ discard block |
||
1270 | 1270 | * @param array $recordInfo |
1271 | 1271 | * @param bool $isGlobal |
1272 | 1272 | * @param bool $isAdminReport |
1273 | - * @return array |
|
1273 | + * @return string[] |
|
1274 | 1274 | */ |
1275 | 1275 | private function getActionLinks($meetingInfo, $recordInfo, $isGlobal = false, $isAdminReport = false) |
1276 | 1276 | { |