Completed
Push — master ( 9d2cc3...4fd1c3 )
by Jesus
02:11
created
backup/moodle2/backup_bigbluebuttonbn_activity_task.class.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
 
26 26
 defined('MOODLE_INTERNAL') || die;
27 27
 
28
-require_once($CFG->dirroot.'/mod/bigbluebuttonbn/backup/moodle2/backup_bigbluebuttonbn_stepslib.php');
28
+require_once($CFG->dirroot . '/mod/bigbluebuttonbn/backup/moodle2/backup_bigbluebuttonbn_stepslib.php');
29 29
 
30 30
 /**
31 31
  * Backup task that provides all the settings and steps to perform one complete backup of the activity.
@@ -62,14 +62,14 @@  discard block
 block discarded – undo
62 62
     public static function encode_content_links($content) {
63 63
         global $CFG;
64 64
 
65
-        $base = preg_quote($CFG->wwwroot.'/mod/bigbluebuttonbn', '#');
65
+        $base = preg_quote($CFG->wwwroot . '/mod/bigbluebuttonbn', '#');
66 66
 
67 67
         // Link to the list of bigbluebuttonbns.
68
-        $pattern = '#('.$base."\/index.php\?id\=)([0-9]+)#";
68
+        $pattern = '#(' . $base . "\/index.php\?id\=)([0-9]+)#";
69 69
         $content = preg_replace($pattern, '$@BIGBLUEBUTTONBNINDEX*$2@$', $content);
70 70
 
71 71
         // Link to bigbluebuttonbn view by moduleid.
72
-        $pattern = '#('.$base."\/view.php\?id\=)([0-9]+)#";
72
+        $pattern = '#(' . $base . "\/view.php\?id\=)([0-9]+)#";
73 73
         $content = preg_replace($pattern, '$@BIGBLUEBUTTONBNVIEWBYID*$2@$', $content);
74 74
 
75 75
         return $content;
Please login to merge, or discard this patch.
backup/moodle2/backup_bigbluebuttonbn_stepslib.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
         $logs = new backup_nested_element('logs');
49 49
 
50 50
         $log = new backup_nested_element('log', array('id'), array(
51
-                'courseid', 'bigbluebuttonbnid', 'userid', 'timecreated', 'meetingid', 'log', 'meta', ));
51
+                'courseid', 'bigbluebuttonbnid', 'userid', 'timecreated', 'meetingid', 'log', 'meta',));
52 52
 
53 53
         // Build the tree.
54 54
         $bigbluebuttonbn->add_child($logs);
Please login to merge, or discard this patch.
backup/moodle2/restore_bigbluebuttonbn_stepslib.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
      */
