@@ -212,7 +212,7 @@ |
||
212 | 212 | function($instanceid, $data) use ($user, $instanceidstocmids) { |
213 | 213 | $context = \context_module::instance($instanceidstocmids[$instanceid]); |
214 | 214 | $contextdata = helper::get_context_data($context, $user); |
215 | - $finaldata = (object) array_merge((array) $contextdata, ['logs' => $data]); |
|
215 | + $finaldata = (object)array_merge((array)$contextdata, ['logs' => $data]); |
|
216 | 216 | helper::export_context_files($context, $user); |
217 | 217 | writer::with_context($context)->export_data([], $finaldata); |
218 | 218 | } |
@@ -61,11 +61,11 @@ discard block |
||
61 | 61 | */ |
62 | 62 | public static function _get_metadata(collection $collection) { |
63 | 63 | |
64 | - // The table bigbluebuttonbn stores only the room properties. |
|
65 | - // However, there is a chance that some personal information is stored as metadata. |
|
66 | - // This would be done in the column 'participants' where rules can be set to define BBB roles. |
|
67 | - // It is fair to say that only the userid is stored, which is useless if user is removed. |
|
68 | - // But if this is a concern a refactoring on the way the rules are stored will be required. |
|
64 | + // The table bigbluebuttonbn stores only the room properties. |
|
65 | + // However, there is a chance that some personal information is stored as metadata. |
|
66 | + // This would be done in the column 'participants' where rules can be set to define BBB roles. |
|
67 | + // It is fair to say that only the userid is stored, which is useless if user is removed. |
|
68 | + // But if this is a concern a refactoring on the way the rules are stored will be required. |
|
69 | 69 | $collection->add_database_table('bigbluebuttonbn', [ |
70 | 70 | 'participants' => 'privacy:metadata:bigbluebuttonbn:participants', |
71 | 71 | ], 'privacy:metadata:bigbluebuttonbn'); |
@@ -208,7 +208,7 @@ discard block |
||
208 | 208 | 'meetingid' => $record->meetingid, |
209 | 209 | 'log' => $record->log, |
210 | 210 | 'meta' => $record->meta, |
211 | - ]; |
|
211 | + ]; |
|
212 | 212 | return $carry; |
213 | 213 | }, |
214 | 214 | function($instanceid, $data) use ($user, $instanceidstocmids) { |
@@ -152,33 +152,33 @@ |
||
152 | 152 | */ |
153 | 153 | public static function get_options() { |
154 | 154 | return array( |
155 | - 'version_major' => self::get_moodle_version_major(), |
|
156 | - 'voicebridge_editable' => self::get('voicebridge_editable'), |
|
157 | - 'importrecordings_enabled' => self::get('importrecordings_enabled'), |
|
158 | - 'importrecordings_from_deleted_enabled' => self::get('importrecordings_from_deleted_enabled'), |
|
159 | - 'waitformoderator_default' => self::get('waitformoderator_default'), |
|
160 | - 'waitformoderator_editable' => self::get('waitformoderator_editable'), |
|
161 | - 'userlimit_default' => self::get('userlimit_default'), |
|
162 | - 'userlimit_editable' => self::get('userlimit_editable'), |
|
163 | - 'preuploadpresentation_enabled' => self::get('preuploadpresentation_enabled'), |
|
164 | - 'sendnotifications_enabled' => self::get('sendnotifications_enabled'), |
|
165 | - 'recordings_enabled' => self::get('recordings_enabled'), |
|
166 | - 'recordings_html_default' => self::get('recordings_html_default'), |
|
167 | - 'recordings_html_editable' => self::get('recordings_html_editable'), |
|
168 | - 'recordings_deleted_default' => self::get('recordings_deleted_default'), |
|
169 | - 'recordings_deleted_editable' => self::get('recordings_deleted_editable'), |
|
170 | - 'recordings_imported_default' => self::get('recordings_imported_default'), |
|
171 | - 'recordings_imported_editable' => self::get('recordings_imported_editable'), |
|
172 | - 'recordings_preview_default' => self::get('recordings_preview_default'), |
|
173 | - 'recordings_preview_editable' => self::get('recordings_preview_editable'), |
|
174 | - 'recording_default' => self::get('recording_default'), |
|
175 | - 'recording_editable' => self::get('recording_editable'), |
|
176 | - 'recording_icons_enabled' => self::get('recording_icons_enabled'), |
|
177 | - 'general_warning_message' => self::get('general_warning_message'), |
|
178 | - 'general_warning_box_type' => self::get('general_warning_box_type'), |
|
179 | - 'general_warning_button_text' => self::get('general_warning_button_text'), |
|
180 | - 'general_warning_button_href' => self::get('general_warning_button_href'), |
|
181 | - 'general_warning_button_class' => self::get('general_warning_button_class'), |
|
182 | - ); |
|
155 | + 'version_major' => self::get_moodle_version_major(), |
|
156 | + 'voicebridge_editable' => self::get('voicebridge_editable'), |
|
157 | + 'importrecordings_enabled' => self::get('importrecordings_enabled'), |
|
158 | + 'importrecordings_from_deleted_enabled' => self::get('importrecordings_from_deleted_enabled'), |
|
159 | + 'waitformoderator_default' => self::get('waitformoderator_default'), |
|
160 | + 'waitformoderator_editable' => self::get('waitformoderator_editable'), |
|
161 | + 'userlimit_default' => self::get('userlimit_default'), |
|
162 | + 'userlimit_editable' => self::get('userlimit_editable'), |
|
163 | + 'preuploadpresentation_enabled' => self::get('preuploadpresentation_enabled'), |
|
164 | + 'sendnotifications_enabled' => self::get('sendnotifications_enabled'), |
|
165 | + 'recordings_enabled' => self::get('recordings_enabled'), |
|
166 | + 'recordings_html_default' => self::get('recordings_html_default'), |
|
167 | + 'recordings_html_editable' => self::get('recordings_html_editable'), |
|
168 | + 'recordings_deleted_default' => self::get('recordings_deleted_default'), |
|
169 | + 'recordings_deleted_editable' => self::get('recordings_deleted_editable'), |
|
170 | + 'recordings_imported_default' => self::get('recordings_imported_default'), |
|
171 | + 'recordings_imported_editable' => self::get('recordings_imported_editable'), |
|
172 | + 'recordings_preview_default' => self::get('recordings_preview_default'), |
|
173 | + 'recordings_preview_editable' => self::get('recordings_preview_editable'), |
|
174 | + 'recording_default' => self::get('recording_default'), |
|
175 | + 'recording_editable' => self::get('recording_editable'), |
|
176 | + 'recording_icons_enabled' => self::get('recording_icons_enabled'), |
|
177 | + 'general_warning_message' => self::get('general_warning_message'), |
|
178 | + 'general_warning_box_type' => self::get('general_warning_box_type'), |
|
179 | + 'general_warning_button_text' => self::get('general_warning_button_text'), |
|
180 | + 'general_warning_button_href' => self::get('general_warning_button_href'), |
|
181 | + 'general_warning_button_class' => self::get('general_warning_button_class'), |
|
182 | + ); |
|
183 | 183 | } |
184 | 184 | } |
@@ -55,8 +55,8 @@ discard block |
||
55 | 55 | */ |
56 | 56 | public static function defaultvalues() { |
57 | 57 | return array( |
58 | - 'server_url' => (string) BIGBLUEBUTTONBN_DEFAULT_SERVER_URL, |
|
59 | - 'shared_secret' => (string) BIGBLUEBUTTONBN_DEFAULT_SHARED_SECRET, |
|
58 | + 'server_url' => (string)BIGBLUEBUTTONBN_DEFAULT_SERVER_URL, |
|
59 | + 'shared_secret' => (string)BIGBLUEBUTTONBN_DEFAULT_SHARED_SECRET, |
|
60 | 60 | 'voicebridge_editable' => 'false', |
61 | 61 | 'importrecordings_enabled' => 'false', |
62 | 62 | 'importrecordings_from_deleted_enabled' => 'false', |
@@ -121,8 +121,8 @@ discard block |
||
121 | 121 | if (isset($CFG->bigbluebuttonbn[$setting])) { |
122 | 122 | return (string)$CFG->bigbluebuttonbn[$setting]; |
123 | 123 | } |
124 | - if (isset($CFG->{'bigbluebuttonbn_'.$setting})) { |
|
125 | - return (string)$CFG->{'bigbluebuttonbn_'.$setting}; |
|
124 | + if (isset($CFG->{'bigbluebuttonbn_' . $setting})) { |
|
125 | + return (string)$CFG->{'bigbluebuttonbn_' . $setting}; |
|
126 | 126 | } |
127 | 127 | return self::defaultvalue($setting); |
128 | 128 | } |
@@ -41,8 +41,8 @@ |
||
41 | 41 | */ |
42 | 42 | protected function init($crud = 'r', $edulevel = self::LEVEL_OTHER) { |
43 | 43 | parent::init($crud, $edulevel); |
44 | - $this->description = "A bigbluebutton meeting for the bigbluebuttonbn activity with id ". |
|
45 | - "'##objectid' for the course id '##courseid' has been forcibly ". |
|
44 | + $this->description = "A bigbluebutton meeting for the bigbluebuttonbn activity with id " . |
|
45 | + "'##objectid' for the course id '##courseid' has been forcibly " . |
|
46 | 46 | "ended by the user with id '##userid'."; |
47 | 47 | } |
48 | 48 |
@@ -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 left a bigbluebutton meeting for ". |
|
45 | - "the bigbluebuttonbn activity with id '##objectid' for the course id ". |
|
44 | + $this->description = "The user with id '##userid' has left 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 deleted a recording with id ". |
|
44 | + $this->description = "The user with id '##userid' has deleted a recording with id " . |
|
45 | 45 | "'##other' from 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 edited a recording with id ". |
|
44 | + $this->description = "The user with id '##userid' has edited a recording with id " . |
|
45 | 45 | "'##other' in the course id '##courseid'."; |
46 | 46 | } |
47 | 47 |
@@ -40,7 +40,7 @@ |
||
40 | 40 | */ |
41 | 41 | protected function init($crud = 'r', $edulevel = self::LEVEL_PARTICIPATING) { |
42 | 42 | parent::init($crud, $edulevel); |
43 | - $this->description = "The user with id '##userid' viewed the bigbluebuttonbn activity management page for ". |
|
43 | + $this->description = "The user with id '##userid' viewed the bigbluebuttonbn activity management page for " . |
|
44 | 44 | "the course module id '##contextinstanceid'."; |
45 | 45 | } |
46 | 46 |
@@ -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 published a recording with id ". |
|
44 | + $this->description = "The user with id '##userid' has published 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' created a bigbluebutton meeting for ". |
|
44 | + $this->description = "The user with id '##userid' created a bigbluebutton meeting for " . |
|
45 | 45 | "the bigbluebuttonbn activity with id '##objectid' for the course id '##courseid'."; |
46 | 46 | } |
47 | 47 |