Completed
Pull Request — master (#164)
by Jesus
02:06
created
lib.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
  * @uses FEATURE_GRADE_OUTCOMES
104 104
  * @uses FEATURE_SHOW_DESCRIPTION
105 105
  * @param string $feature
106
- * @return mixed True if yes (some features may use other values)
106
+ * @return null|boolean True if yes (some features may use other values)
107 107
  */
108 108
 function bigbluebuttonbn_supports($feature) {
109 109
     if (!$feature) {
@@ -272,7 +272,7 @@  discard block
 block discarded – undo
272 272
  *
273 273
  * @param object $bigbluebuttonbn Id of the module instance
274 274
  *
275
- * @return bool Success/Failure
275
+ * @return boolean|null Success/Failure
276 276
  */
277 277
 function bigbluebuttonbn_delete_instance_log($bigbluebuttonbn) {
278 278
     global $DB;
@@ -293,7 +293,7 @@  discard block
 block discarded – undo
293 293
  * @param object $mod
294 294
  * @param object $bigbluebuttonbn
295 295
  *
296
- * @return bool
296
+ * @return string
297 297
  */
298 298
 function bigbluebuttonbn_user_outline($course, $user, $mod, $bigbluebuttonbn) {
299 299
     if ($completed = bigbluebuttonbn_user_complete($course, $user, $bigbluebuttonbn)) {
@@ -869,7 +869,7 @@  discard block
 block discarded – undo
869 869
  * @param stdClass $context       context object
870 870
  * @param string   $filearea      file area
871 871
  *
872
- * @return false|null false if file not valid
872
+ * @return boolean false if file not valid
873 873
  */
874 874
 function bigbluebuttonbn_pluginfile_valid($context, $filearea) {
875 875
 
Please login to merge, or discard this patch.
classes/locallib/notifier.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -111,7 +111,7 @@
 block discarded – undo
111 111
      *
112 112
      * @param object $bigbluebuttonbn
113 113
      *
114
-     * @return void
114
+     * @return string
115 115
      */
116 116
     public static function htmlmsg_recording_ready($bigbluebuttonbn) {
117 117
         return '<p>'.get_string('email_body_recording_ready_for', 'bigbluebuttonbn').
Please login to merge, or discard this patch.
locallib.php 1 patch
Doc Comments   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -306,7 +306,7 @@  discard block
 block discarded – undo
306 306
  * Helper function to retrieve imported recordings from the Moodle database.
307 307
  * The references are stored as events in bigbluebuttonbn_logs.
308 308
  *
309
- * @param string $courseid
309
+ * @param integer $courseid
310 310
  * @param string $bigbluebuttonbnid
311 311
  * @param bool   $subset
312 312
  *
@@ -334,7 +334,7 @@  discard block
 block discarded – undo
334 334
 /**
335 335
  * Helper function to retrive the default config.xml file.
336 336
  *
337
- * @return string
337
+ * @return null|SimpleXMLElement
338 338
  */
339 339
 function bigbluebuttonbn_get_default_config_xml() {
340 340
     $xml = bigbluebuttonbn_wrap_xml_load_file(
@@ -416,7 +416,7 @@  discard block
 block discarded – undo
416 416
  * @param object $a
417 417
  * @param object $b
418 418
  *
419
- * @return array
419
+ * @return integer
420 420
  */
421 421
 function bigbluebuttonbn_recording_build_sorter($a, $b) {
422 422
     global $CFG;
@@ -530,7 +530,7 @@  discard block
 block discarded – undo
530 530
  * @param string $data
531 531
  * @param string $contenttype
532 532
  *
533
- * @return object
533
+ * @return null|SimpleXMLElement
534 534
  */
535 535
 function bigbluebuttonbn_wrap_xml_load_file($url, $method = 'GET', $data = null, $contenttype = 'text/xml') {
536 536
     if (extension_loaded('curl')) {
@@ -571,7 +571,7 @@  discard block
 block discarded – undo
571 571
  * @param string $data
572 572
  * @param string $contenttype
573 573
  *
574
- * @return object
574
+ * @return string
575 575
  */
576 576
 function bigbluebuttonbn_wrap_xml_load_file_curl_request($url, $method = 'GET', $data = null, $contenttype = 'text/xml') {
577 577
     $c = new curl();
@@ -957,7 +957,7 @@  discard block
 block discarded – undo
957 957
  * @param integer $instance
958 958
  * @param integer $voicebridge
959 959
  *
960
- * @return string
960
+ * @return boolean
961 961
  */
962 962
 function bigbluebuttonbn_voicebridge_unique($instance, $voicebridge) {
963 963
     global $DB;
@@ -1306,7 +1306,7 @@  discard block
 block discarded – undo
1306 1306
  * @param string $meetingid
1307 1307
  * @param string $configxml
1308 1308
  *
1309
- * @return object
1309
+ * @return null|SimpleXMLElement
1310 1310
  */
1311 1311
 function bigbluebuttonbn_set_config_xml($meetingid, $configxml) {
1312 1312
     $urldefaultconfig = \mod_bigbluebuttonbn\locallib\config::get('server_url') . 'api/setConfigXML?';
@@ -1359,7 +1359,7 @@  discard block
 block discarded – undo
1359 1359
  * @param array $recording
1360 1360
  * @param array $tools
1361 1361
  *
1362
- * @return array
1362
+ * @return null|stdClass
1363 1363
  */
1364 1364
 function bigbluebuttonbn_get_recording_data_row($bbbsession, $recording, $tools = ['protect', 'publish', 'delete']) {
1365 1365
     if (!bigbluebuttonbn_include_recording_table_row($bbbsession, $recording)) {
@@ -1994,7 +1994,7 @@  discard block
 block discarded – undo
1994 1994
  *
1995 1995
  * @param array $bbbsession
1996 1996
  * @param array $recording
1997
- * @param object $rowdata
1997
+ * @param stdClass $rowdata
1998 1998
  *
1999 1999
  * @return object
2000 2000
  */
@@ -2189,7 +2189,7 @@  discard block
 block discarded – undo
2189 2189
  *
2190 2190
  * @param array $bbbsession
2191 2191
  * @param array $recordings
2192
- * @param array $tools
2192
+ * @param string[] $tools
2193 2193
  *
2194 2194
  * @return array
2195 2195
  */ 
@@ -2270,7 +2270,7 @@  discard block
 block discarded – undo
2270 2270
  * Helper function to define the sql used for gattering the bigbluebuttonbnids whose meetingids should be included
2271 2271
  * in the getRecordings request considering only those that belong to deleted activities.
2272 2272
  *
2273
- * @param string $courseid
2273
+ * @param integer $courseid
2274 2274
  * @param string $bigbluebuttonbnid
2275 2275
  * @param bool   $subset
2276 2276
  *
@@ -2294,7 +2294,7 @@  discard block
 block discarded – undo
2294 2294
  * Helper function to define the sql used for gattering the bigbluebuttonbnids whose meetingids should be included
2295 2295
  * in the getRecordings request considering only those that belong to imported recordings.
2296 2296
  *
2297
- * @param string $courseid
2297
+ * @param integer $courseid
2298 2298
  * @param string $bigbluebuttonbnid
2299 2299
  * @param bool   $subset
2300 2300
  *
@@ -2317,7 +2317,7 @@  discard block
 block discarded – undo
2317 2317
 /**
2318 2318
  * Helper function to get recordings and imported recordings together.
2319 2319
  *
2320
- * @param string $courseid
2320
+ * @param integer $courseid
2321 2321
  * @param string $bigbluebuttonbnid
2322 2322
  * @param bool   $subset
2323 2323
  * @param bool   $includedeleted
@@ -2335,7 +2335,7 @@  discard block
 block discarded – undo
2335 2335
  * Helper function to retrieve recordings from the BigBlueButton. The references are stored as events
2336 2336
  * in bigbluebuttonbn_logs.
2337 2337
  *
2338
- * @param string $courseid
2338
+ * @param integer $courseid
2339 2339
  * @param string $bigbluebuttonbnid
2340 2340
  * @param bool   $subset
2341 2341
  * @param bool   $includedeleted
Please login to merge, or discard this patch.