50 50
     protected function process_bigbluebuttonbn($data) {
51 51
         global $DB;
52
-        $data = (object) $data;
52
+        $data = (object)$data;
53 53
         $data->course = $this->get_courseid();
54 54
         $data->timemodified = $this->apply_date_offset($data->timemodified);
55 55
         // Insert the bigbluebuttonbn record.
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
      */
66 66
     protected function process_bigbluebuttonbn_logs($data) {
67 67
         global $DB;
68
-        $data = (object) $data;
68
+        $data = (object)$data;
69 69
         // Apply modifications.
70 70
         $data->courseid = $this->get_mappingid('course', $data->courseid);
71 71
         $data->bigbluebuttonbnid = $this->get_new_parentid('bigbluebuttonbn');
Please login to merge, or discard this patch.
backup/moodle2/restore_bigbluebuttonbn_activity_task.class.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
 
26 26
 defined('MOODLE_INTERNAL') || die();
27 27
 
28
-require_once($CFG->dirroot.'/mod/bigbluebuttonbn/backup/moodle2/restore_bigbluebuttonbn_stepslib.php');
28
+require_once($CFG->dirroot . '/mod/bigbluebuttonbn/backup/moodle2/restore_bigbluebuttonbn_stepslib.php');
29 29
 
30 30
 /**
31 31
  * Restore task that provides all the settings and steps to perform one complete restore of the activity.
Please login to merge, or discard this patch.
classes/event/base.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@
 block discarded – undo
80 80
             'objectid' => $this->objectid,
81 81
             'contextinstanceid' => $this->contextinstanceid,
82 82
             'other' => $this->other
83
-          );
83
+            );
84 84
         $string = $this->description;
85 85
         foreach ($vars as $key => $value) {
86 86
             $string = str_replace("##" . $key, $value, $string);
Please login to merge, or discard this patch.
db/upgrade.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
 
27 27
 defined('MOODLE_INTERNAL') || die();
28 28
 
29
-require_once(dirname(dirname(__FILE__)).'/locallib.php');
29
+require_once(dirname(dirname(__FILE__)) . '/locallib.php');
30 30
 
31 31
 /**
32 32
  * Performs data migrations and updates on upgrade.
Please login to merge, or discard this patch.
classes/privacy/provider.php 3 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -212,7 +212,7 @@
 block discarded – undo
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
             }
Please login to merge, or discard this patch.
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -61,11 +61,11 @@  discard block
 block discarded – undo
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
 block discarded – undo
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) {
Please login to merge, or discard this patch.
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -54,6 +54,7 @@  discard block
 block discarded – undo
54 54
          * Get the list of users who have data within a context.
55 55
          *
56 56
          * @param   userlist $userlist The userlist containing the list of users who have data in this context/plugin combination.
57
+         * @return void
57 58
          */
58 59
         public static function get_users_in_context(userlist $userlist);
59 60
 
@@ -61,6 +62,7 @@  discard block
 block discarded – undo
61 62
          * Delete multiple users within a single context.
62 63
          *
63 64
          * @param   approved_userlist       $userlist The approved context and user information to delete information for.
65
+         * @return void
64 66
          */
65 67
         public static function delete_data_for_users(approved_userlist $userlist);
66 68
     }
Please login to merge, or discard this patch.
classes/external.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -109,7 +109,7 @@
 block discarded – undo
109 109
      * @since Moodle 3.3
110 110
      */
111 111
     public static function get_bigbluebuttonbns_by_courses_parameters() {
112
-        return new external_function_parameters (
112
+        return new external_function_parameters(
113 113
             array(
114 114
                 'courseids' => new external_multiple_structure(
115 115
                     new external_value(PARAM_INT, 'Course id'), 'Array of course ids', VALUE_DEFAULT, array()
Please login to merge, or discard this patch.
classes/locallib/config.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -55,8 +55,8 @@  discard block
 block discarded – undo
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,
@@ -124,8 +124,8 @@  discard block
 block discarded – undo
124 124
         if (isset($CFG->bigbluebuttonbn[$setting])) {
125 125
             return (string)$CFG->bigbluebuttonbn[$setting];
126 126
         }
127
-        if (isset($CFG->{'bigbluebuttonbn_'.$setting})) {
128
-            return (string)$CFG->{'bigbluebuttonbn_'.$setting};
127
+        if (isset($CFG->{'bigbluebuttonbn_' . $setting})) {
128
+            return (string)$CFG->{'bigbluebuttonbn_' . $setting};
129 129
         }
130 130
         return self::defaultvalue($setting);
131 131
     }
Please login to merge, or discard this patch.
Indentation   +57 added lines, -57 removed lines patch added patch discarded remove patch
@@ -189,64 +189,64 @@
 block discarded – undo
189 189
      */
190 190
     public static function get_options() {
191 191
         return array(
192
-               'version_major' => self::get_moodle_version_major(),
193
-               'voicebridge_editable' => self::get('voicebridge_editable'),
194
-               'importrecordings_enabled' => self::get('importrecordings_enabled'),
195
-               'importrecordings_from_deleted_enabled' => self::get('importrecordings_from_deleted_enabled'),
196
-               'waitformoderator_default' => self::get('waitformoderator_default'),
197
-               'waitformoderator_editable' => self::get('waitformoderator_editable'),
198
-               'userlimit_default' => self::get('userlimit_default'),
199
-               'userlimit_editable' => self::get('userlimit_editable'),
200
-               'preuploadpresentation_enabled' => self::get('preuploadpresentation_enabled'),
201
-               'sendnotifications_enabled' => self::get('sendnotifications_enabled'),
202
-               'recordings_enabled' => self::get('recordings_enabled'),
203
-               'meetingevents_enabled' => self::get('meetingevents_enabled'),
204
-               'recordings_html_default' => self::get('recordings_html_default'),
205
-               'recordings_html_editable' => self::get('recordings_html_editable'),
206
-               'recordings_deleted_default' => self::get('recordings_deleted_default'),
207
-               'recordings_deleted_editable' => self::get('recordings_deleted_editable'),
208
-               'recordings_imported_default' => self::get('recordings_imported_default'),
209
-               'recordings_imported_editable' => self::get('recordings_imported_editable'),
210
-               'recordings_preview_default' => self::get('recordings_preview_default'),
211
-               'recordings_preview_editable' => self::get('recordings_preview_editable'),
212
-               'recordings_validate_url' => self::get('recordings_validate_url'),
213
-               'recording_default' => self::get('recording_default'),
214
-               'recording_editable' => self::get('recording_editable'),
215
-               'recording_icons_enabled' => self::get('recording_icons_enabled'),
216
-               'recording_all_from_start_default' => self::get('recording_all_from_start_default'),
217
-               'recording_all_from_start_editable' => self::get('recording_all_from_start_editable'),
218
-               'recording_hide_button_default' => self::get('recording_hide_button_default'),
219
-               'recording_hide_button_editable' => self::get('recording_hide_button_editable'),
220
-               'general_warning_message' => self::get('general_warning_message'),
221
-               'general_warning_box_type' => self::get('general_warning_box_type'),
222
-               'general_warning_button_text' => self::get('general_warning_button_text'),
223
-               'general_warning_button_href' => self::get('general_warning_button_href'),
224
-               'general_warning_button_class' => self::get('general_warning_button_class'),
225
-               'clienttype_enabled' => self::get('clienttype_enabled'),
226
-               'clienttype_editable' => self::get('clienttype_editable'),
227
-               'clienttype_default' => self::get('clienttype_default'),
228
-               'muteonstart_editable' => self::get('muteonstart_editable'),
229
-               'muteonstart_default' => self::get('muteonstart_default'),
192
+                'version_major' => self::get_moodle_version_major(),
193
+                'voicebridge_editable' => self::get('voicebridge_editable'),
194
+                'importrecordings_enabled' => self::get('importrecordings_enabled'),
195
+                'importrecordings_from_deleted_enabled' => self::get('importrecordings_from_deleted_enabled'),
196
+                'waitformoderator_default' => self::get('waitformoderator_default'),
197
+                'waitformoderator_editable' => self::get('waitformoderator_editable'),
198
+                'userlimit_default' => self::get('userlimit_default'),
199
+                'userlimit_editable' => self::get('userlimit_editable'),
200
+                'preuploadpresentation_enabled' => self::get('preuploadpresentation_enabled'),
201
+                'sendnotifications_enabled' => self::get('sendnotifications_enabled'),
202
+                'recordings_enabled' => self::get('recordings_enabled'),
203
+                'meetingevents_enabled' => self::get('meetingevents_enabled'),
204
+                'recordings_html_default' => self::get('recordings_html_default'),
205
+                'recordings_html_editable' => self::get('recordings_html_editable'),
206
+                'recordings_deleted_default' => self::get('recordings_deleted_default'),
207
+                'recordings_deleted_editable' => self::get('recordings_deleted_editable'),
208
+                'recordings_imported_default' => self::get('recordings_imported_default'),
209
+                'recordings_imported_editable' => self::get('recordings_imported_editable'),
210
+                'recordings_preview_default' => self::get('recordings_preview_default'),
211
+                'recordings_preview_editable' => self::get('recordings_preview_editable'),
212
+                'recordings_validate_url' => self::get('recordings_validate_url'),
213
+                'recording_default' => self::get('recording_default'),
214
+                'recording_editable' => self::get('recording_editable'),
215
+                'recording_icons_enabled' => self::get('recording_icons_enabled'),
216
+                'recording_all_from_start_default' => self::get('recording_all_from_start_default'),
217
+                'recording_all_from_start_editable' => self::get('recording_all_from_start_editable'),
218
+                'recording_hide_button_default' => self::get('recording_hide_button_default'),
219
+                'recording_hide_button_editable' => self::get('recording_hide_button_editable'),
220
+                'general_warning_message' => self::get('general_warning_message'),
221
+                'general_warning_box_type' => self::get('general_warning_box_type'),
222
+                'general_warning_button_text' => self::get('general_warning_button_text'),
223
+                'general_warning_button_href' => self::get('general_warning_button_href'),
224
+                'general_warning_button_class' => self::get('general_warning_button_class'),
225
+                'clienttype_enabled' => self::get('clienttype_enabled'),
226
+                'clienttype_editable' => self::get('clienttype_editable'),
227
+                'clienttype_default' => self::get('clienttype_default'),
228
+                'muteonstart_editable' => self::get('muteonstart_editable'),
229
+                'muteonstart_default' => self::get('muteonstart_default'),
230 230
 
231
-               'disablecam_editable' => self::get('disablecam_editable'),
232
-               'disablecam_default' => self::get('disablecam_default'),
233
-               'disablemic_editable' => self::get('disablemic_editable'),
234
-               'disablemic_default' => self::get('disablemic_default'),
235
-               'disableprivatechat_editable' => self::get('disableprivatechat_editable'),
236
-               'disableprivatechat_default' => self::get('disableprivatechat_default'),
237
-               'disablepublicchat_editable' => self::get('disablepublicchat_editable'),
238
-               'disablepublicchat_default' => self::get('disablepublicchat_default'),
239
-               'disablenote_editable' => self::get('disablenote_editable'),
240
-               'disablenote_default' => self::get('disablenote_default'),
241
-               'hideuserlist_editable' => self::get('hideuserlist_editable'),
242
-               'hideuserlist_default' => self::get('hideuserlist_default'),
243
-               'lockedlayout_editable' => self::get('lockedlayout_editable'),
244
-               'lockedlayout_default' => self::get('lockedlayout_default'),
245
-               'lockonjoin_editable' => self::get('lockonjoin_editable'),
246
-               'lockonjoin_default' => self::get('lockonjoin_default'),
247
-               'lockonjoinconfigurable_editable' => self::get('lockonjoinconfigurable_editable'),
248
-               'lockonjoinconfigurable_default' => self::get('lockonjoinconfigurable_default'),
231
+                'disablecam_editable' => self::get('disablecam_editable'),
232
+                'disablecam_default' => self::get('disablecam_default'),
233
+                'disablemic_editable' => self::get('disablemic_editable'),
234
+                'disablemic_default' => self::get('disablemic_default'),
235
+                'disableprivatechat_editable' => self::get('disableprivatechat_editable'),
236
+                'disableprivatechat_default' => self::get('disableprivatechat_default'),
237
+                'disablepublicchat_editable' => self::get('disablepublicchat_editable'),
238
+                'disablepublicchat_default' => self::get('disablepublicchat_default'),
239
+                'disablenote_editable' => self::get('disablenote_editable'),
240
+                'disablenote_default' => self::get('disablenote_default'),
241
+                'hideuserlist_editable' => self::get('hideuserlist_editable'),
242
+                'hideuserlist_default' => self::get('hideuserlist_default'),
243
+                'lockedlayout_editable' => self::get('lockedlayout_editable'),
244
+                'lockedlayout_default' => self::get('lockedlayout_default'),
245
+                'lockonjoin_editable' => self::get('lockonjoin_editable'),
246
+                'lockonjoin_default' => self::get('lockonjoin_default'),
247
+                'lockonjoinconfigurable_editable' => self::get('lockonjoinconfigurable_editable'),
248
+                'lockonjoinconfigurable_default' => self::get('lockonjoinconfigurable_default'),
249 249
 
250
-          );
250
+            );
251 251
     }
252 252
 }
Please login to merge, or discard this patch.