@@ -27,7 +27,7 @@ |
||
| 27 | 27 | |
| 28 | 28 | defined('MOODLE_INTERNAL') || die(); |
| 29 | 29 | |
| 30 | -require_once($CFG->dirroot . '/mod/bigbluebuttonbn/locallib.php'); |
|
| 30 | +require_once($CFG->dirroot.'/mod/bigbluebuttonbn/locallib.php'); |
|
| 31 | 31 | |
| 32 | 32 | /** |
| 33 | 33 | * The mod_bigbluebuttonbn class for event name definition. |
@@ -43,7 +43,7 @@ |
||
| 43 | 43 | */ |
| 44 | 44 | protected function init($crud = 'r', $edulevel = self::LEVEL_PARTICIPATING) { |
| 45 | 45 | parent::init($crud, $edulevel); |
| 46 | - $this->description = "The user with id '##userid' viewed the bigbluebuttonbn activity " . |
|
| 46 | + $this->description = "The user with id '##userid' viewed the bigbluebuttonbn activity ". |
|
| 47 | 47 | "with id '##objectid' for the course id '##courseid'."; |
| 48 | 48 | } |
| 49 | 49 | |
@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | */ |
| 62 | 62 | public static function view_bigbluebuttonbn($bigbluebuttonbnid) { |
| 63 | 63 | global $DB, $CFG; |
| 64 | - require_once($CFG->dirroot . "/mod/bigbluebuttonbn/lib.php"); |
|
| 64 | + require_once($CFG->dirroot."/mod/bigbluebuttonbn/lib.php"); |
|
| 65 | 65 | |
| 66 | 66 | $params = self::validate_parameters(self::view_bigbluebuttonbn_parameters(), |
| 67 | 67 | array( |
@@ -109,7 +109,7 @@ discard block |
||
| 109 | 109 | * @since Moodle 3.3 |
| 110 | 110 | */ |
| 111 | 111 | public static function get_bigbluebuttonbns_by_courses_parameters() { |
| 112 | - return new external_function_parameters ( |
|
| 112 | + return new external_function_parameters( |
|
| 113 | 113 | array( |
| 114 | 114 | 'courseids' => new external_multiple_structure( |
| 115 | 115 | new external_value(PARAM_INT, 'Course id'), 'Array of course ids', VALUE_DEFAULT, array() |
@@ -27,7 +27,7 @@ discard block |
||
| 27 | 27 | |
| 28 | 28 | defined('MOODLE_INTERNAL') || die(); |
| 29 | 29 | |
| 30 | -require_once($CFG->dirroot . '/mod/bigbluebuttonbn/locallib.php'); |
|
| 30 | +require_once($CFG->dirroot.'/mod/bigbluebuttonbn/locallib.php'); |
|
| 31 | 31 | require_once($CFG->libdir.'/adminlib.php'); |
| 32 | 32 | |
| 33 | 33 | /** |
@@ -63,12 +63,12 @@ discard block |
||
| 63 | 63 | */ |
| 64 | 64 | public function render_group_header($name, $itemname = null, $itemdescription = null) { |
| 65 | 65 | if ($itemname === null) { |
| 66 | - $itemname = get_string('config_' . $name, 'bigbluebuttonbn'); |
|
| 66 | + $itemname = get_string('config_'.$name, 'bigbluebuttonbn'); |
|
| 67 | 67 | } |
| 68 | 68 | if ($itemdescription === null) { |
| 69 | - $itemdescription = get_string('config_' .$name . '_description', 'bigbluebuttonbn'); |
|
| 69 | + $itemdescription = get_string('config_'.$name.'_description', 'bigbluebuttonbn'); |
|
| 70 | 70 | } |
| 71 | - $item = new \admin_setting_heading('bigbluebuttonbn_config_' . $name, $itemname, $itemdescription); |
|
| 71 | + $item = new \admin_setting_heading('bigbluebuttonbn_config_'.$name, $itemname, $itemdescription); |
|
| 72 | 72 | $this->settings->add($item); |
| 73 | 73 | } |
| 74 | 74 | |
@@ -97,9 +97,9 @@ discard block |
||
| 97 | 97 | * @return Object |
| 98 | 98 | */ |
| 99 | 99 | public function render_group_element_text($name, $default = null, $type = PARAM_RAW) { |
| 100 | - $item = new \admin_setting_configtext('bigbluebuttonbn_' . $name, |
|
| 101 | - get_string('config_' . $name, 'bigbluebuttonbn'), |
|
| 102 | - get_string('config_' . $name . '_description', 'bigbluebuttonbn'), |
|
| 100 | + $item = new \admin_setting_configtext('bigbluebuttonbn_'.$name, |
|
| 101 | + get_string('config_'.$name, 'bigbluebuttonbn'), |
|
| 102 | + get_string('config_'.$name.'_description', 'bigbluebuttonbn'), |
|
| 103 | 103 | $default, $type); |
| 104 | 104 | return $item; |
| 105 | 105 | } |
@@ -113,9 +113,9 @@ discard block |
||
| 113 | 113 | * @return Object |
| 114 | 114 | */ |
| 115 | 115 | public function render_group_element_checkbox($name, $default = null) { |
| 116 | - $item = new \admin_setting_configcheckbox('bigbluebuttonbn_' . $name, |
|
| 117 | - get_string('config_' . $name, 'bigbluebuttonbn'), |
|
| 118 | - get_string('config_' . $name . '_description', 'bigbluebuttonbn'), |
|
| 116 | + $item = new \admin_setting_configcheckbox('bigbluebuttonbn_'.$name, |
|
| 117 | + get_string('config_'.$name, 'bigbluebuttonbn'), |
|
| 118 | + get_string('config_'.$name.'_description', 'bigbluebuttonbn'), |
|
| 119 | 119 | $default); |
| 120 | 120 | return $item; |
| 121 | 121 | } |
@@ -130,9 +130,9 @@ discard block |
||
| 130 | 130 | * @return Object |
| 131 | 131 | */ |
| 132 | 132 | public function render_group_element_configmultiselect($name, $defaultsetting, $choices) { |
| 133 | - $item = new \admin_setting_configmultiselect('bigbluebuttonbn_' . $name, |
|
| 134 | - get_string('config_' . $name, 'bigbluebuttonbn'), |
|
| 135 | - get_string('config_' . $name . '_description', 'bigbluebuttonbn'), |
|
| 133 | + $item = new \admin_setting_configmultiselect('bigbluebuttonbn_'.$name, |
|
| 134 | + get_string('config_'.$name, 'bigbluebuttonbn'), |
|
| 135 | + get_string('config_'.$name.'_description', 'bigbluebuttonbn'), |
|
| 136 | 136 | $defaultsetting, $choices); |
| 137 | 137 | return $item; |
| 138 | 138 | } |
@@ -147,9 +147,9 @@ discard block |
||
| 147 | 147 | * @return Object |
| 148 | 148 | */ |
| 149 | 149 | public function render_group_element_configselect($name, $defaultsetting, $choices) { |
| 150 | - $item = new \admin_setting_configselect('bigbluebuttonbn_' . $name, |
|
| 151 | - get_string('config_' . $name, 'bigbluebuttonbn'), |
|
| 152 | - get_string('config_' . $name . '_description', 'bigbluebuttonbn'), |
|
| 150 | + $item = new \admin_setting_configselect('bigbluebuttonbn_'.$name, |
|
| 151 | + get_string('config_'.$name, 'bigbluebuttonbn'), |
|
| 152 | + get_string('config_'.$name.'_description', 'bigbluebuttonbn'), |
|
| 153 | 153 | $defaultsetting, $choices); |
| 154 | 154 | return $item; |
| 155 | 155 | } |
@@ -166,14 +166,14 @@ discard block |
||
| 166 | 166 | */ |
| 167 | 167 | public function render_warning_message($name, $message, $type = 'warning', $closable = true) { |
| 168 | 168 | global $OUTPUT; |
| 169 | - $output = $OUTPUT->box_start('box boxalignleft adminerror alert alert-' . $type . ' alert-block fade in', |
|
| 170 | - 'bigbluebuttonbn_' . $name)."\n"; |
|
| 169 | + $output = $OUTPUT->box_start('box boxalignleft adminerror alert alert-'.$type.' alert-block fade in', |
|
| 170 | + 'bigbluebuttonbn_'.$name)."\n"; |
|
| 171 | 171 | if ($closable) { |
| 172 | - $output .= ' <button type="button" class="close" data-dismiss="alert">×</button>' . "\n"; |
|
| 172 | + $output .= ' <button type="button" class="close" data-dismiss="alert">×</button>'."\n"; |
|
| 173 | 173 | } |
| 174 | - $output .= ' ' . $message . "\n"; |
|
| 175 | - $output .= $OUTPUT->box_end() . "\n"; |
|
| 176 | - $item = new \admin_setting_heading('bigbluebuttonbn_' . $name, '', $output); |
|
| 174 | + $output .= ' '.$message."\n"; |
|
| 175 | + $output .= $OUTPUT->box_end()."\n"; |
|
| 176 | + $item = new \admin_setting_heading('bigbluebuttonbn_'.$name, '', $output); |
|
| 177 | 177 | $this->settings->add($item); |
| 178 | 178 | return $item; |
| 179 | 179 | } |
@@ -195,8 +195,8 @@ discard block |
||
| 195 | 195 | $filemanageroptions['mainfile'] = true; |
| 196 | 196 | |
| 197 | 197 | $filemanager = new \admin_setting_configstoredfile('mod_bigbluebuttonbn/presentationdefault', |
| 198 | - get_string('config_' . $name, 'bigbluebuttonbn'), |
|
| 199 | - get_string('config_' . $name . '_description', 'bigbluebuttonbn'), |
|
| 198 | + get_string('config_'.$name, 'bigbluebuttonbn'), |
|
| 199 | + get_string('config_'.$name.'_description', 'bigbluebuttonbn'), |
|
| 200 | 200 | 'presentationdefault', |
| 201 | 201 | 0, |
| 202 | 202 | $filemanageroptions); |
@@ -91,7 +91,7 @@ |
||
| 91 | 91 | !isset($CFG->bigbluebuttonbn['recordings_imported_editable']) || |
| 92 | 92 | !isset($CFG->bigbluebuttonbn['recordings_preview_default']) || |
| 93 | 93 | !isset($CFG->bigbluebuttonbn['recordings_preview_editable']) |
| 94 | - ); |
|
| 94 | + ); |
|
| 95 | 95 | } |
| 96 | 96 | |
| 97 | 97 | /** |
@@ -27,7 +27,7 @@ discard block |
||
| 27 | 27 | |
| 28 | 28 | defined('MOODLE_INTERNAL') || die(); |
| 29 | 29 | |
| 30 | -require_once($CFG->dirroot . '/mod/bigbluebuttonbn/locallib.php'); |
|
| 30 | +require_once($CFG->dirroot.'/mod/bigbluebuttonbn/locallib.php'); |
|
| 31 | 31 | require_once($CFG->libdir.'/adminlib.php'); |
| 32 | 32 | |
| 33 | 33 | /** |
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | !isset($CFG->bigbluebuttonbn['recording_all_from_start_default']) || |
| 63 | 63 | !isset($CFG->bigbluebuttonbn['recording_all_from_start_editable']) || |
| 64 | 64 | !isset($CFG->bigbluebuttonbn['recording_hide_button_default']) || |
| 65 | - !isset($CFG->bigbluebuttonbn['recording_hide_button_editable']) ); |
|
| 65 | + !isset($CFG->bigbluebuttonbn['recording_hide_button_editable'])); |
|
| 66 | 66 | } |
| 67 | 67 | |
| 68 | 68 | /** |
@@ -85,7 +85,7 @@ discard block |
||
| 85 | 85 | return; |
| 86 | 86 | } |
| 87 | 87 | echo $OUTPUT->box_start('generalbox boxaligncenter'); |
| 88 | - echo '<br><div class="alert alert-' . $type . '">' . $message . '</div>'; |
|
| 88 | + echo '<br><div class="alert alert-'.$type.'">'.$message.'</div>'; |
|
| 89 | 89 | echo $OUTPUT->box_end(); |
| 90 | 90 | } |
| 91 | 91 | |
@@ -104,7 +104,7 @@ discard block |
||
| 104 | 104 | } |
| 105 | 105 | $typeprofiles = bigbluebuttonbn_get_instance_type_profiles(); |
| 106 | 106 | $enabledfeatures = bigbluebuttonbn_get_enabled_features($typeprofiles, $type); |
| 107 | - $pinginterval = (int)\mod_bigbluebuttonbn\locallib\config::get('waitformoderator_ping_interval') * 1000; |
|
| 107 | + $pinginterval = (int) \mod_bigbluebuttonbn\locallib\config::get('waitformoderator_ping_interval') * 1000; |
|
| 108 | 108 | // JavaScript for locales. |
| 109 | 109 | $PAGE->requires->strings_for_js(array_keys(bigbluebuttonbn_get_strings_for_js()), 'bigbluebuttonbn'); |
| 110 | 110 | // JavaScript variables. |
@@ -375,10 +375,10 @@ discard block |
||
| 375 | 375 | return ''; |
| 376 | 376 | } |
| 377 | 377 | return bigbluebuttonbn_render_warning( |
| 378 | - (string)\mod_bigbluebuttonbn\locallib\config::get('general_warning_message'), |
|
| 379 | - (string)\mod_bigbluebuttonbn\locallib\config::get('general_warning_box_type'), |
|
| 380 | - (string)\mod_bigbluebuttonbn\locallib\config::get('general_warning_button_href'), |
|
| 381 | - (string)\mod_bigbluebuttonbn\locallib\config::get('general_warning_button_text'), |
|
| 382 | - (string)\mod_bigbluebuttonbn\locallib\config::get('general_warning_button_class') |
|
| 378 | + (string) \mod_bigbluebuttonbn\locallib\config::get('general_warning_message'), |
|
| 379 | + (string) \mod_bigbluebuttonbn\locallib\config::get('general_warning_box_type'), |
|
| 380 | + (string) \mod_bigbluebuttonbn\locallib\config::get('general_warning_button_href'), |
|
| 381 | + (string) \mod_bigbluebuttonbn\locallib\config::get('general_warning_button_text'), |
|
| 382 | + (string) \mod_bigbluebuttonbn\locallib\config::get('general_warning_button_class') |
|
| 383 | 383 | ); |
| 384 | 384 | } |
@@ -64,7 +64,7 @@ discard block |
||
| 64 | 64 | * Remove this block when restored |
| 65 | 65 | */ |
| 66 | 66 | |
| 67 | - /** @var BIGBLUEBUTTONBN_DEFAULT_SERVER_URL string of default bigbluebutton server url */ |
|
| 67 | + /** @var BIGBLUEBUTTONBN_DEFAULT_SERVER_URL string of default bigbluebutton server url */ |
|
| 68 | 68 | const BIGBLUEBUTTONBN_DEFAULT_SERVER_URL = 'http://test-install.blindsidenetworks.com/bigbluebutton/'; |
| 69 | 69 | /** @var BIGBLUEBUTTONBN_DEFAULT_SHARED_SECRET string of default bigbluebutton server shared secret */ |
| 70 | 70 | const BIGBLUEBUTTONBN_DEFAULT_SHARED_SECRET = '8cd8ef52e8e101574e400365b55e11a6'; |
@@ -367,7 +367,7 @@ discard block |
||
| 367 | 367 | $sql = "SELECT COUNT(*) FROM {bigbluebuttonbn_logs} "; |
| 368 | 368 | $sql .= "WHERE courseid = ? AND bigbluebuttonbnid = ? AND userid = ? AND (log = ? OR log = ?)"; |
| 369 | 369 | $result = $DB->count_records_sql($sql, array($course->id, $bigbluebuttonbn->id, $user->id, |
| 370 | - BIGBLUEBUTTONBN_LOG_EVENT_JOIN, BIGBLUEBUTTONBN_LOG_EVENT_PLAYED)); |
|
| 370 | + BIGBLUEBUTTONBN_LOG_EVENT_JOIN, BIGBLUEBUTTONBN_LOG_EVENT_PLAYED)); |
|
| 371 | 371 | return $result; |
| 372 | 372 | } |
| 373 | 373 | |
@@ -598,12 +598,12 @@ discard block |
||
| 598 | 598 | $str = '<div class="bigbluebuttonbn overview">'."\n"; |
| 599 | 599 | $str .= ' <div class="name">'.get_string('modulename', 'bigbluebuttonbn').': '."\n"; |
| 600 | 600 | $str .= ' <a '.$classes.'href="'.$CFG->wwwroot.'/mod/bigbluebuttonbn/view.php?id='.$bigbluebuttonbn->coursemodule. |
| 601 | - '">'.$bigbluebuttonbn->name.'</a>'."\n"; |
|
| 601 | + '">'.$bigbluebuttonbn->name.'</a>'."\n"; |
|
| 602 | 602 | $str .= ' </div>'."\n"; |
| 603 | 603 | $str .= ' <div class="info">'.get_string($start, 'bigbluebuttonbn').': '.userdate($bigbluebuttonbn->openingtime). |
| 604 | 604 | '</div>'."\n"; |
| 605 | 605 | $str .= ' <div class="info">'.get_string('ends_at', 'bigbluebuttonbn').': '.userdate($bigbluebuttonbn->closingtime) |
| 606 | - .'</div>'."\n"; |
|
| 606 | + .'</div>'."\n"; |
|
| 607 | 607 | $str .= '</div>'."\n"; |
| 608 | 608 | return $str; |
| 609 | 609 | } |
@@ -845,7 +845,7 @@ discard block |
||
| 845 | 845 | 'bigbluebuttonbn', |
| 846 | 846 | $bigbluebuttonbn->id, |
| 847 | 847 | $bigbluebuttonbn->completionexpected |
| 848 | - ); |
|
| 848 | + ); |
|
| 849 | 849 | } |
| 850 | 850 | } |
| 851 | 851 | |
@@ -261,7 +261,7 @@ discard block |
||
| 261 | 261 | // Update a record. |
| 262 | 262 | $DB->update_record('bigbluebuttonbn', $bigbluebuttonbn); |
| 263 | 263 | // Get the meetingid column in the bigbluebuttonbn table. |
| 264 | - $bigbluebuttonbn->meetingid = (string)$DB->get_field('bigbluebuttonbn', 'meetingid', array('id' => $bigbluebuttonbn->id)); |
|
| 264 | + $bigbluebuttonbn->meetingid = (string) $DB->get_field('bigbluebuttonbn', 'meetingid', array('id' => $bigbluebuttonbn->id)); |
|
| 265 | 265 | // Log update action. |
| 266 | 266 | bigbluebuttonbn_log($bigbluebuttonbn, BIGBLUEBUTTONBN_LOG_EVENT_EDIT); |
| 267 | 267 | // Complete the process. |
@@ -315,9 +315,9 @@ discard block |
||
| 315 | 315 | function bigbluebuttonbn_delete_instance_log($bigbluebuttonbn) { |
| 316 | 316 | global $DB; |
| 317 | 317 | $sql = "SELECT * FROM {bigbluebuttonbn_logs} "; |
| 318 | - $sql .= "WHERE bigbluebuttonbnid = ? AND log = ? AND ". $DB->sql_compare_text('meta') . " = ?"; |
|
| 318 | + $sql .= "WHERE bigbluebuttonbnid = ? AND log = ? AND ".$DB->sql_compare_text('meta')." = ?"; |
|
| 319 | 319 | $logs = $DB->get_records_sql($sql, array($bigbluebuttonbn->id, BIGBLUEBUTTONBN_LOG_EVENT_CREATE, "{\"record\":true}")); |
| 320 | - $meta = "{\"has_recordings\":" . empty($logs) ? "true" : "false" . "}"; |
|
| 320 | + $meta = "{\"has_recordings\":".empty($logs) ? "true" : "false"."}"; |
|
| 321 | 321 | bigbluebuttonbn_log($bigbluebuttonbn, BIGBLUEBUTTONBN_LOG_EVENT_DELETE, [], $meta); |
| 322 | 322 | } |
| 323 | 323 | |
@@ -335,8 +335,8 @@ discard block |
||
| 335 | 335 | */ |
| 336 | 336 | function bigbluebuttonbn_user_outline($course, $user, $mod, $bigbluebuttonbn) { |
| 337 | 337 | if ($completed = bigbluebuttonbn_user_complete($course, $user, $bigbluebuttonbn)) { |
| 338 | - return fullname($user) . ' ' . get_string('view_message_has_joined', 'bigbluebuttonbn') . ' ' . |
|
| 339 | - get_string('view_message_session_for', 'bigbluebuttonbn') . ' ' . (string) $completed . ' ' . |
|
| 338 | + return fullname($user).' '.get_string('view_message_has_joined', 'bigbluebuttonbn').' '. |
|
| 339 | + get_string('view_message_session_for', 'bigbluebuttonbn').' '.(string) $completed.' '. |
|
| 340 | 340 | get_string('view_message_times', 'bigbluebuttonbn'); |
| 341 | 341 | } |
| 342 | 342 | return ''; |
@@ -357,12 +357,12 @@ discard block |
||
| 357 | 357 | if (is_object($courseorid)) { |
| 358 | 358 | $course = $courseorid; |
| 359 | 359 | } else { |
| 360 | - $course = (object)array('id' => $courseorid); |
|
| 360 | + $course = (object) array('id' => $courseorid); |
|
| 361 | 361 | } |
| 362 | 362 | if (is_object($userorid)) { |
| 363 | 363 | $user = $userorid; |
| 364 | 364 | } else { |
| 365 | - $user = (object)array('id' => $userorid); |
|
| 365 | + $user = (object) array('id' => $userorid); |
|
| 366 | 366 | } |
| 367 | 367 | $sql = "SELECT COUNT(*) FROM {bigbluebuttonbn_logs} "; |
| 368 | 368 | $sql .= "WHERE courseid = ? AND bigbluebuttonbnid = ? AND userid = ? AND (log = ? OR log = ?)"; |
@@ -388,7 +388,7 @@ discard block |
||
| 388 | 388 | function bigbluebuttonbn_reset_course_items() { |
| 389 | 389 | $items = array("events" => 0, "tags" => 0, "logs" => 0); |
| 390 | 390 | // Include recordings only if enabled. |
| 391 | - if ((boolean)\mod_bigbluebuttonbn\locallib\config::recordings_enabled()) { |
|
| 391 | + if ((boolean) \mod_bigbluebuttonbn\locallib\config::recordings_enabled()) { |
|
| 392 | 392 | $items["recordings"] = 0; |
| 393 | 393 | } |
| 394 | 394 | return $items; |
@@ -694,7 +694,7 @@ discard block |
||
| 694 | 694 | function bigbluebuttonbn_process_pre_save_instance(&$bigbluebuttonbn) { |
| 695 | 695 | require_once(__DIR__.'/locallib.php'); |
| 696 | 696 | $bigbluebuttonbn->timemodified = time(); |
| 697 | - if ((integer)$bigbluebuttonbn->instance == 0) { |
|
| 697 | + if ((integer) $bigbluebuttonbn->instance == 0) { |
|
| 698 | 698 | $bigbluebuttonbn->meetingid = 0; |
| 699 | 699 | $bigbluebuttonbn->timecreated = time(); |
| 700 | 700 | $bigbluebuttonbn->timemodified = 0; |
@@ -1130,7 +1130,7 @@ discard block |
||
| 1130 | 1130 | ) { |
| 1131 | 1131 | global $CFG, $DB; |
| 1132 | 1132 | |
| 1133 | - require_once($CFG->dirroot . '/mod/bigbluebuttonbn/locallib.php'); |
|
| 1133 | + require_once($CFG->dirroot.'/mod/bigbluebuttonbn/locallib.php'); |
|
| 1134 | 1134 | |
| 1135 | 1135 | // Get mod info. |
| 1136 | 1136 | $cm = get_fast_modinfo($event->courseid)->instances['bigbluebuttonbn'][$event->instance]; |
@@ -1208,7 +1208,7 @@ discard block |
||
| 1208 | 1208 | function bigbluebuttonbn_extend_settings_navigation(settings_navigation $settingsnav, navigation_node $nodenav) { |
| 1209 | 1209 | global $PAGE, $USER; |
| 1210 | 1210 | // Don't add validate completion if the callback for meetingevents is NOT enabled. |
| 1211 | - if (!(boolean)\mod_bigbluebuttonbn\locallib\config::get('meetingevents_enabled')) { |
|
| 1211 | + if (!(boolean) \mod_bigbluebuttonbn\locallib\config::get('meetingevents_enabled')) { |
|
| 1212 | 1212 | return; |
| 1213 | 1213 | } |
| 1214 | 1214 | // Don't add validate completion if user is not allowed to edit the activity. |
@@ -1216,7 +1216,7 @@ discard block |
||
| 1216 | 1216 | if (!has_capability('moodle/course:manageactivities', $context, $USER->id)) { |
| 1217 | 1217 | return; |
| 1218 | 1218 | } |
| 1219 | - $completionvalidate = '#action=completion_validate&bigbluebuttonbn=' . $PAGE->cm->instance; |
|
| 1219 | + $completionvalidate = '#action=completion_validate&bigbluebuttonbn='.$PAGE->cm->instance; |
|
| 1220 | 1220 | $nodenav->add(get_string('completionvalidatestate', 'bigbluebuttonbn'), |
| 1221 | 1221 | $completionvalidate, navigation_node::TYPE_CONTAINER); |
| 1222 | 1222 | } |
@@ -103,7 +103,7 @@ discard block |
||
| 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) { |
@@ -310,7 +310,7 @@ discard block |
||
| 310 | 310 | * |
| 311 | 311 | * @param object $bigbluebuttonbn Id of the module instance |
| 312 | 312 | * |
| 313 | - * @return bool Success/Failure |
|
| 313 | + * @return boolean|null Success/Failure |
|
| 314 | 314 | */ |
| 315 | 315 | function bigbluebuttonbn_delete_instance_log($bigbluebuttonbn) { |
| 316 | 316 | global $DB; |
@@ -331,7 +331,7 @@ discard block |
||
| 331 | 331 | * @param object $mod |
| 332 | 332 | * @param object $bigbluebuttonbn |
| 333 | 333 | * |
| 334 | - * @return bool |
|
| 334 | + * @return string |
|
| 335 | 335 | */ |
| 336 | 336 | function bigbluebuttonbn_user_outline($course, $user, $mod, $bigbluebuttonbn) { |
| 337 | 337 | if ($completed = bigbluebuttonbn_user_complete($course, $user, $bigbluebuttonbn)) { |
@@ -917,7 +917,7 @@ discard block |
||
| 917 | 917 | * @param stdClass $context context object |
| 918 | 918 | * @param string $filearea file area |
| 919 | 919 | * |
| 920 | - * @return false|null false if file not valid |
|
| 920 | + * @return boolean false if file not valid |
|
| 921 | 921 | */ |
| 922 | 922 | function bigbluebuttonbn_pluginfile_valid($context, $filearea) { |
| 923 | 923 | |
@@ -28,7 +28,7 @@ |
||
| 28 | 28 | |
| 29 | 29 | defined('MOODLE_INTERNAL') || die(); |
| 30 | 30 | |
| 31 | -require_once($CFG->dirroot . '/mod/bigbluebuttonbn/locallib.php'); |
|
| 31 | +require_once($CFG->dirroot.'/mod/bigbluebuttonbn/locallib.php'); |
|
| 32 | 32 | |
| 33 | 33 | /** |
| 34 | 34 | * Class containing the scheduled task for lti module. |
@@ -27,7 +27,7 @@ discard block |
||
| 27 | 27 | |
| 28 | 28 | defined('MOODLE_INTERNAL') || die(); |
| 29 | 29 | |
| 30 | -require_once($CFG->dirroot . '/mod/bigbluebuttonbn/locallib.php'); |
|
| 30 | +require_once($CFG->dirroot.'/mod/bigbluebuttonbn/locallib.php'); |
|
| 31 | 31 | |
| 32 | 32 | /** |
| 33 | 33 | * Helper class for sending notifications. |
@@ -115,7 +115,7 @@ discard block |
||
| 115 | 115 | */ |
| 116 | 116 | public static function htmlmsg_recording_ready($bigbluebuttonbn) { |
| 117 | 117 | return '<p>'.get_string('email_body_recording_ready_for', 'bigbluebuttonbn'). |
| 118 | - ' "' . $bigbluebuttonbn->name . '" '. |
|
| 118 | + ' "'.$bigbluebuttonbn->name.'" '. |
|
| 119 | 119 | get_string('email_body_recording_ready_is_ready', 'bigbluebuttonbn').'.</p>'; |
| 120 | 120 | } |
| 121 | 121 | |
@@ -158,7 +158,7 @@ discard block |
||
| 158 | 158 | // Enqueue it. |
| 159 | 159 | \core\task\manager::queue_adhoc_task($task); |
| 160 | 160 | } catch (Exception $e) { |
| 161 | - mtrace("Error while enqueuing completion_uopdate_state task. " . (string) $e); |
|
| 161 | + mtrace("Error while enqueuing completion_uopdate_state task. ".(string) $e); |
|
| 162 | 162 | } |
| 163 | 163 | } |
| 164 | 164 | } |
@@ -111,7 +111,7 @@ |
||
| 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'). |