Completed
Pull Request — master (#94)
by
unknown
02:13
created
mod_form.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -26,8 +26,8 @@  discard block
 block discarded – undo
26 26
 
27 27
 defined('MOODLE_INTERNAL') || die();
28 28
 
29
-require_once(dirname(__FILE__).'/locallib.php');
30
-require_once($CFG->dirroot.'/course/moodleform_mod.php');
29
+require_once(dirname(__FILE__) . '/locallib.php');
30
+require_once($CFG->dirroot . '/course/moodleform_mod.php');
31 31
 
32 32
 /**
33 33
  * Moodle class for mod_form.
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
         $serverversion = bigbluebuttonbn_get_server_version();
49 49
         if (is_null($serverversion)) {
50 50
             print_error('general_error_unable_connect', 'bigbluebuttonbn',
51
-                $CFG->wwwroot.'/admin/settings.php?section=modsettingbigbluebuttonbn');
51
+                $CFG->wwwroot . '/admin/settings.php?section=modsettingbigbluebuttonbn');
52 52
             return;
53 53
         }
54 54
         // Context.
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
         // If none is allowed, fail and return
80 80
         if (empty($jsvars['instanceTypeProfiles'])) {
81 81
             print_error('general_error_not_allowed_to_create_instances)', 'bigbluebuttonbn',
82
-                $CFG->wwwroot.'/admin/settings.php?section=modsettingbigbluebuttonbn');
82
+                $CFG->wwwroot . '/admin/settings.php?section=modsettingbigbluebuttonbn');
83 83
             return;
84 84
         }
85 85
         $this->bigbluebuttonbn_mform_add_block_profiles($mform, $jsvars['instanceTypeProfiles']);
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
                 );
128 128
                 $defaultvalues['presentation'] = $draftitemid;
129 129
             } catch (Exception $e) {
130
-                debugging('Presentation could not be loaded: '.$e->getMessage(), DEBUG_DEVELOPER);
130
+                debugging('Presentation could not be loaded: ' . $e->getMessage(), DEBUG_DEVELOPER);
131 131
                 return;
132 132
             }
133 133
         }
@@ -453,7 +453,7 @@  discard block
 block discarded – undo
453 453
             return;
454 454
         }
455 455
         $mform->addElement($type, $name, get_string($descriptionkey, 'bigbluebuttonbn'), $options);
456
-        if (get_string_manager()->string_exists($descriptionkey.'_help', 'bigbluebuttonbn')) {
456
+        if (get_string_manager()->string_exists($descriptionkey . '_help', 'bigbluebuttonbn')) {
457 457
             $mform->addHelpButton($name, $descriptionkey, 'bigbluebuttonbn');
458 458
         }
459 459
         if (!empty($rule)) {
Please login to merge, or discard this patch.
locallib.php 1 patch
Doc Comments   +13 added lines, -14 removed lines patch added patch discarded remove patch
@@ -272,7 +272,7 @@  discard block
 block discarded – undo
272 272
  * Helper function to retrieve imported recordings from the Moodle database.
273 273
  * The references are stored as events in bigbluebuttonbn_logs.
274 274
  *
275
- * @param string $courseid
275
+ * @param integer $courseid
276 276
  * @param string $bigbluebuttonbnid
277 277
  * @param bool   $subset
278 278
  *
@@ -300,7 +300,7 @@  discard block
 block discarded – undo
300 300
 /**
301 301
  * Helper function to retrive the default config.xml file.
302 302
  *
303
- * @return string
303
+ * @return null|SimpleXMLElement
304 304
  */
305 305
 function bigbluebuttonbn_get_default_config_xml() {
306 306
     $xml = bigbluebuttonbn_wrap_xml_load_file(
@@ -382,7 +382,7 @@  discard block
 block discarded – undo
382 382
  * @param object $a
383 383
  * @param object $b
384 384
  *
385
- * @return array
385
+ * @return integer
386 386
  */
387 387
 function bigbluebuttonbn_recording_build_sorter($a, $b) {
388 388
     if ($a['startTime'] < $b['startTime']) {
@@ -493,7 +493,7 @@  discard block
 block discarded – undo
493 493
  * @param string $data
494 494
  * @param string $contenttype
495 495
  *
496
- * @return object
496
+ * @return null|SimpleXMLElement
497 497
  */
498 498
 function bigbluebuttonbn_wrap_xml_load_file($url, $method = 'GET', $data = null, $contenttype = 'text/xml') {
499 499
     if (extension_loaded('curl')) {
@@ -534,7 +534,7 @@  discard block
 block discarded – undo
534 534
  * @param string $data
535 535
  * @param string $contenttype
536 536
  *
537
- * @return object
537
+ * @return string
538 538
  */
539 539
 function bigbluebuttonbn_wrap_xml_load_file_curl_request($url, $method = 'GET', $data = null, $contenttype = 'text/xml') {
540 540
     $c = new curl();
@@ -904,7 +904,7 @@  discard block
 block discarded – undo
904 904
  * @param integer $instance
905 905
  * @param integer $voicebridge
906 906
  *
907
- * @return string
907
+ * @return boolean
908 908
  */
909 909
 function bigbluebuttonbn_voicebridge_unique($instance, $voicebridge) {
910 910
     global $DB;
@@ -1186,7 +1186,7 @@  discard block
 block discarded – undo
1186 1186
  * @param string $meetingid
1187 1187
  * @param string $configxml
1188 1188
  *
1189
- * @return object
1189
+ * @return null|SimpleXMLElement
1190 1190
  */
1191 1191
 function bigbluebuttonbn_set_config_xml($meetingid, $configxml) {
1192 1192
     $urldefaultconfig = \mod_bigbluebuttonbn\locallib\config::get('server_url').'api/setConfigXML?';
@@ -1235,7 +1235,7 @@  discard block
 block discarded – undo
1235 1235
  * @param array $recording
1236 1236
  * @param array $tools
1237 1237
  *
1238
- * @return array
1238
+ * @return null|stdClass
1239 1239
  */
1240 1240
 function bigbluebuttonbn_get_recording_data_row($bbbsession, $recording, $tools = ['protect', 'publish', 'delete']) {
1241 1241
     if (!bigbluebuttonbn_include_recording_table_row($bbbsession, $recording)) {
@@ -1799,7 +1799,7 @@  discard block
 block discarded – undo
1799 1799
  *
1800 1800
  * @param array $bbbsession
1801 1801
  * @param array $recording
1802
- * @param object $rowdata
1802
+ * @param stdClass $rowdata
1803 1803
  *
1804 1804
  * @return object
1805 1805
  */
@@ -1994,7 +1994,7 @@  discard block
 block discarded – undo
1994 1994
  * Helper function to define the sql used for gattering the bigbluebuttonbnids whose meetingids should be included
1995 1995
  * in the getRecordings request considering only those that belong to deleted activities.
1996 1996
  *
1997
- * @param string $courseid
1997
+ * @param integer $courseid
1998 1998
  * @param string $bigbluebuttonbnid
1999 1999
  * @param bool   $subset
2000 2000
  *
@@ -2018,7 +2018,7 @@  discard block
 block discarded – undo
2018 2018
  * Helper function to define the sql used for gattering the bigbluebuttonbnids whose meetingids should be included
2019 2019
  * in the getRecordings request considering only those that belong to imported recordings.
2020 2020
  *
2021
- * @param string $courseid
2021
+ * @param integer $courseid
2022 2022
  * @param string $bigbluebuttonbnid
2023 2023
  * @param bool   $subset
2024 2024
  *
@@ -2041,7 +2041,7 @@  discard block
 block discarded – undo
2041 2041
 /**
2042 2042
  * Helper function to get recordings  and imported recordings together.
2043 2043
  *
2044
- * @param string $courseid
2044
+ * @param integer $courseid
2045 2045
  * @param string $bigbluebuttonbnid
2046 2046
  * @param bool   $subset
2047 2047
  * @param bool   $includedeleted
@@ -2059,7 +2059,7 @@  discard block
 block discarded – undo
2059 2059
  * Helper function to retrieve recordings from the BigBlueButton. The references are stored as events
2060 2060
  * in bigbluebuttonbn_logs.
2061 2061
  *
2062
- * @param string $courseid
2062
+ * @param integer $courseid
2063 2063
  * @param string $bigbluebuttonbnid
2064 2064
  * @param bool   $subset
2065 2065
  * @param bool   $includedeleted
@@ -2218,7 +2218,6 @@  discard block
 block discarded – undo
2218 2218
  * Helper function returns an array with the profiles (with features per profile) for the different types
2219 2219
  * of bigbluebuttonbn instances allowed for the user.
2220 2220
  *
2221
- * @param array $profiles
2222 2221
  *
2223 2222
  * @return array
2224 2223
  */
Please login to merge, or discard this patch.