@@ -41,8 +41,8 @@ |
||
| 41 | 41 | */ |
| 42 | 42 | protected function init($crud = 'r', $edulevel = self::LEVEL_PARTICIPATING) { |
| 43 | 43 | parent::init($crud, $edulevel); |
| 44 | - $this->description = "The user with id '##userid' has joined a bigbluebutton meeting for ". |
|
| 45 | - "the bigbluebuttonbn activity with id '##objectid' for the course id ". |
|
| 44 | + $this->description = "The user with id '##userid' has joined a bigbluebutton meeting for " . |
|
| 45 | + "the bigbluebuttonbn activity with id '##objectid' for the course id " . |
|
| 46 | 46 | "'##courseid'."; |
| 47 | 47 | } |
| 48 | 48 | |
@@ -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 | /** |
@@ -58,7 +58,7 @@ discard block |
||
| 58 | 58 | $session['importrecordings'] = ($session['managerecordings']); |
| 59 | 59 | $session['modPW'] = $session['bigbluebuttonbn']->moderatorpass; |
| 60 | 60 | $session['viewerPW'] = $session['bigbluebuttonbn']->viewerpass; |
| 61 | - $session['meetingid'] = $session['bigbluebuttonbn']->meetingid.'-'.$session['course']->id.'-'. |
|
| 61 | + $session['meetingid'] = $session['bigbluebuttonbn']->meetingid . '-' . $session['course']->id . '-' . |
|
| 62 | 62 | $session['bigbluebuttonbn']->id; |
| 63 | 63 | $session['meetingname'] = $session['bigbluebuttonbn']->name; |
| 64 | 64 | $session['meetingdescription'] = $session['bigbluebuttonbn']->intro; |
@@ -90,10 +90,10 @@ discard block |
||
| 90 | 90 | if ($session['bigbluebuttonbn']->record) { |
| 91 | 91 | // Check if is enable record all from start. |
| 92 | 92 | if ($session['recordallfromstart']) { |
| 93 | - $session['welcome'] .= '<br><br>'.get_string('bbbrecordallfromstartwarning', |
|
| 93 | + $session['welcome'] .= '<br><br>' . get_string('bbbrecordallfromstartwarning', |
|
| 94 | 94 | 'bigbluebuttonbn'); |
| 95 | 95 | } else { |
| 96 | - $session['welcome'] .= '<br><br>'.get_string('bbbrecordwarning', 'bigbluebuttonbn'); |
|
| 96 | + $session['welcome'] .= '<br><br>' . get_string('bbbrecordwarning', 'bigbluebuttonbn'); |
|
| 97 | 97 | } |
| 98 | 98 | } |
| 99 | 99 | $session['openingtime'] = $session['bigbluebuttonbn']->openingtime; |
@@ -106,7 +106,7 @@ discard block |
||
| 106 | 106 | $session['originServerName'] = $parsedurl['host']; |
| 107 | 107 | $session['originServerUrl'] = $CFG->wwwroot; |
| 108 | 108 | $session['originServerCommonName'] = ''; |
| 109 | - $session['originTag'] = 'moodle-mod_bigbluebuttonbn ('.get_config('mod_bigbluebuttonbn', 'version').')'; |
|
| 109 | + $session['originTag'] = 'moodle-mod_bigbluebuttonbn (' . get_config('mod_bigbluebuttonbn', 'version') . ')'; |
|
| 110 | 110 | $session['bnserver'] = bigbluebuttonbn_is_bn_server(); |
| 111 | 111 | $session['clienttype'] = \mod_bigbluebuttonbn\locallib\config::get('clienttype_default'); |
| 112 | 112 | |
@@ -228,7 +228,7 @@ discard block |
||
| 228 | 228 | $data['welcome'] .= '<br><br>'; |
| 229 | 229 | $data['welcome'] .= str_replace( |
| 230 | 230 | '%duration%', |
| 231 | - (string) $durationtime, |
|
| 231 | + (string)$durationtime, |
|
| 232 | 232 | get_string('bbbdurationwarning', 'bigbluebuttonbn') |
| 233 | 233 | ); |
| 234 | 234 | } |
@@ -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 | |
@@ -28,7 +28,6 @@ |
||
| 28 | 28 | defined('MOODLE_INTERNAL') || die(); |
| 29 | 29 | |
| 30 | 30 | use context_module; |
| 31 | -use mod_bigbluebuttonbn_external; |
|
| 32 | 31 | require_once($CFG->dirroot . '/mod/bigbluebuttonbn/locallib.php'); |
| 33 | 32 | require_once($CFG->dirroot . '/lib/grouplib.php'); |
| 34 | 33 | |
@@ -55,7 +55,7 @@ discard block |
||
| 55 | 55 | |
| 56 | 56 | global $OUTPUT, $SESSION, $CFG; |
| 57 | 57 | |
| 58 | - $args = (object) $args; |
|
| 58 | + $args = (object)$args; |
|
| 59 | 59 | $viewinstance = bigbluebuttonbn_view_validator($args->cmid, null); |
| 60 | 60 | if (!$viewinstance) { |
| 61 | 61 | $error = get_string('view_error_url_missing_parameters', 'bigbluebuttonbn'); |
@@ -67,7 +67,7 @@ discard block |
||
| 67 | 67 | $bigbluebuttonbn = $viewinstance['bigbluebuttonbn']; |
| 68 | 68 | $context = context_module::instance($cm->id); |
| 69 | 69 | |
| 70 | - require_login($course->id, false , $cm, true, true); |
|
| 70 | + require_login($course->id, false, $cm, true, true); |
|
| 71 | 71 | require_capability('mod/bigbluebuttonbn:join', $context); |
| 72 | 72 | |
| 73 | 73 | // Add view event. |
@@ -112,7 +112,7 @@ discard block |
||
| 112 | 112 | |
| 113 | 113 | // Check if the BBB server is working. |
| 114 | 114 | $serverversion = bigbluebuttonbn_get_server_version(); |
| 115 | - $bbbsession['serverversion'] = (string) $serverversion; |
|
| 115 | + $bbbsession['serverversion'] = (string)$serverversion; |
|
| 116 | 116 | if (is_null($serverversion)) { |
| 117 | 117 | |
| 118 | 118 | if ($bbbsession['administrator']) { |
@@ -139,7 +139,7 @@ discard block |
||
| 139 | 139 | |
| 140 | 140 | // Operation URLs. |
| 141 | 141 | $bbbsession['bigbluebuttonbnURL'] = $CFG->wwwroot . '/mod/bigbluebuttonbn/view.php?id=' . $bbbsession['cm']->id; |
| 142 | - $bbbsession['logoutURL'] = $CFG->wwwroot . '/mod/bigbluebuttonbn/bbb_view.php?action=logout&id='.$args->cmid . |
|
| 142 | + $bbbsession['logoutURL'] = $CFG->wwwroot . '/mod/bigbluebuttonbn/bbb_view.php?action=logout&id=' . $args->cmid . |
|
| 143 | 143 | '&bn=' . $bbbsession['bigbluebuttonbn']->id; |
| 144 | 144 | $bbbsession['recordingReadyURL'] = $CFG->wwwroot . '/mod/bigbluebuttonbn/bbb_broker.php?action=recording_' . |
| 145 | 145 | 'ready&bigbluebuttonbn=' . $bbbsession['bigbluebuttonbn']->id; |
@@ -182,7 +182,7 @@ discard block |
||
| 182 | 182 | } |
| 183 | 183 | if ($response['returncode'] == 'FAILED') { |
| 184 | 184 | // The meeting could not be created. |
| 185 | - $errorkey = bigbluebuttonbn_get_error_key($response['messageKey'], 'view_error_create'); |
|
| 185 | + $errorkey = bigbluebuttonbn_get_error_key($response['messageKey'], 'view_error_create'); |
|
| 186 | 186 | $e = get_string($errorkey, 'bigbluebuttonbn'); |
| 187 | 187 | return(self::mobile_print_error($e)); |
| 188 | 188 | } |
@@ -195,7 +195,7 @@ discard block |
||
| 195 | 195 | bigbluebuttonbn_event_log(\mod_bigbluebuttonbn\event\events::$events['meeting_create'], $bigbluebuttonbn); |
| 196 | 196 | // Insert a record that meeting was created. |
| 197 | 197 | $overrides = array('meetingid' => $bbbsession['meetingid']); |
| 198 | - $meta = '{"record":'.($bbbsession['record'] ? 'true' : 'false').'}'; |
|
| 198 | + $meta = '{"record":' . ($bbbsession['record'] ? 'true' : 'false') . '}'; |
|
| 199 | 199 | bigbluebuttonbn_log($bbbsession['bigbluebuttonbn'], BIGBLUEBUTTONBN_LOG_EVENT_CREATE, $overrides, $meta); |
| 200 | 200 | } |
| 201 | 201 | |
@@ -221,7 +221,7 @@ discard block |
||
| 221 | 221 | |
| 222 | 222 | $data = array( |
| 223 | 223 | 'bigbluebuttonbn' => $bigbluebuttonbn, |
| 224 | - 'bbbsession' => (object) $bbbsession, |
|
| 224 | + 'bbbsession' => (object)$bbbsession, |
|
| 225 | 225 | 'msjgroup' => $msjgroup, |
| 226 | 226 | 'urltojoin' => $urltojoin, |
| 227 | 227 | 'cmid' => $cm->id, |
@@ -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. |