@@ -54,8 +54,8 @@ discard block |
||
| 54 | 54 | $groupname = groups_get_group_name($bbbsession['group']); |
| 55 | 55 | } |
| 56 | 56 | // Assign group default values. |
| 57 | - $bbbsession['meetingid'] .= '['.$bbbsession['group'].']'; |
|
| 58 | - $bbbsession['meetingname'] .= ' ('.$groupname.')'; |
|
| 57 | + $bbbsession['meetingid'] .= '[' . $bbbsession['group'] . ']'; |
|
| 58 | + $bbbsession['meetingname'] .= ' (' . $groupname . ')'; |
|
| 59 | 59 | if (count($groups) == 0) { |
| 60 | 60 | // Only the All participants group exists. |
| 61 | 61 | bigbluebuttonbn_view_message_box($bbbsession, get_string('view_groups_notenrolled_warning', 'bigbluebuttonbn'), 'info'); |
@@ -65,7 +65,7 @@ discard block |
||
| 65 | 65 | if (has_capability('moodle/site:accessallgroups', $context)) { |
| 66 | 66 | bigbluebuttonbn_view_message_box($bbbsession, get_string('view_groups_selection_warning', 'bigbluebuttonbn')); |
| 67 | 67 | } |
| 68 | - $urltoroot = $CFG->wwwroot.'/mod/bigbluebuttonbn/view.php?id='.$bbbsession['cm']->id; |
|
| 68 | + $urltoroot = $CFG->wwwroot . '/mod/bigbluebuttonbn/view.php?id=' . $bbbsession['cm']->id; |
|
| 69 | 69 | groups_print_activity_menu($bbbsession['cm'], $urltoroot); |
| 70 | 70 | echo '<br><br>'; |
| 71 | 71 | } |
@@ -137,7 +137,7 @@ discard block |
||
| 137 | 137 | $recordingsdisabled = get_string('view_message_recordings_disabled', 'bigbluebuttonbn'); |
| 138 | 138 | $output .= bigbluebuttonbn_render_warning($recordingsdisabled, 'danger'); |
| 139 | 139 | } |
| 140 | - echo $output.html_writer::empty_tag('br').html_writer::empty_tag('br').html_writer::empty_tag('br'); |
|
| 140 | + echo $output . html_writer::empty_tag('br') . html_writer::empty_tag('br') . html_writer::empty_tag('br'); |
|
| 141 | 141 | $PAGE->requires->yui_module('moodle-mod_bigbluebuttonbn-broker', 'M.mod_bigbluebuttonbn.broker.init', array($jsvars)); |
| 142 | 142 | } |
| 143 | 143 | |
@@ -206,12 +206,12 @@ discard block |
||
| 206 | 206 | // JavaScript variables for room. |
| 207 | 207 | $openingtime = ''; |
| 208 | 208 | if ($bbbsession['openingtime']) { |
| 209 | - $openingtime = get_string('mod_form_field_openingtime', 'bigbluebuttonbn').': '. |
|
| 209 | + $openingtime = get_string('mod_form_field_openingtime', 'bigbluebuttonbn') . ': ' . |
|
| 210 | 210 | userdate($bbbsession['openingtime']); |
| 211 | 211 | } |
| 212 | 212 | $closingtime = ''; |
| 213 | 213 | if ($bbbsession['closingtime']) { |
| 214 | - $closingtime = get_string('mod_form_field_closingtime', 'bigbluebuttonbn').': '. |
|
| 214 | + $closingtime = get_string('mod_form_field_closingtime', 'bigbluebuttonbn') . ': ' . |
|
| 215 | 215 | userdate($bbbsession['closingtime']); |
| 216 | 216 | } |
| 217 | 217 | $jsvars += array( |
@@ -228,7 +228,7 @@ discard block |
||
| 228 | 228 | $output .= $OUTPUT->box_end(); |
| 229 | 229 | // Action button box. |
| 230 | 230 | $output .= $OUTPUT->box_start('generalbox boxaligncenter', 'bigbluebuttonbn_view_action_button_box'); |
| 231 | - $output .= '<br><br><span id="join_button"></span> <span id="end_button"></span>'."\n"; |
|
| 231 | + $output .= '<br><br><span id="join_button"></span> <span id="end_button"></span>' . "\n"; |
|
| 232 | 232 | $output .= $OUTPUT->box_end(); |
| 233 | 233 | if ($activity == 'ended') { |
| 234 | 234 | $output .= bigbluebuttonbn_view_ended($bbbsession); |
@@ -281,7 +281,7 @@ discard block |
||
| 281 | 281 | // If there are meetings with recordings load the data to the table. |
| 282 | 282 | if ($bbbsession['bigbluebuttonbn']->recordings_html) { |
| 283 | 283 | // Render a plain html table. |
| 284 | - return bigbluebuttonbn_output_recording_table($bbbsession, $recordings)."\n"; |
|
| 284 | + return bigbluebuttonbn_output_recording_table($bbbsession, $recordings) . "\n"; |
|
| 285 | 285 | } |
| 286 | 286 | // JavaScript variables for recordings with YUI. |
| 287 | 287 | $jsvars += array( |
@@ -318,8 +318,8 @@ discard block |
||
| 318 | 318 | array('type' => 'button', |
| 319 | 319 | 'value' => get_string('view_recording_button_import', 'bigbluebuttonbn'), |
| 320 | 320 | 'class' => 'btn btn-secondary', |
| 321 | - 'onclick' => 'window.location=\''.$CFG->wwwroot.'/mod/bigbluebuttonbn/import_view.php?bn='. |
|
| 322 | - $bbbsession['bigbluebuttonbn']->id.'\'')); |
|
| 321 | + 'onclick' => 'window.location=\'' . $CFG->wwwroot . '/mod/bigbluebuttonbn/import_view.php?bn=' . |
|
| 322 | + $bbbsession['bigbluebuttonbn']->id . '\'')); |
|
| 323 | 323 | $output = html_writer::empty_tag('br'); |
| 324 | 324 | $output .= html_writer::tag('span', $button, array('id' => 'import_recording_links_button')); |
| 325 | 325 | $output .= html_writer::tag('span', '', array('id' => 'import_recording_links_table')); |
@@ -338,10 +338,10 @@ discard block |
||
| 338 | 338 | if (!is_null($bbbsession['presentation']['url'])) { |
| 339 | 339 | $attributes = array('title' => $bbbsession['presentation']['name']); |
| 340 | 340 | $icon = new pix_icon($bbbsession['presentation']['icon'], $bbbsession['presentation']['mimetype_description']); |
| 341 | - return '<h4>'.get_string('view_section_title_presentation', 'bigbluebuttonbn').'</h4>'. |
|
| 342 | - $OUTPUT->action_icon($bbbsession['presentation']['url'], $icon, null, array(), false). |
|
| 341 | + return '<h4>' . get_string('view_section_title_presentation', 'bigbluebuttonbn') . '</h4>' . |
|
| 342 | + $OUTPUT->action_icon($bbbsession['presentation']['url'], $icon, null, array(), false) . |
|
| 343 | 343 | $OUTPUT->action_link($bbbsession['presentation']['url'], |
| 344 | - $bbbsession['presentation']['name'], null, $attributes).'<br><br>'; |
|
| 344 | + $bbbsession['presentation']['name'], null, $attributes) . '<br><br>'; |
|
| 345 | 345 | } |
| 346 | 346 | return ''; |
| 347 | 347 | } |
@@ -208,7 +208,7 @@ discard block |
||
| 208 | 208 | function bigbluebuttonbn_broker_recording_info_current($recording, $params) { |
| 209 | 209 | $callbackresponse['status'] = true; |
| 210 | 210 | $callbackresponse['found'] = true; |
| 211 | - $callbackresponse['published'] = (string) $recording['published']; |
|
| 211 | + $callbackresponse['published'] = (string)$recording['published']; |
|
| 212 | 212 | if (!isset($params['meta']) || empty($params['meta'])) { |
| 213 | 213 | return $callbackresponse; |
| 214 | 214 | } |
@@ -559,8 +559,8 @@ discard block |
||
| 559 | 559 | array('HS256') |
| 560 | 560 | ); |
| 561 | 561 | } catch (Exception $e) { |
| 562 | - $error = 'Caught exception: '.$e->getMessage(); |
|
| 563 | - header('HTTP/1.0 400 Bad Request. '.$error); |
|
| 562 | + $error = 'Caught exception: ' . $e->getMessage(); |
|
| 563 | + header('HTTP/1.0 400 Bad Request. ' . $error); |
|
| 564 | 564 | return; |
| 565 | 565 | } |
| 566 | 566 | // Validate that the bigbluebuttonbn activity corresponds to the meeting_id received. |
@@ -590,8 +590,8 @@ discard block |
||
| 590 | 590 | bigbluebuttonbn_log($bigbluebuttonbn, BIGBLUEBUTTON_LOG_EVENT_CALLBACK, $overrides, json_encode($meta)); |
| 591 | 591 | header('HTTP/1.0 202 Accepted'); |
| 592 | 592 | } catch (Exception $e) { |
| 593 | - $error = 'Caught exception: '.$e->getMessage(); |
|
| 594 | - header('HTTP/1.0 503 Service Unavailable. '.$error); |
|
| 593 | + $error = 'Caught exception: ' . $e->getMessage(); |
|
| 594 | + header('HTTP/1.0 503 Service Unavailable. ' . $error); |
|
| 595 | 595 | } |
| 596 | 596 | } |
| 597 | 597 | |
@@ -612,13 +612,13 @@ discard block |
||
| 612 | 612 | $importrecordings = $SESSION->bigbluebuttonbn_importrecordings; |
| 613 | 613 | if (!isset($importrecordings[$params['id']])) { |
| 614 | 614 | $error = "Recording {$params['id']} could not be found. It can not be imported"; |
| 615 | - header('HTTP/1.0 404 Not found. '.$error); |
|
| 615 | + header('HTTP/1.0 404 Not found. ' . $error); |
|
| 616 | 616 | return; |
| 617 | 617 | } |
| 618 | 618 | $callbackresponse = array('status' => true); |
| 619 | 619 | $importrecordings[$params['id']]['imported'] = true; |
| 620 | 620 | $overrides = array('meetingid' => $importrecordings[$params['id']]['meetingID']); |
| 621 | - $meta = '{"recording":'.json_encode($importrecordings[$params['id']]).'}'; |
|
| 621 | + $meta = '{"recording":' . json_encode($importrecordings[$params['id']]) . '}'; |
|
| 622 | 622 | bigbluebuttonbn_log($bbbsession['bigbluebuttonbn'], BIGBLUEBUTTONBN_LOG_EVENT_IMPORT, $overrides, $meta); |
| 623 | 623 | // Moodle event logger: Create an event for recording imported. |
| 624 | 624 | if (isset($bbbsession['bigbluebutton']) && isset($bbbsession['cm'])) { |
@@ -712,7 +712,7 @@ discard block |
||
| 712 | 712 | $action = strtolower($params['action']); |
| 713 | 713 | $requiredparams = bigbluebuttonbn_broker_required_parameters(); |
| 714 | 714 | if (!array_key_exists($action, $requiredparams)) { |
| 715 | - return 'Action '.$params['action'].' can not be performed.'; |
|
| 715 | + return 'Action ' . $params['action'] . ' can not be performed.'; |
|
| 716 | 716 | } |
| 717 | 717 | return bigbluebuttonbn_broker_validate_parameters_message($params, $requiredparams[$action]); |
| 718 | 718 | } |
@@ -858,7 +858,7 @@ discard block |
||
| 858 | 858 | $tabledata = array(); |
| 859 | 859 | $typeprofiles = bigbluebuttonbn_get_instance_type_profiles(); |
| 860 | 860 | $tabledata['activity'] = bigbluebuttonbn_view_get_activity_status($bbbsession); |
| 861 | - $tabledata['ping_interval'] = (int) \mod_bigbluebuttonbn\locallib\config::get('waitformoderator_ping_interval') * 1000; |
|
| 861 | + $tabledata['ping_interval'] = (int)\mod_bigbluebuttonbn\locallib\config::get('waitformoderator_ping_interval') * 1000; |
|
| 862 | 862 | $tabledata['locale'] = bigbluebuttonbn_get_localcode(); |
| 863 | 863 | $tabledata['profile_features'] = $typeprofiles[0]['features']; |
| 864 | 864 | $tabledata['recordings_html'] = $bbbsession['bigbluebuttonbn']->recordings_html == '1'; |