@@ -59,7 +59,7 @@ |
||
| 59 | 59 | $logs = new backup_nested_element('logs'); |
| 60 | 60 | |
| 61 | 61 | $log = new backup_nested_element('log', array('id'), array( |
| 62 | - 'courseid', 'bigbluebuttonbnid', 'userid', 'timecreated', 'meetingid', 'log', 'meta', )); |
|
| 62 | + 'courseid', 'bigbluebuttonbnid', 'userid', 'timecreated', 'meetingid', 'log', 'meta',)); |
|
| 63 | 63 | |
| 64 | 64 | // Build the tree. |
| 65 | 65 | $bigbluebuttonbn->add_child($logs); |
@@ -47,7 +47,7 @@ |
||
| 47 | 47 | print_error('view_error_invalid_session', plugin::COMPONENT); |
| 48 | 48 | } |
| 49 | 49 | |
| 50 | -if (!(boolean)\mod_bigbluebuttonbn\locallib\config::importrecordings_enabled()) { |
|
| 50 | +if (!(boolean) \mod_bigbluebuttonbn\locallib\config::importrecordings_enabled()) { |
|
| 51 | 51 | print_error('view_message_importrecordings_disabled', plugin::COMPONENT); |
| 52 | 52 | } |
| 53 | 53 | |
@@ -58,7 +58,7 @@ |
||
| 58 | 58 | bigbluebuttonbn_view_bbbsession_set($PAGE->context, $bbbsession); |
| 59 | 59 | |
| 60 | 60 | // Validates if the BigBlueButton server is working. |
| 61 | -$serverversion = bigbluebuttonbn_get_server_version(); // In locallib. |
|
| 61 | +$serverversion = bigbluebuttonbn_get_server_version(); // In locallib. |
|
| 62 | 62 | if ($serverversion === null) { |
| 63 | 63 | $errmsg = 'view_error_unable_join_student'; |
| 64 | 64 | $errurl = '/course/view.php'; |
@@ -31,7 +31,7 @@ |
||
| 31 | 31 | 'coursebigbluebuttonbn' => array( // Handler unique name (can be anything). |
| 32 | 32 | 'displaydata' => array( |
| 33 | 33 | 'title' => 'pluginname', |
| 34 | - 'icon' => $CFG->wwwroot . '/mod/bigbluebuttonbn/pix/icon.gif', |
|
| 34 | + 'icon' => $CFG->wwwroot.'/mod/bigbluebuttonbn/pix/icon.gif', |
|
| 35 | 35 | 'class' => '', |
| 36 | 36 | ), |
| 37 | 37 | 'delegate' => 'CoreCourseModuleDelegate', // Delegate (where to display the link to the add-on). |
@@ -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 | * Helper class for sending notifications. |
@@ -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 | * Handles the global configuration based on config.php. |
@@ -128,10 +128,10 @@ discard block |
||
| 128 | 128 | public static function get($setting) { |
| 129 | 129 | global $CFG; |
| 130 | 130 | if (isset($CFG->bigbluebuttonbn[$setting])) { |
| 131 | - return (string)$CFG->bigbluebuttonbn[$setting]; |
|
| 131 | + return (string) $CFG->bigbluebuttonbn[$setting]; |
|
| 132 | 132 | } |
| 133 | 133 | if (isset($CFG->{'bigbluebuttonbn_'.$setting})) { |
| 134 | - return (string)$CFG->{'bigbluebuttonbn_'.$setting}; |
|
| 134 | + return (string) $CFG->{'bigbluebuttonbn_'.$setting}; |
|
| 135 | 135 | } |
| 136 | 136 | return self::defaultvalue($setting); |
| 137 | 137 | } |
@@ -142,7 +142,7 @@ discard block |
||
| 142 | 142 | * @return boolean |
| 143 | 143 | */ |
| 144 | 144 | public static function recordings_enabled() { |
| 145 | - return (boolean)self::get('recordings_enabled'); |
|
| 145 | + return (boolean) self::get('recordings_enabled'); |
|
| 146 | 146 | } |
| 147 | 147 | |
| 148 | 148 | /** |
@@ -151,7 +151,7 @@ discard block |
||
| 151 | 151 | * @return boolean |
| 152 | 152 | */ |
| 153 | 153 | public static function importrecordings_enabled() { |
| 154 | - return (boolean)self::get('importrecordings_enabled'); |
|
| 154 | + return (boolean) self::get('importrecordings_enabled'); |
|
| 155 | 155 | } |
| 156 | 156 | |
| 157 | 157 | /** |
@@ -160,7 +160,7 @@ discard block |
||
| 160 | 160 | * @return boolean |
| 161 | 161 | */ |
| 162 | 162 | public static function clienttype_enabled() { |
| 163 | - return (boolean)self::get('clienttype_enabled'); |
|
| 163 | + return (boolean) self::get('clienttype_enabled'); |
|
| 164 | 164 | } |
| 165 | 165 | |
| 166 | 166 | /** |
@@ -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 | * Wrapper for executing http requests on a BigBlueButton server. |
@@ -46,15 +46,15 @@ discard block |
||
| 46 | 46 | * @return string |
| 47 | 47 | */ |
| 48 | 48 | public static function action_url($action = '', $data = array(), $metadata = array()) { |
| 49 | - $baseurl = self::sanitized_url() . $action . '?'; |
|
| 49 | + $baseurl = self::sanitized_url().$action.'?'; |
|
| 50 | 50 | $params = ''; |
| 51 | 51 | foreach ($data as $key => $value) { |
| 52 | - $params .= '&' . $key . '=' . urlencode($value); |
|
| 52 | + $params .= '&'.$key.'='.urlencode($value); |
|
| 53 | 53 | } |
| 54 | 54 | foreach ($metadata as $key => $value) { |
| 55 | - $params .= '&' . 'meta_' . $key.'=' . urlencode($value); |
|
| 55 | + $params .= '&'.'meta_'.$key.'='.urlencode($value); |
|
| 56 | 56 | } |
| 57 | - return $baseurl . $params . '&checksum=' . sha1($action . $params . self::sanitized_secret()); |
|
| 57 | + return $baseurl.$params.'&checksum='.sha1($action.$params.self::sanitized_secret()); |
|
| 58 | 58 | } |
| 59 | 59 | |
| 60 | 60 | /** |
@@ -70,7 +70,7 @@ discard block |
||
| 70 | 70 | if (substr($serverurl, -4) == '/api') { |
| 71 | 71 | $serverurl = rtrim($serverurl, '/api'); |
| 72 | 72 | } |
| 73 | - return $serverurl . '/api/'; |
|
| 73 | + return $serverurl.'/api/'; |
|
| 74 | 74 | } |
| 75 | 75 | |
| 76 | 76 | /** |
@@ -91,8 +91,8 @@ discard block |
||
| 91 | 91 | $pserverurl = parse_url(trim(\mod_bigbluebuttonbn\locallib\config::get('server_url'))); |
| 92 | 92 | $pserverurlport = ""; |
| 93 | 93 | if (isset($pserverurl['port'])) { |
| 94 | - $pserverurlport = ":" . $pserverurl['port']; |
|
| 94 | + $pserverurlport = ":".$pserverurl['port']; |
|
| 95 | 95 | } |
| 96 | - return $pserverurl['scheme'] . "://" . $pserverurl['host'] . $pserverurlport . "/"; |
|
| 96 | + return $pserverurl['scheme']."://".$pserverurl['host'].$pserverurlport."/"; |
|
| 97 | 97 | } |
| 98 | 98 | } |
@@ -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 | * Privacy class for requesting user data. |
@@ -86,7 +86,7 @@ |
||
| 86 | 86 | } |
| 87 | 87 | $recordings = bigbluebuttonbn_get_allrecordings( |
| 88 | 88 | $selected, $bigbluebuttonbnid, false, |
| 89 | - (boolean)\mod_bigbluebuttonbn\locallib\config::get('importrecordings_from_deleted_enabled') |
|
| 89 | + (boolean) \mod_bigbluebuttonbn\locallib\config::get('importrecordings_from_deleted_enabled') |
|
| 90 | 90 | ); |
| 91 | 91 | // Exclude the ones that are already imported. |
| 92 | 92 | if (!empty($recordings)) { |