@@ -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 | |
@@ -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 | /** |
@@ -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)) { |
@@ -221,10 +221,10 @@ |
||
| 221 | 221 | if ($groupobj != null) { |
| 222 | 222 | $actions .= ' <INPUT type="hidden" name="g" value="'.$groupobj->id.'">'."\n"; |
| 223 | 223 | } |
| 224 | - $actions .= ' <INPUT type="submit" name="submit" value="' . |
|
| 225 | - get_string('view_conference_action_end', 'bigbluebuttonbn') . |
|
| 226 | - '" class="btn btn-primary btn-sm" onclick="return confirm(\'' . |
|
| 227 | - get_string('index_confirm_end', 'bigbluebuttonbn') . '\')">' . "\n"; |
|
| 224 | + $actions .= ' <INPUT type="submit" name="submit" value="'. |
|
| 225 | + get_string('view_conference_action_end', 'bigbluebuttonbn'). |
|
| 226 | + '" class="btn btn-primary btn-sm" onclick="return confirm(\''. |
|
| 227 | + get_string('index_confirm_end', 'bigbluebuttonbn').'\')">'."\n"; |
|
| 228 | 228 | $actions .= '</form>'."\n"; |
| 229 | 229 | } |
| 230 | 230 | return $actions; |
@@ -65,8 +65,8 @@ discard block |
||
| 65 | 65 | return null; |
| 66 | 66 | } |
| 67 | 67 | |
| 68 | - $result = $DB->get_recordset_sql('SELECT modtable.* FROM {' . $this->get_module_name() . |
|
| 69 | - '} modtable ' . $contextjoin, array_merge($contextparams)); |
|
| 68 | + $result = $DB->get_recordset_sql('SELECT modtable.* FROM {'.$this->get_module_name(). |
|
| 69 | + '} modtable '.$contextjoin, array_merge($contextparams)); |
|
| 70 | 70 | |
| 71 | 71 | return($result); |
| 72 | 72 | } |
@@ -96,12 +96,12 @@ discard block |
||
| 96 | 96 | |
| 97 | 97 | } catch (\dml_missing_record_exception $ex) { |
| 98 | 98 | // Notify it as we run here as admin, we should see everything. |
| 99 | - debugging('Error retrieving ' . $this->areaid . ' ' . $record->id . ' document, not all required data is available: ' . |
|
| 99 | + debugging('Error retrieving '.$this->areaid.' '.$record->id.' document, not all required data is available: '. |
|
| 100 | 100 | $ex->getMessage(), DEBUG_DEVELOPER); |
| 101 | 101 | return false; |
| 102 | 102 | } catch (\dml_exception $ex) { |
| 103 | 103 | // Notify it as we run here as admin, we should see everything. |
| 104 | - debugging('Error retrieving ' . $this->areaid . ' ' . $record->id . ' document: ' . $ex->getMessage(), DEBUG_DEVELOPER); |
|
| 104 | + debugging('Error retrieving '.$this->areaid.' '.$record->id.' document: '.$ex->getMessage(), DEBUG_DEVELOPER); |
|
| 105 | 105 | return false; |
| 106 | 106 | } |
| 107 | 107 | |
@@ -86,7 +86,7 @@ discard block |
||
| 86 | 86 | ); |
| 87 | 87 | $string = $this->description; |
| 88 | 88 | foreach ($vars as $key => $value) { |
| 89 | - $string = str_replace("##" . $key, $value, $string); |
|
| 89 | + $string = str_replace("##".$key, $value, $string); |
|
| 90 | 90 | } |
| 91 | 91 | return $string; |
| 92 | 92 | } |
@@ -108,9 +108,9 @@ discard block |
||
| 108 | 108 | * @param string $url The url to the assign module instance. |
| 109 | 109 | */ |
| 110 | 110 | public function set_legacy_logdata($action = '', $info = '', $url = '') { |
| 111 | - $fullurl = 'view.php?id=' . $this->contextinstanceid; |
|
| 111 | + $fullurl = 'view.php?id='.$this->contextinstanceid; |
|
| 112 | 112 | if ($url != '') { |
| 113 | - $fullurl .= '&' . $url; |
|
| 113 | + $fullurl .= '&'.$url; |
|
| 114 | 114 | } |
| 115 | 115 | |
| 116 | 116 | $this->legacylogdata = array($this->courseid, 'bigbluebuttonbn', $action, $fullurl, $info, $this->contextinstanceid); |