Completed
Pull Request — master (#44)
by Jesus
02:05
created
lib.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
  * @uses FEATURE_GRADE_OUTCOMES
98 98
  * @uses FEATURE_SHOW_DESCRIPTION
99 99
  * @param string $feature
100
- * @return mixed True if yes (some features may use other values)
100
+ * @return null|boolean True if yes (some features may use other values)
101 101
  */
102 102
 function bigbluebuttonbn_supports($feature) {
103 103
     if (!$feature) {
@@ -239,7 +239,7 @@  discard block
 block discarded – undo
239 239
  * @param object $mod
240 240
  * @param object $bigbluebuttonbn
241 241
  *
242
- * @return bool
242
+ * @return string
243 243
  */
244 244
 function bigbluebuttonbn_user_outline($course, $user, $mod, $bigbluebuttonbn) {
245 245
     global $DB;
@@ -542,7 +542,7 @@  discard block
 block discarded – undo
542 542
  * @param stdClass $context       context object
543 543
  * @param string   $filearea      file area
544 544
  *
545
- * @return false|null false if file not valid
545
+ * @return boolean false if file not valid
546 546
  */
547 547
 function bigbluebuttonbn_pluginfile_valid($context, $filearea) {
548 548
     if ($context->contextlevel != CONTEXT_MODULE) {
Please login to merge, or discard this patch.
locallib.php 1 patch
Doc Comments   +19 added lines, -9 removed lines patch added patch discarded remove patch
@@ -326,7 +326,7 @@  discard block
 block discarded – undo
326 326
 /**
327 327
  * Helper function to retrive the default config.xml file.
328 328
  *
329
- * @return string
329
+ * @return null|SimpleXMLElement
330 330
  */
331 331
 function bigbluebuttonbn_get_default_config_xml() {
332 332
     $xml = bigbluebuttonbn_wrap_xml_load_file(
@@ -397,7 +397,7 @@  discard block
 block discarded – undo
397 397
  * @param object $a
398 398
  * @param object $b
399 399
  *
400
- * @return array
400
+ * @return integer
401 401
  */
402 402
 function bigbluebuttonbn_recording_build_sorter($a, $b) {
403 403
     if ($a['startTime'] < $b['startTime']) {
@@ -523,7 +523,7 @@  discard block
 block discarded – undo
523 523
  * @param string $data
524 524
  * @param string $contenttype
525 525
  *
526
- * @return object
526
+ * @return null|SimpleXMLElement
527 527
  */
528 528
 function bigbluebuttonbn_wrap_xml_load_file($url, $method = 'GET', $data = null, $contenttype = 'text/xml') {
529 529
     if (extension_loaded('curl')) {
@@ -564,7 +564,7 @@  discard block
 block discarded – undo
564 564
  * @param string $data
565 565
  * @param string $contenttype
566 566
  *
567
- * @return object
567
+ * @return string
568 568
  */
569 569
 function bigbluebuttonbn_wrap_xml_load_file_curl_request($url, $method = 'GET', $data = null, $contenttype = 'text/xml') {
570 570
     $c = new curl();
@@ -604,7 +604,7 @@  discard block
 block discarded – undo
604 604
  * Returns user roles in a context.
605 605
  *
606 606
  * @param context $context
607
- * @param context $userid
607
+ * @param integer $userid
608 608
  *
609 609
  * @return array $userroles
610 610
  */
@@ -928,7 +928,7 @@  discard block
 block discarded – undo
928 928
  *
929 929
  * @param integer $voicebridge
930 930
  *
931
- * @return string
931
+ * @return boolean
932 932
  */
933 933
 function bigbluebuttonbn_voicebridge_unique($voicebridge) {
934 934
     global $DB;
@@ -1028,7 +1028,7 @@  discard block
 block discarded – undo
1028 1028
 /**
1029 1029
  * Helper returns an array with all possible bigbluebuttonbn events.
1030 1030
  *
1031
- * @return array
1031
+ * @return string[]
1032 1032
  */
1033 1033
 function bigbluebuttonbn_events() {
1034 1034
     return array(
@@ -1237,7 +1237,7 @@  discard block
 block discarded – undo
1237 1237
  * @param string $meetingid
1238 1238
  * @param string $configxml
1239 1239
  *
1240
- * @return object
1240
+ * @return null|SimpleXMLElement
1241 1241
  */
1242 1242
 function bigbluebuttonbn_set_config_xml($meetingid, $configxml) {
1243 1243
     $urldefaultconfig = \mod_bigbluebuttonbn\locallib\config::get('server_url').'api/setConfigXML?';
@@ -1442,6 +1442,9 @@  discard block
 block discarded – undo
1442 1442
     return $OUTPUT->action_link('#', $title, null, $linkattributes);
1443 1443
 }
1444 1444
 
1445
+/**
1446
+ * @param boolean $editable
1447
+ */
1445 1448
 function bigbluebuttonbn_get_recording_data_row_meta_activity($recording, $editable) {
1446 1449
     $payload = array();
1447 1450
     if ($editable) {
@@ -1463,6 +1466,9 @@  discard block
 block discarded – undo
1463 1466
     return bigbluebuttonbn_get_recording_data_row_text($recording, $metaname, $newsource, $payload);
1464 1467
 }
1465 1468
 
1469
+/**
1470
+ * @param boolean $editable
1471
+ */
1466 1472
 function bigbluebuttonbn_get_recording_data_row_meta_description($recording, $editable) {
1467 1473
     $payload = array();
1468 1474
     if ($editable) {
@@ -1483,6 +1489,10 @@  discard block
 block discarded – undo
1483 1489
     return bigbluebuttonbn_get_recording_data_row_text($recording, '', $newsource, $payload);
1484 1490
 }
1485 1491
 
1492
+/**
1493
+ * @param string $text
1494
+ * @param string $source
1495
+ */
1486 1496
 function bigbluebuttonbn_get_recording_data_row_text($recording, $text, $source, $data) {
1487 1497
     $htmltext = '<span>' . htmlentities($text) . '</span>';
1488 1498
     if (empty($data)) {
@@ -1757,7 +1767,7 @@  discard block
 block discarded – undo
1757 1767
  * Helper function to define the sql used for gattering the bigbluebuttonbnids whose meetingids should be included
1758 1768
  * in the getRecordings request considering only those that belong to deleted activities.
1759 1769
  *
1760
- * @param string $courseid
1770
+ * @param integer $courseid
1761 1771
  * @param string $bigbluebuttonbnid
1762 1772
  * @param bool   $subset
1763 1773
  *
Please login to merge, or discard this patch.