Completed
Push — master ( 10847d...32c9ae )
by Jesus
03:00
created
classes/event/bigbluebuttonbn_meeting_joined.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -52,12 +52,12 @@  discard block
 block discarded – undo
52 52
      * @return string
53 53
      */
54 54
     public function get_description() {
55
-        $a = (object) array('userid' => $this->userid,
55
+        $a = (object)array('userid' => $this->userid,
56 56
                             'bigbluebuttonbnid' => $this->objectid,
57 57
                             'courseid' => $this->contextinstanceid);
58 58
 
59
-        return "The user with id '$a->userid' has joined a bigbluebutton meeting for ".
60
-        "the bigbluebuttonbn activity with id '$a->bigbluebuttonbnid' for the course id ".
59
+        return "The user with id '$a->userid' has joined a bigbluebutton meeting for " .
60
+        "the bigbluebuttonbn activity with id '$a->bigbluebuttonbnid' for the course id " .
61 61
         "'$a->courseid'.";
62 62
     }
63 63
 
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
      */
69 69
     protected function get_legacy_logdata() {
70 70
         return array($this->courseid, 'bigbluebuttonbn', 'meeting joined',
71
-                'view.php?pageid='.$this->objectid, 'BigBlueButtonBN meeting joined',
71
+                'view.php?pageid=' . $this->objectid, 'BigBlueButtonBN meeting joined',
72 72
                 $this->contextinstanceid);
73 73
     }
74 74
 
Please login to merge, or discard this patch.
backup/moodle2/backup_bigbluebuttonbn_activity_task.class.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
 
24 24
 defined('MOODLE_INTERNAL') || die;
25 25
 
26
-require_once($CFG->dirroot.'/mod/bigbluebuttonbn/backup/moodle2/backup_bigbluebuttonbn_stepslib.php');
26
+require_once($CFG->dirroot . '/mod/bigbluebuttonbn/backup/moodle2/backup_bigbluebuttonbn_stepslib.php');
27 27
 
28 28
 /**
29 29
  * bigbluebuttonbn backup task that provides all the settings and steps to perform one
@@ -53,14 +53,14 @@  discard block
 block discarded – undo
53 53
     public static function encode_content_links($content) {
54 54
         global $CFG;
55 55
 
56
-        $base = preg_quote($CFG->wwwroot.'/mod/bigbluebuttonbn', '#');
56
+        $base = preg_quote($CFG->wwwroot . '/mod/bigbluebuttonbn', '#');
57 57
 
58 58
         // Link to the list of bigbluebuttonbns.
59
-        $pattern = '#('.$base."\/index.php\?id\=)([0-9]+)#";
59
+        $pattern = '#(' . $base . "\/index.php\?id\=)([0-9]+)#";
60 60
         $content = preg_replace($pattern, '$@BIGBLUEBUTTONBNINDEX*$2@$', $content);
61 61
 
62 62
         // Link to bigbluebuttonbn view by moduleid.
63
-        $pattern = '#('.$base."\/view.php\?id\=)([0-9]+)#";
63
+        $pattern = '#(' . $base . "\/view.php\?id\=)([0-9]+)#";
64 64
         $content = preg_replace($pattern, '$@BIGBLUEBUTTONBNVIEWBYID*$2@$', $content);
65 65
 
66 66
         return $content;
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
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
     protected function process_bigbluebuttonbn($data) {
46 46
         global $DB;
47 47
 
48
-        $data = (object) $data;
48
+        $data = (object)$data;
49 49
         $data->course = $this->get_courseid();
50 50
 
51 51
         $data->timemodified = $this->apply_date_offset($data->timemodified);
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
     protected function process_bigbluebuttonbn_logs($data) {
60 60
         global $DB;
61 61
 
62
-        $data = (object) $data;
62
+        $data = (object)$data;
63 63
         // Apply modifications.
64 64
         $data->courseid = $this->get_mappingid('course', $data->courseid);
65 65
         $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
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
 
24 24
 defined('MOODLE_INTERNAL') || die();
25 25
 
26
-require_once($CFG->dirroot.'/mod/bigbluebuttonbn/backup/moodle2/restore_bigbluebuttonbn_stepslib.php');
26
+require_once($CFG->dirroot . '/mod/bigbluebuttonbn/backup/moodle2/restore_bigbluebuttonbn_stepslib.php');
27 27
 
28 28
 /**
29 29
  * bigbluebuttonbn restore task that provides all the settings and steps to perform one
Please login to merge, or discard this patch.
backup/moodle2/backup_bigbluebuttonbn_stepslib.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,12 +40,12 @@
 block discarded – undo
40 40
                             'moderatorpass', 'viewerpass', 'wait', 'record', 'tagging',
41 41
                             'welcome', 'voicebridge', 'openingtime', 'closingtime',
42 42
                             'timecreated', 'timemodified', 'presentation', 'participants',
43
-                            'userlimit', ));
43
+                            'userlimit',));
44 44
 
45 45
         $logs = new backup_nested_element('logs');
46 46
 
47 47
         $log = new backup_nested_element('log', array('id'), array(
48
-                'courseid', 'bigbluebuttonbnid', 'userid', 'timecreated', 'meetingid', 'log', 'meta', ));
48
+                'courseid', 'bigbluebuttonbnid', 'userid', 'timecreated', 'meetingid', 'log', 'meta',));
49 49
 
50 50
         // Build the tree.
51 51
         $bigbluebuttonbn->add_child($logs);
Please login to merge, or discard this patch.
settings.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
 
28 28
 global $CFG;
29 29
 
30
-require_once(dirname(__FILE__).'/locallib.php');
30
+require_once(dirname(__FILE__) . '/locallib.php');
31 31
 
32 32
 if ($ADMIN->fulltree) {
33 33
     if (!isset($CFG->bigbluebuttonbn['server_url']) ||
@@ -258,8 +258,8 @@  discard block
 block discarded – undo
258 258
         } else {
259 259
             $settings->add(new admin_setting_heading('bigbluebuttonbn_feature_preuploadpresentation',
260 260
                 get_string('config_feature_preuploadpresentation', 'bigbluebuttonbn'),
261
-                get_string('config_feature_preuploadpresentation_description', 'bigbluebuttonbn').'<br><br>'.
262
-                '<div class="form-defaultinfo">'.get_string('config_warning_curl_not_installed', 'bigbluebuttonbn').'</div><br>'
261
+                get_string('config_feature_preuploadpresentation_description', 'bigbluebuttonbn') . '<br><br>' .
262
+                '<div class="form-defaultinfo">' . get_string('config_warning_curl_not_installed', 'bigbluebuttonbn') . '</div><br>'
263 263
                 ));
264 264
         }
265 265
     }
Please login to merge, or discard this patch.
mod_form.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -203,8 +203,8 @@  discard block
 block discarded – undo
203 203
             $this->bigbluebuttonbn_mform_add_element($mform, $field['type'], $field['name'], $field['data_type'],
204 204
                 $field['description_key'], 0, ['maxlength' => 4, 'size' => 6],
205 205
                 ['message' => get_string('mod_form_field_voicebridge_format_error', 'bigbluebuttonbn'),
206
-                 'type' => 'numeric', 'rule' => '####', 'validator' => 'server']
207
-              );
206
+                    'type' => 'numeric', 'rule' => '####', 'validator' => 'server']
207
+                );
208 208
         } else {
209 209
             $this->bigbluebuttonbn_mform_add_element($mform, $field['type'], $field['name'], $field['data_type'],
210 210
                 $field['description_key'], 0, ['maxlength' => 4, 'size' => 6]);
@@ -246,7 +246,7 @@  discard block
 block discarded – undo
246 246
             $field['description_key'], $cfg['recordings_html_default']);
247 247
 
248 248
         $field = ['type' => 'hidden', 'name' => 'recordings_deleted_activities', 'data_type' => PARAM_INT,
249
-                  'description_key' => null];
249
+                    'description_key' => null];
250 250
         if ($cfg['recordings_deleted_activities_editable']) {
251 251
             $field['type'] = 'checkbox';
252 252
             $field['description_key'] = 'mod_form_field_recordings_deleted_activities';
@@ -301,7 +301,7 @@  discard block
 block discarded – undo
301 301
             html_writer::select($participantselection['type_options'], 'bigbluebuttonbn_participant_selection_type',
302 302
                 $participantselection['type_selected'], array(),
303 303
                 array('id' => 'bigbluebuttonbn_participant_selection_type',
304
-                      'onchange' => 'M.mod_bigbluebuttonbn.modform.participant_selection_set(); return 0;')).'&nbsp;&nbsp;'.
304
+                        'onchange' => 'M.mod_bigbluebuttonbn.modform.participant_selection_set(); return 0;')).'&nbsp;&nbsp;'.
305 305
             html_writer::select($participantselection['options'], 'bigbluebuttonbn_participant_selection',
306 306
                 $participantselection['selected'], array(),
307 307
                 array('id' => 'bigbluebuttonbn_participant_selection', 'disabled' => 'disabled')).'&nbsp;&nbsp;'.
Please login to merge, or discard this patch.
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -26,8 +26,8 @@  discard block
 block discarded – undo
26 26
 
27 27
 defined('MOODLE_INTERNAL') || die();
28 28
 
29
-require_once(dirname(__FILE__).'/locallib.php');
30
-require_once($CFG->dirroot.'/course/moodleform_mod.php');
29
+require_once(dirname(__FILE__) . '/locallib.php');
30
+require_once($CFG->dirroot . '/course/moodleform_mod.php');
31 31
 
32 32
 class mod_bigbluebuttonbn_mod_form extends moodleform_mod {
33 33
 
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
         $serverversion = bigbluebuttonbn_get_server_version();
39 39
         if (is_null($serverversion)) {
40 40
             print_error('general_error_unable_connect', 'bigbluebuttonbn',
41
-                $CFG->wwwroot.'/admin/settings.php?section=modsettingbigbluebuttonbn');
41
+                $CFG->wwwroot . '/admin/settings.php?section=modsettingbigbluebuttonbn');
42 42
         }
43 43
 
44 44
         $bigbluebuttonbn = null;
@@ -301,12 +301,12 @@  discard block
 block discarded – undo
301 301
             html_writer::select($participantselection['type_options'], 'bigbluebuttonbn_participant_selection_type',
302 302
                 $participantselection['type_selected'], array(),
303 303
                 array('id' => 'bigbluebuttonbn_participant_selection_type',
304
-                      'onchange' => 'M.mod_bigbluebuttonbn.modform.participant_selection_set(); return 0;')).'&nbsp;&nbsp;'.
304
+                      'onchange' => 'M.mod_bigbluebuttonbn.modform.participant_selection_set(); return 0;')) . '&nbsp;&nbsp;' .
305 305
             html_writer::select($participantselection['options'], 'bigbluebuttonbn_participant_selection',
306 306
                 $participantselection['selected'], array(),
307
-                array('id' => 'bigbluebuttonbn_participant_selection', 'disabled' => 'disabled')).'&nbsp;&nbsp;'.
308
-            '<input value="'.get_string('mod_form_field_participant_list_action_add', 'bigbluebuttonbn').
309
-            '" class="btn btn-secondary" type="button" id="id_addselectionid" '.
307
+                array('id' => 'bigbluebuttonbn_participant_selection', 'disabled' => 'disabled')) . '&nbsp;&nbsp;' .
308
+            '<input value="' . get_string('mod_form_field_participant_list_action_add', 'bigbluebuttonbn') .
309
+            '" class="btn btn-secondary" type="button" id="id_addselectionid" ' .
310 310
             'onclick="M.mod_bigbluebuttonbn.modform.participant_add(); return 0;" />'
311 311
         );
312 312
 
@@ -323,7 +323,7 @@  discard block
 block discarded – undo
323 323
         // Render elements for participant list.
324 324
         $htmllist = html_writer::tag('div',
325 325
             html_writer::label(get_string('mod_form_field_participant_list', 'bigbluebuttonbn'),
326
-                'bigbluebuttonbn_participant_list').
326
+                'bigbluebuttonbn_participant_list') .
327 327
             html_writer::table($table)
328 328
         );
329 329
 
@@ -356,7 +356,7 @@  discard block
 block discarded – undo
356 356
         }
357 357
 
358 358
         $mform->addElement($type, $name, get_string($descriptionkey, 'bigbluebuttonbn'), $options);
359
-        if (get_string_manager()->string_exists($descriptionkey.'_help', 'bigbluebuttonbn')) {
359
+        if (get_string_manager()->string_exists($descriptionkey . '_help', 'bigbluebuttonbn')) {
360 360
             $mform->addHelpButton($name, $descriptionkey, 'bigbluebuttonbn');
361 361
         }
362 362
         if (!empty($rule)) {
Please login to merge, or discard this patch.
classes/event/bigbluebuttonbn_live_session_event.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -52,13 +52,13 @@  discard block
 block discarded – undo
52 52
      * @return string
53 53
      */
54 54
     public function get_description() {
55
-        $a = (object) array('userid' => $this->userid,
55
+        $a = (object)array('userid' => $this->userid,
56 56
                             'bigbluebuttonbnid' => $this->objectid,
57 57
                             'courseid' => $this->contextinstanceid,
58 58
                             'action' => $this->other);
59 59
 
60
-        return "The user with id '$a->userid' triggered action $a->action in a ".
61
-        "bigbluebutton meeting for the bigbluebuttonbn activity with id ".
60
+        return "The user with id '$a->userid' triggered action $a->action in a " .
61
+        "bigbluebutton meeting for the bigbluebuttonbn activity with id " .
62 62
         "'$a->bigbluebuttonbnid' for the course id '$a->courseid'.";
63 63
     }
64 64
 
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
      */
70 70
     protected function get_legacy_logdata() {
71 71
         return array($this->courseid, 'bigbluebuttonbn', 'meeting left',
72
-                'view.php?pageid='.$this->objectid, 'BigBlueButtonBN meeting live session event',
72
+                'view.php?pageid=' . $this->objectid, 'BigBlueButtonBN meeting live session event',
73 73
                 $this->contextinstanceid);
74 74
     }
75 75
 
Please login to merge, or discard this patch.
config-dist.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
  * recordings from a different activity even from a different course.
95 95
  **/
96 96
 
97
- /*
97
+    /*
98 98
  * When the value is set to 1 (checked) the bigbluebuttonbn rooms or
99 99
  * activities will have the 'import recordings' capability enabled.
100 100
  */
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
  * 'Join session' button enabled
116 116
  **/
117 117
 
118
- /*
118
+    /*
119 119
  * When the value is set to 1 (checked) the bigbluebuttonbn rooms or
120 120
  * activities will have the 'wait for moderator' capability enabled by
121 121
  * default.
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
  * 5. CONFIGURATION FOR "STATIC VOICE BRIDGE" FEATURE
150 150
  *
151 151
  **/
152
- /*
152
+    /*
153 153
  * A conference voice bridge number can be permanently assigned to a room
154 154
  * or activity.
155 155
  */
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
  * 6. CONFIGURATION FOR "PRE-UPLOAD PRESENTATION" FEATURE
160 160
  *
161 161
  **/
162
- /*
162
+    /*
163 163
  * Since version 0.8, BigBluebutton has an implementation for allowing
164 164
  * preuploading presentation. When this feature is enabled, users creating or
165 165
  * editing a room or activity can upload a PDF or Office document to the
@@ -176,7 +176,7 @@  discard block
 block discarded – undo
176 176
  * applied to each room or activity, or globally.
177 177
  **/
178 178
 
179
- /*
179
+    /*
180 180
  * The number of users allowed in a session by default when a new room or
181 181
  * conference is added. If the number is set to 0, no limit is established.
182 182
  * $CFG->bigbluebuttonbn['userlimit_default'] = 0;
@@ -197,7 +197,7 @@  discard block
 block discarded – undo
197 197
  * By default only the owner is assigned.
198 198
  **/
199 199
 
200
- /*
200
+    /*
201 201
  * The values for this parameter can be 'owner' and/or any of the roles defined in
202 202
  * Moodle (including the custom parameters). The value used will be the key for the role.
203 203
  * [owner|manager|coursecreator|editingteacher|teacher|student|guest|user|frontpage|ANY_CUSTOM_ROLE]
@@ -208,7 +208,7 @@  discard block
 block discarded – undo
208 208
  * 9. CONFIGURATION FOR "NOTIFICATION SENDING" FEATURE
209 209
  *
210 210
  **/
211
- /*
211
+    /*
212 212
  * When the value is set to 1 (checked) the 'notification sending'
213 213
  * capability can be used by the user creating or editing the room or
214 214
  * activity.
@@ -222,7 +222,7 @@  discard block
 block discarded – undo
222 222
  * 10. CONFIGURATION FOR "RECORDING READY" FEATURE
223 223
  *
224 224
  **/
225
- /*
225
+    /*
226 226
  * When the value is set to 1 (checked) the 'notify users when recording ready'
227 227
  * capability is enabled, meaning that a message will be sent to all enrolled
228 228
  * users in a course when a recording is ready
@@ -245,7 +245,7 @@  discard block
 block discarded – undo
245 245
  * 12. GENERAL CONFIGURATION FOR RECORDINGS UI
246 246
  *
247 247
  **/
248
- /*
248
+    /*
249 249
  * When the value is set to 1 (checked) the bigbluebuttonbn resources
250 250
  * will show the recodings in an html table by default.
251 251
  * $CFG->bigbluebuttonbn['recordings_html_default'] = 0;
Please login to merge, or discard this patch.