Completed
Pull Request — master (#122)
by Jesus
02:13
created
lib.php 1 patch
Doc Comments   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
  * @uses FEATURE_GRADE_OUTCOMES
99 99
  * @uses FEATURE_SHOW_DESCRIPTION
100 100
  * @param string $feature
101
- * @return mixed True if yes (some features may use other values)
101
+ * @return null|boolean True if yes (some features may use other values)
102 102
  */
103 103
 function bigbluebuttonbn_supports($feature) {
104 104
     if (!$feature) {
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
  *
184 184
  * @param int $id Id of the module instance
185 185
  *
186
- * @return bool Success/Failure
186
+ * @return boolean|null Success/Failure
187 187
  */
188 188
 function bigbluebuttonbn_delete_instance($id) {
189 189
     global $DB;
@@ -210,7 +210,7 @@  discard block
 block discarded – undo
210 210
  *
211 211
  * @param object $bigbluebuttonbn Id of the module instance
212 212
  *
213
- * @return bool Success/Failure
213
+ * @return boolean|null Success/Failure
214 214
  */
215 215
 function bigbluebuttonbn_delete_instance_log($bigbluebuttonbn) {
216 216
     global $DB;
@@ -231,7 +231,7 @@  discard block
 block discarded – undo
231 231
  * @param object $mod
232 232
  * @param object $bigbluebuttonbn
233 233
  *
234
- * @return bool
234
+ * @return string
235 235
  */
236 236
 function bigbluebuttonbn_user_outline($course, $user, $mod, $bigbluebuttonbn) {
237 237
     if ($completed = bigbluebuttonbn_user_complete($course, $user, $mod, $bigbluebuttonbn)) {
@@ -251,7 +251,7 @@  discard block
 block discarded – undo
251 251
  * @param object $mod
252 252
  * @param object $bigbluebuttonbn
253 253
  *
254
- * @return bool
254
+ * @return integer
255 255
  */
256 256
 function bigbluebuttonbn_user_complete($courseorid, $userorid, $mod, $bigbluebuttonbn) {
257 257
     global $DB;
@@ -624,7 +624,7 @@  discard block
 block discarded – undo
624 624
  * @param stdClass $context       context object
625 625
  * @param string   $filearea      file area
626 626
  *
627
- * @return false|null false if file not valid
627
+ * @return boolean false if file not valid
628 628
  */
629 629
 function bigbluebuttonbn_pluginfile_valid($context, $filearea) {
630 630
 
Please login to merge, or discard this patch.
classes/output/index.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -110,7 +110,7 @@
 block discarded – undo
110 110
      * Displays the general view.
111 111
      *
112 112
      * @param boolean $moderator
113
-     * @param object $course
113
+     * @param stdClass $course
114 114
      * @param object $bigbluebuttonbn
115 115
      * @param object $groupobj
116 116
      * @return array
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
@@ -296,7 +296,7 @@  discard block
 block discarded – undo
296 296
  * Helper function to retrieve imported recordings from the Moodle database.
297 297
  * The references are stored as events in bigbluebuttonbn_logs.
298 298
  *
299
- * @param string $courseid
299
+ * @param integer $courseid
300 300
  * @param string $bigbluebuttonbnid
301 301
  * @param bool   $subset
302 302
  *
@@ -324,7 +324,7 @@  discard block
 block discarded – undo
324 324
 /**
325 325
  * Helper function to retrive the default config.xml file.
326 326
  *
327
- * @return string
327
+ * @return null|SimpleXMLElement
328 328
  */
329 329
 function bigbluebuttonbn_get_default_config_xml() {
330 330
     $xml = bigbluebuttonbn_wrap_xml_load_file(
@@ -406,7 +406,7 @@  discard block
 block discarded – undo
406 406
  * @param object $a
407 407
  * @param object $b
408 408
  *
409
- * @return array
409
+ * @return integer
410 410
  */
411 411
 function bigbluebuttonbn_recording_build_sorter($a, $b) {
412 412
     global $CFG;
@@ -520,7 +520,7 @@  discard block
 block discarded – undo
520 520
  * @param string $data
521 521
  * @param string $contenttype
522 522
  *
523
- * @return object
523
+ * @return null|SimpleXMLElement
524 524
  */
525 525
 function bigbluebuttonbn_wrap_xml_load_file($url, $method = 'GET', $data = null, $contenttype = 'text/xml') {
526 526
     if (extension_loaded('curl')) {
@@ -561,7 +561,7 @@  discard block
 block discarded – undo
561 561
  * @param string $data
562 562
  * @param string $contenttype
563 563
  *
564
- * @return object
564
+ * @return string
565 565
  */
566 566
 function bigbluebuttonbn_wrap_xml_load_file_curl_request($url, $method = 'GET', $data = null, $contenttype = 'text/xml') {
567 567
     $c = new curl();
@@ -934,7 +934,7 @@  discard block
 block discarded – undo
934 934
  * @param integer $instance
935 935
  * @param integer $voicebridge
936 936
  *
937
- * @return string
937
+ * @return boolean
938 938
  */
939 939
 function bigbluebuttonbn_voicebridge_unique($instance, $voicebridge) {
940 940
     global $DB;
@@ -1257,7 +1257,7 @@  discard block
 block discarded – undo
1257 1257
  * @param string $meetingid
1258 1258
  * @param string $configxml
1259 1259
  *
1260
- * @return object
1260
+ * @return null|SimpleXMLElement
1261 1261
  */
1262 1262
 function bigbluebuttonbn_set_config_xml($meetingid, $configxml) {
1263 1263
     $urldefaultconfig = \mod_bigbluebuttonbn\locallib\config::get('server_url').'api/setConfigXML?';
@@ -1306,7 +1306,7 @@  discard block
 block discarded – undo
1306 1306
  * @param array $recording
1307 1307
  * @param array $tools
1308 1308
  *
1309
- * @return array
1309
+ * @return null|stdClass
1310 1310
  */
1311 1311
 function bigbluebuttonbn_get_recording_data_row($bbbsession, $recording, $tools = ['protect', 'publish', 'delete']) {
1312 1312
     if (!bigbluebuttonbn_include_recording_table_row($bbbsession, $recording)) {
@@ -1932,7 +1932,7 @@  discard block
 block discarded – undo
1932 1932
  *
1933 1933
  * @param array $bbbsession
1934 1934
  * @param array $recording
1935
- * @param object $rowdata
1935
+ * @param stdClass $rowdata
1936 1936
  *
1937 1937
  * @return object
1938 1938
  */
@@ -2050,7 +2050,7 @@  discard block
 block discarded – undo
2050 2050
  *
2051 2051
  * @param array $bbbsession
2052 2052
  * @param array $recordings
2053
- * @param array $tools
2053
+ * @param string[] $tools
2054 2054
  *
2055 2055
  * @return array
2056 2056
  */
@@ -2128,7 +2128,7 @@  discard block
 block discarded – undo
2128 2128
  * Helper function to define the sql used for gattering the bigbluebuttonbnids whose meetingids should be included
2129 2129
  * in the getRecordings request considering only those that belong to deleted activities.
2130 2130
  *
2131
- * @param string $courseid
2131
+ * @param integer $courseid
2132 2132
  * @param string $bigbluebuttonbnid
2133 2133
  * @param bool   $subset
2134 2134
  *
@@ -2152,7 +2152,7 @@  discard block
 block discarded – undo
2152 2152
  * Helper function to define the sql used for gattering the bigbluebuttonbnids whose meetingids should be included
2153 2153
  * in the getRecordings request considering only those that belong to imported recordings.
2154 2154
  *
2155
- * @param string $courseid
2155
+ * @param integer $courseid
2156 2156
  * @param string $bigbluebuttonbnid
2157 2157
  * @param bool   $subset
2158 2158
  *
@@ -2175,7 +2175,7 @@  discard block
 block discarded – undo
2175 2175
 /**
2176 2176
  * Helper function to get recordings  and imported recordings together.
2177 2177
  *
2178
- * @param string $courseid
2178
+ * @param integer $courseid
2179 2179
  * @param string $bigbluebuttonbnid
2180 2180
  * @param bool   $subset
2181 2181
  * @param bool   $includedeleted
@@ -2193,7 +2193,7 @@  discard block
 block discarded – undo
2193 2193
  * Helper function to retrieve recordings from the BigBlueButton. The references are stored as events
2194 2194
  * in bigbluebuttonbn_logs.
2195 2195
  *
2196
- * @param string $courseid
2196
+ * @param integer $courseid
2197 2197
  * @param string $bigbluebuttonbnid
2198 2198
  * @param bool   $subset
2199 2199
  * @param bool   $includedeleted
Please login to merge, or discard this patch.