Completed
Pull Request — v2.2-stable (#65)
by Jesus
48:44 queued 06:56
created
lib.php 1 patch
Doc Comments   +5 added lines, -6 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
  * @uses FEATURE_GRADE_OUTCOMES
103 103
  * @uses FEATURE_SHOW_DESCRIPTION
104 104
  * @param string $feature
105
- * @return mixed True if yes (some features may use other values)
105
+ * @return null|boolean True if yes (some features may use other values)
106 106
  */
107 107
 function bigbluebuttonbn_supports($feature) {
108 108
     if (!$feature) {
@@ -187,7 +187,7 @@  discard block
 block discarded – undo
187 187
  *
188 188
  * @param int $id Id of the module instance
189 189
  *
190
- * @return bool Success/Failure
190
+ * @return boolean|null Success/Failure
191 191
  */
192 192
 function bigbluebuttonbn_delete_instance($id) {
193 193
     global $DB;
@@ -214,7 +214,7 @@  discard block
 block discarded – undo
214 214
  *
215 215
  * @param object $bigbluebuttonbn Id of the module instance
216 216
  *
217
- * @return bool Success/Failure
217
+ * @return boolean|null Success/Failure
218 218
  */
219 219
 function bigbluebuttonbn_delete_instance_log($bigbluebuttonbn) {
220 220
     global $DB;
@@ -237,7 +237,7 @@  discard block
 block discarded – undo
237 237
  * @param object $mod
238 238
  * @param object $bigbluebuttonbn
239 239
  *
240
- * @return bool
240
+ * @return string
241 241
  */
242 242
 function bigbluebuttonbn_user_outline($course, $user, $mod, $bigbluebuttonbn) {
243 243
     global $DB;
@@ -594,7 +594,7 @@  discard block
 block discarded – undo
594 594
  * @param stdClass $context       context object
595 595
  * @param string   $filearea      file area
596 596
  *
597
- * @return false|null false if file not valid
597
+ * @return boolean false if file not valid
598 598
  */
599 599
 function bigbluebuttonbn_pluginfile_valid($context, $filearea) {
600 600
     if ($context->contextlevel != CONTEXT_MODULE) {
@@ -731,7 +731,6 @@  discard block
 block discarded – undo
731 731
 /**
732 732
  * Register a bigbluebuttonbn event
733 733
  *
734
- * @param array  $bbbsession
735 734
  * @param string $event
736 735
  * @param array  $overrides
737 736
  * @param string $meta
Please login to merge, or discard this patch.
locallib.php 1 patch
Doc Comments   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -262,7 +262,7 @@  discard block
 block discarded – undo
262 262
  * Helper function to retrieve imported recordings from the Moodle database.
263 263
  * The references are stored as events in bigbluebuttonbn_logs.
264 264
  *
265
- * @param string $courseid
265
+ * @param integer $courseid
266 266
  * @param string $bigbluebuttonbnid
267 267
  * @param bool   $subset
268 268
  *
@@ -290,7 +290,7 @@  discard block
 block discarded – undo
290 290
 /**
291 291
  * Helper function to retrive the default config.xml file.
292 292
  *
293
- * @return string
293
+ * @return null|SimpleXMLElement
294 294
  */
295 295
 function bigbluebuttonbn_get_default_config_xml() {
296 296
     $xml = bigbluebuttonbn_wrap_xml_load_file(
@@ -372,7 +372,7 @@  discard block
 block discarded – undo
372 372
  * @param object $a
373 373
  * @param object $b
374 374
  *
375
- * @return array
375
+ * @return integer
376 376
  */
377 377
 function bigbluebuttonbn_recording_build_sorter($a, $b) {
378 378
     if ($a['startTime'] < $b['startTime']) {
@@ -483,7 +483,7 @@  discard block
 block discarded – undo
483 483
  * @param string $data
484 484
  * @param string $contenttype
485 485
  *
486
- * @return object
486
+ * @return null|SimpleXMLElement
487 487
  */
488 488
 function bigbluebuttonbn_wrap_xml_load_file($url, $method = 'GET', $data = null, $contenttype = 'text/xml') {
489 489
     if (extension_loaded('curl')) {
@@ -524,7 +524,7 @@  discard block
 block discarded – undo
524 524
  * @param string $data
525 525
  * @param string $contenttype
526 526
  *
527
- * @return object
527
+ * @return string
528 528
  */
529 529
 function bigbluebuttonbn_wrap_xml_load_file_curl_request($url, $method = 'GET', $data = null, $contenttype = 'text/xml') {
530 530
     $c = new curl();
@@ -800,7 +800,7 @@  discard block
 block discarded – undo
800 800
  * Evaluate if a user in a context is moderator based on roles and participation rules.
801 801
  *
802 802
  * @param context $context
803
- * @param array $participants
803
+ * @param array $participantlist
804 804
  * @param integer $userid
805 805
  *
806 806
  * @return boolean
@@ -892,7 +892,7 @@  discard block
 block discarded – undo
892 892
  * @param integer $instance
893 893
  * @param integer $voicebridge
894 894
  *
895
- * @return string
895
+ * @return boolean
896 896
  */
897 897
 function bigbluebuttonbn_voicebridge_unique($instance, $voicebridge) {
898 898
     global $DB;
@@ -995,7 +995,7 @@  discard block
 block discarded – undo
995 995
 /**
996 996
  * Helper returns an array with all possible bigbluebuttonbn events.
997 997
  *
998
- * @return array
998
+ * @return string[]
999 999
  */
1000 1000
 function bigbluebuttonbn_events() {
1001 1001
     return array(
@@ -1220,7 +1220,7 @@  discard block
 block discarded – undo
1220 1220
  * @param string $meetingid
1221 1221
  * @param string $configxml
1222 1222
  *
1223
- * @return object
1223
+ * @return null|SimpleXMLElement
1224 1224
  */
1225 1225
 function bigbluebuttonbn_set_config_xml($meetingid, $configxml) {
1226 1226
     $urldefaultconfig = \mod_bigbluebuttonbn\locallib\config::get('server_url').'api/setConfigXML?';
@@ -1269,7 +1269,7 @@  discard block
 block discarded – undo
1269 1269
  * @param array $recording
1270 1270
  * @param array $tools
1271 1271
  *
1272
- * @return array
1272
+ * @return null|stdClass
1273 1273
  */
1274 1274
 function bigbluebuttonbn_get_recording_data_row($bbbsession, $recording, $tools = ['protect', 'publish', 'delete']) {
1275 1275
     if (!bigbluebuttonbn_include_recording_table_row($bbbsession, $recording)) {
@@ -1833,7 +1833,7 @@  discard block
 block discarded – undo
1833 1833
  *
1834 1834
  * @param array $bbbsession
1835 1835
  * @param array $recording
1836
- * @param object $rowdata
1836
+ * @param stdClass $rowdata
1837 1837
  *
1838 1838
  * @return object
1839 1839
  */
@@ -2028,7 +2028,7 @@  discard block
 block discarded – undo
2028 2028
  * Helper function to define the sql used for gattering the bigbluebuttonbnids whose meetingids should be included
2029 2029
  * in the getRecordings request considering only those that belong to deleted activities.
2030 2030
  *
2031
- * @param string $courseid
2031
+ * @param integer $courseid
2032 2032
  * @param string $bigbluebuttonbnid
2033 2033
  * @param bool   $subset
2034 2034
  *
@@ -2052,7 +2052,7 @@  discard block
 block discarded – undo
2052 2052
  * Helper function to define the sql used for gattering the bigbluebuttonbnids whose meetingids should be included
2053 2053
  * in the getRecordings request considering only those that belong to imported recordings.
2054 2054
  *
2055
- * @param string $courseid
2055
+ * @param integer $courseid
2056 2056
  * @param string $bigbluebuttonbnid
2057 2057
  * @param bool   $subset
2058 2058
  *
@@ -2075,7 +2075,7 @@  discard block
 block discarded – undo
2075 2075
 /**
2076 2076
  * Helper function to get recordings  and imported recordings together.
2077 2077
  *
2078
- * @param string $courseid
2078
+ * @param integer $courseid
2079 2079
  * @param string $bigbluebuttonbnid
2080 2080
  * @param bool   $subset
2081 2081
  * @param bool   $includedeleted
@@ -2093,7 +2093,7 @@  discard block
 block discarded – undo
2093 2093
  * Helper function to retrieve recordings from the BigBlueButton. The references are stored as events
2094 2094
  * in bigbluebuttonbn_logs.
2095 2095
  *
2096
- * @param string $courseid
2096
+ * @param integer $courseid
2097 2097
  * @param string $bigbluebuttonbnid
2098 2098
  * @param bool   $subset
2099 2099
  * @param bool   $includedeleted
Please login to merge, or discard this patch.