@@ -41,7 +41,7 @@ |
||
41 | 41 | */ |
42 | 42 | protected function init($crud = 'r', $edulevel = self::LEVEL_OTHER) { |
43 | 43 | parent::init($crud, $edulevel); |
44 | - $this->description = "The user with id '##userid' has protected a recording with id ". |
|
44 | + $this->description = "The user with id '##userid' has protected a recording with id " . |
|
45 | 45 | "'##other' in the course id '##courseid'."; |
46 | 46 | } |
47 | 47 |
@@ -41,7 +41,7 @@ |
||
41 | 41 | */ |
42 | 42 | protected function init($crud = 'r', $edulevel = self::LEVEL_OTHER) { |
43 | 43 | parent::init($crud, $edulevel); |
44 | - $this->description = "The user with id '##userid' has viewed a recording with id ". |
|
44 | + $this->description = "The user with id '##userid' has viewed a recording with id " . |
|
45 | 45 | "'##other' from the course id '##courseid'."; |
46 | 46 | } |
47 | 47 |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | defined('MOODLE_INTERNAL') || die(); |
29 | 29 | |
30 | 30 | require_once($CFG->dirroot . '/mod/bigbluebuttonbn/locallib.php'); |
31 | -require_once($CFG->libdir.'/adminlib.php'); |
|
31 | +require_once($CFG->libdir . '/adminlib.php'); |
|
32 | 32 | |
33 | 33 | /** |
34 | 34 | * Helper class for validating settings used HTML for settings.php. |
@@ -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 | /** |
@@ -92,7 +92,7 @@ |
||
92 | 92 | !isset($CFG->bigbluebuttonbn['recordings_preview_default']) || |
93 | 93 | !isset($CFG->bigbluebuttonbn['recordings_preview_editable']) || |
94 | 94 | !isset($CFG->bigbluebuttonbn['recordings_validate_url']) |
95 | - ); |
|
95 | + ); |
|
96 | 96 | } |
97 | 97 | |
98 | 98 | /** |
@@ -24,7 +24,6 @@ |
||
24 | 24 | */ |
25 | 25 | |
26 | 26 | namespace mod_bigbluebuttonbn\search; |
27 | -use core_tag\output\tag; |
|
28 | 27 | |
29 | 28 | defined('MOODLE_INTERNAL') || die(); |
30 | 29 |
@@ -27,8 +27,8 @@ |
||
27 | 27 | use mod_bigbluebuttonbn\output\import_view; |
28 | 28 | use mod_bigbluebuttonbn\output\renderer; |
29 | 29 | |
30 | -require(__DIR__.'/../../config.php'); |
|
31 | -require_once(__DIR__.'/locallib.php'); |
|
30 | +require(__DIR__ . '/../../config.php'); |
|
31 | +require_once(__DIR__ . '/locallib.php'); |
|
32 | 32 | |
33 | 33 | $bn = required_param('bn', PARAM_INT); |
34 | 34 | $tc = optional_param('tc', 0, PARAM_INT); |
@@ -28,7 +28,7 @@ |
||
28 | 28 | |
29 | 29 | global $CFG; |
30 | 30 | |
31 | -require_once(__DIR__.'/locallib.php'); |
|
31 | +require_once(__DIR__ . '/locallib.php'); |
|
32 | 32 | |
33 | 33 | if ($hassiteconfig) { |
34 | 34 | // Configuration for BigBlueButton. |
@@ -36,7 +36,7 @@ |
||
36 | 36 | |
37 | 37 | defined('MOODLE_INTERNAL') || die(); |
38 | 38 | |
39 | -require_once($CFG->dirroot.'/mod/bigbluebuttonbn/locallib.php'); |
|
39 | +require_once($CFG->dirroot . '/mod/bigbluebuttonbn/locallib.php'); |
|
40 | 40 | |
41 | 41 | /** |
42 | 42 | * Class import_view |
@@ -28,8 +28,8 @@ |
||
28 | 28 | use mod_bigbluebuttonbn\output\renderer; |
29 | 29 | use mod_bigbluebuttonbn\output\index; |
30 | 30 | |
31 | -require(__DIR__.'/../../config.php'); |
|
32 | -require_once(__DIR__.'/locallib.php'); |
|
31 | +require(__DIR__ . '/../../config.php'); |
|
32 | +require_once(__DIR__ . '/locallib.php'); |
|
33 | 33 | |
34 | 34 | $id = required_param('id', PARAM_INT); |
35 | 35 | $a = optional_param('a', 0, PARAM_INT); |
@@ -309,10 +309,10 @@ discard block |
||
309 | 309 | */ |
310 | 310 | function bigbluebuttonbn_bbb_view_create_meeting_data(&$bbbsession) { |
311 | 311 | $data = ['meetingID' => $bbbsession['meetingid'], |
312 | - 'name' => bigbluebuttonbn_html2text($bbbsession['meetingname'], 64), |
|
313 | - 'attendeePW' => $bbbsession['viewerPW'], |
|
314 | - 'moderatorPW' => $bbbsession['modPW'], |
|
315 | - 'logoutURL' => $bbbsession['logoutURL'], |
|
312 | + 'name' => bigbluebuttonbn_html2text($bbbsession['meetingname'], 64), |
|
313 | + 'attendeePW' => $bbbsession['viewerPW'], |
|
314 | + 'moderatorPW' => $bbbsession['modPW'], |
|
315 | + 'logoutURL' => $bbbsession['logoutURL'], |
|
316 | 316 | ]; |
317 | 317 | $data['record'] = bigbluebuttonbn_bbb_view_create_meeting_data_record($bbbsession['record']); |
318 | 318 | // Check if auto_start_record is enable. |
@@ -334,7 +334,7 @@ discard block |
||
334 | 334 | '%duration%', |
335 | 335 | (string) $durationtime, |
336 | 336 | get_string('bbbdurationwarning', 'bigbluebuttonbn') |
337 | - ); |
|
337 | + ); |
|
338 | 338 | } |
339 | 339 | $voicebridge = intval($bbbsession['voicebridge']); |
340 | 340 | if ($voicebridge > 0 && $voicebridge < 79999) { |
@@ -23,8 +23,8 @@ discard block |
||
23 | 23 | * @author Jesus Federico (jesus [at] blindsidenetworks [dt] com) |
24 | 24 | */ |
25 | 25 | |
26 | -require_once(dirname(dirname(dirname(__FILE__))).'/config.php'); |
|
27 | -require_once(dirname(__FILE__).'/locallib.php'); |
|
26 | +require_once(dirname(dirname(dirname(__FILE__))) . '/config.php'); |
|
27 | +require_once(dirname(__FILE__) . '/locallib.php'); |
|
28 | 28 | |
29 | 29 | global $SESSION; |
30 | 30 | |
@@ -64,16 +64,16 @@ discard block |
||
64 | 64 | if (is_null($serverversion)) { |
65 | 65 | if ($bbbsession['administrator']) { |
66 | 66 | print_error('view_error_unable_join', 'bigbluebuttonbn', |
67 | - $CFG->wwwroot.'/admin/settings.php?section=modsettingbigbluebuttonbn'); |
|
67 | + $CFG->wwwroot . '/admin/settings.php?section=modsettingbigbluebuttonbn'); |
|
68 | 68 | exit; |
69 | 69 | } |
70 | 70 | if ($bbbsession['moderator']) { |
71 | 71 | print_error('view_error_unable_join_teacher', 'bigbluebuttonbn', |
72 | - $CFG->wwwroot.'/course/view.php?id='.$bigbluebuttonbn->course); |
|
72 | + $CFG->wwwroot . '/course/view.php?id=' . $bigbluebuttonbn->course); |
|
73 | 73 | exit; |
74 | 74 | } |
75 | 75 | print_error('view_error_unable_join_student', 'bigbluebuttonbn', |
76 | - $CFG->wwwroot.'/course/view.php?id='.$bigbluebuttonbn->course); |
|
76 | + $CFG->wwwroot . '/course/view.php?id=' . $bigbluebuttonbn->course); |
|
77 | 77 | exit; |
78 | 78 | } |
79 | 79 | |
@@ -98,8 +98,8 @@ discard block |
||
98 | 98 | } |
99 | 99 | |
100 | 100 | // Assign group default values. |
101 | - $bbbsession['meetingid'] .= '['.$bbbsession['group'].']'; |
|
102 | - $bbbsession['meetingname'] .= ' ('.$groupname.')'; |
|
101 | + $bbbsession['meetingid'] .= '[' . $bbbsession['group'] . ']'; |
|
102 | + $bbbsession['meetingname'] .= ' (' . $groupname . ')'; |
|
103 | 103 | } |
104 | 104 | |
105 | 105 | // Initialize session variable used across views. |
@@ -164,7 +164,7 @@ discard block |
||
164 | 164 | } |
165 | 165 | // If user is not administrator nor moderator (user is steudent) and waiting is required. |
166 | 166 | if (!$bbbsession['administrator'] && !$bbbsession['moderator'] && $bbbsession['wait']) { |
167 | - header('Location: '.$bbbsession['logoutURL']); |
|
167 | + header('Location: ' . $bbbsession['logoutURL']); |
|
168 | 168 | break; |
169 | 169 | } |
170 | 170 | // As the meeting doesn't exist, try to create it. |
@@ -178,16 +178,16 @@ discard block |
||
178 | 178 | // The server is unreachable. |
179 | 179 | if ($bbbsession['administrator']) { |
180 | 180 | print_error('view_error_unable_join', 'bigbluebuttonbn', |
181 | - $CFG->wwwroot.'/admin/settings.php?section=modsettingbigbluebuttonbn'); |
|
181 | + $CFG->wwwroot . '/admin/settings.php?section=modsettingbigbluebuttonbn'); |
|
182 | 182 | break; |
183 | 183 | } |
184 | 184 | if ($bbbsession['moderator']) { |
185 | 185 | print_error('view_error_unable_join_teacher', 'bigbluebuttonbn', |
186 | - $CFG->wwwroot.'/admin/settings.php?section=modsettingbigbluebuttonbn'); |
|
186 | + $CFG->wwwroot . '/admin/settings.php?section=modsettingbigbluebuttonbn'); |
|
187 | 187 | break; |
188 | 188 | } |
189 | 189 | print_error('view_error_unable_join_student', 'bigbluebuttonbn', |
190 | - $CFG->wwwroot.'/admin/settings.php?section=modsettingbigbluebuttonbn'); |
|
190 | + $CFG->wwwroot . '/admin/settings.php?section=modsettingbigbluebuttonbn'); |
|
191 | 191 | break; |
192 | 192 | } |
193 | 193 | if ($response['returncode'] == 'FAILED') { |
@@ -208,7 +208,7 @@ discard block |
||
208 | 208 | bigbluebuttonbn_event_log(\mod_bigbluebuttonbn\event\events::$events['meeting_create'], $bigbluebuttonbn); |
209 | 209 | // Internal logger: Insert a record with the meeting created. |
210 | 210 | $overrides = array('meetingid' => $bbbsession['meetingid']); |
211 | - $meta = '{"record":'.($bbbsession['record'] ? 'true' : 'false').'}'; |
|
211 | + $meta = '{"record":' . ($bbbsession['record'] ? 'true' : 'false') . '}'; |
|
212 | 212 | bigbluebuttonbn_log($bbbsession['bigbluebuttonbn'], BIGBLUEBUTTONBN_LOG_EVENT_CREATE, $overrides, $meta); |
213 | 213 | // Since the meeting is already running, we just join the session. |
214 | 214 | bigbluebuttonbn_join_meeting($bbbsession, $bigbluebuttonbn, $origin); |
@@ -222,7 +222,7 @@ discard block |
||
222 | 222 | $overrides = array('meetingid' => $bbbsession['meetingid']); |
223 | 223 | bigbluebuttonbn_log($bbbsession['bigbluebuttonbn'], BIGBLUEBUTTONBN_LOG_EVENT_PLAYED, $overrides); |
224 | 224 | // Execute the redirect. |
225 | - header('Location: '.urldecode($href)); |
|
225 | + header('Location: ' . urldecode($href)); |
|
226 | 226 | break; |
227 | 227 | default: |
228 | 228 | bigbluebuttonbn_bbb_view_close_window(); |
@@ -316,7 +316,7 @@ discard block |
||
316 | 316 | $data['welcome'] .= '<br><br>'; |
317 | 317 | $data['welcome'] .= str_replace( |
318 | 318 | '%duration%', |
319 | - (string) $durationtime, |
|
319 | + (string)$durationtime, |
|
320 | 320 | get_string('bbbdurationwarning', 'bigbluebuttonbn') |
321 | 321 | ); |
322 | 322 | } |
@@ -410,7 +410,7 @@ discard block |
||
410 | 410 | $meetinginfo = bigbluebuttonbn_get_meeting_info($bbbsession['meetingid'], BIGBLUEBUTTONBN_UPDATE_CACHE); |
411 | 411 | if ($bbbsession['userlimit'] > 0 && intval($meetinginfo['participantCount']) >= $bbbsession['userlimit']) { |
412 | 412 | // No more users allowed to join. |
413 | - header('Location: '.$bbbsession['logoutURL']); |
|
413 | + header('Location: ' . $bbbsession['logoutURL']); |
|
414 | 414 | return; |
415 | 415 | } |
416 | 416 | // Build the URL. |
@@ -425,13 +425,13 @@ discard block |
||
425 | 425 | bigbluebuttonbn_event_log(\mod_bigbluebuttonbn\event\events::$events['meeting_join'], $bigbluebuttonbn); |
426 | 426 | // Internal logger: Instert a record with the meeting created. |
427 | 427 | $overrides = array('meetingid' => $bbbsession['meetingid']); |
428 | - $meta = '{"origin":'.$origin.'}'; |
|
428 | + $meta = '{"origin":' . $origin . '}'; |
|
429 | 429 | bigbluebuttonbn_log($bbbsession['bigbluebuttonbn'], BIGBLUEBUTTONBN_LOG_EVENT_JOIN, $overrides, $meta); |
430 | 430 | // Before executing the redirect, increment the number of participants. |
431 | 431 | bigbluebuttonbn_participant_joined($bbbsession['meetingid'], |
432 | 432 | ($bbbsession['administrator'] || $bbbsession['moderator'])); |
433 | 433 | // Execute the redirect. |
434 | - header('Location: '.$joinurl); |
|
434 | + header('Location: ' . $joinurl); |
|
435 | 435 | } |
436 | 436 | |
437 | 437 | /** |
@@ -443,13 +443,13 @@ discard block |
||
443 | 443 | */ |
444 | 444 | function bigbluebuttonbn_bbb_view_errors($serrors, $id) { |
445 | 445 | global $CFG, $OUTPUT; |
446 | - $errors = (array) json_decode(urldecode($serrors)); |
|
446 | + $errors = (array)json_decode(urldecode($serrors)); |
|
447 | 447 | $msgerrors = ''; |
448 | 448 | foreach ($errors as $error) { |
449 | - $msgerrors .= html_writer::tag('p', $error->{'message'}, array('class' => 'alert alert-danger'))."\n"; |
|
449 | + $msgerrors .= html_writer::tag('p', $error->{'message'}, array('class' => 'alert alert-danger')) . "\n"; |
|
450 | 450 | } |
451 | 451 | echo $OUTPUT->header(); |
452 | 452 | print_error('view_error_bigbluebutton', 'bigbluebuttonbn', |
453 | - $CFG->wwwroot.'/mod/bigbluebuttonbn/view.php?id='.$id, $msgerrors, $serrors); |
|
453 | + $CFG->wwwroot . '/mod/bigbluebuttonbn/view.php?id=' . $id, $msgerrors, $serrors); |
|
454 | 454 | echo $OUTPUT->footer(); |
455 | 455 | } |