Completed
Push — master ( 81f985...bcb26e )
by Jesus
17s queued 11s
created
config-dist.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
  * recordings from a different activity even from a different course.
104 104
  **/
105 105
 
106
- /*
106
+    /*
107 107
  * When the value is set to 1 (checked) the bigbluebuttonbn rooms or
108 108
  * activities will have the 'import recordings' capability enabled.
109 109
  * $CFG->bigbluebuttonbn['importrecordings_enabled'] = 0;
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
  * 'Join session' button enabled
125 125
  **/
126 126
 
127
- /*
127
+    /*
128 128
  * When the value is set to 1 (checked) the bigbluebuttonbn rooms or
129 129
  * activities will have the 'wait for moderator' capability enabled by
130 130
  * default.
@@ -361,27 +361,27 @@  discard block
 block discarded – undo
361 361
  * $CFG->bigbluebuttonbn['general_warning_message'] = "Would you like to record your BigBlueButton sessions for later viewing? ";
362 362
  */
363 363
 
364
- /*
364
+    /*
365 365
  * The warning box is always shown to administrators, but it is also possible to define other roles
366 366
  * to whom the it will be shown. The roles are based on the shortnames defined by Moodle:
367 367
  *     'manager,coursecreator,editingteacher,teacher,student,guest,user,frontpage'
368 368
  * $CFG->bigbluebuttonbn['general_warning_roles'] = 'editingteacher,teacher';
369 369
  */
370 370
 
371
- /*
371
+    /*
372 372
  * As the general_warning_message is shown in a box, its type can be defined with general_warning_type
373 373
  * The default type is 'info' which is normaly rendered in blue when using a bootstrap theme.
374 374
  * All the modifiers for boxed in bootstrap can be used [info|success|warning|danger].
375 375
  * $CFG->bigbluebuttonbn['general_warning_box_type'] = 'info';
376 376
  */
377 377
 
378
- /*
378
+    /*
379 379
  * Additionally, when general_warning_button_href value is different than "", a button
380 380
  * can also be shown right after the message.
381 381
  * $CFG->bigbluebuttonbn['general_warning_button_href'] = "http://blindsidenetworks.com/";
382 382
  */
383 383
 
384
- /*
384
+    /*
385 385
  * Finally, the text and class for the button can be modified
386 386
  * $CFG->bigbluebuttonbn['general_warning_button_text'] = "Upgrade your site";
387 387
  * $CFG->bigbluebuttonbn['general_warning_button_class'] = "btn btn-primary";
Please login to merge, or discard this patch.
mod_form.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -309,8 +309,8 @@  discard block
 block discarded – undo
309 309
             $this->bigbluebuttonbn_mform_add_element($mform, $field['type'], $field['name'], $field['data_type'],
310 310
                 $field['description_key'], 0, ['maxlength' => 4, 'size' => 6],
311 311
                 ['message' => get_string('mod_form_field_voicebridge_format_error', 'bigbluebuttonbn'),
312
-                 'type' => 'numeric', 'rule' => '####', 'validator' => 'server']
313
-              );
312
+                    'type' => 'numeric', 'rule' => '####', 'validator' => 'server']
313
+                );
314 314
         } else {
315 315
             $this->bigbluebuttonbn_mform_add_element($mform, $field['type'], $field['name'], $field['data_type'],
316 316
                 $field['description_key'], 0, ['maxlength' => 4, 'size' => 6]);
@@ -380,7 +380,7 @@  discard block
 block discarded – undo
380 380
     private function bigbluebuttonbn_mform_add_block_room_recordings(&$mform, $cfg) {
381 381
         $recordingsettings = false;
382 382
         $field = ['type' => 'hidden', 'name' => 'recordings_html', 'data_type' => PARAM_INT,
383
-                  'description_key' => null];
383
+                    'description_key' => null];
384 384
         if ($cfg['recordings_html_editable']) {
385 385
             $field['type'] = 'checkbox';
386 386
             $field['description_key'] = 'mod_form_field_recordings_html';
@@ -389,7 +389,7 @@  discard block
 block discarded – undo
389 389
         $this->bigbluebuttonbn_mform_add_element($mform, $field['type'], $field['name'], $field['data_type'],
390 390
             $field['description_key'], $cfg['recordings_html_default']);
391 391
         $field = ['type' => 'hidden', 'name' => 'recordings_deleted', 'data_type' => PARAM_INT,
392
-                  'description_key' => null];
392
+                    'description_key' => null];
393 393
         if ($cfg['recordings_deleted_editable']) {
394 394
             $field['type'] = 'checkbox';
395 395
             $field['description_key'] = 'mod_form_field_recordings_deleted';
@@ -398,7 +398,7 @@  discard block
 block discarded – undo
398 398
         $this->bigbluebuttonbn_mform_add_element($mform, $field['type'], $field['name'], $field['data_type'],
399 399
             $field['description_key'], $cfg['recordings_deleted_default']);
400 400
         $field = ['type' => 'hidden', 'name' => 'recordings_imported', 'data_type' => PARAM_INT,
401
-                  'description_key' => null];
401
+                    'description_key' => null];
402 402
         if ($cfg['importrecordings_enabled'] && $cfg['recordings_imported_editable']) {
403 403
             $field['type'] = 'checkbox';
404 404
             $field['description_key'] = 'mod_form_field_recordings_imported';
@@ -407,7 +407,7 @@  discard block
 block discarded – undo
407 407
         $this->bigbluebuttonbn_mform_add_element($mform, $field['type'], $field['name'], $field['data_type'],
408 408
             $field['description_key'], $cfg['recordings_imported_default']);
409 409
         $field = ['type' => 'hidden', 'name' => 'recordings_preview', 'data_type' => PARAM_INT,
410
-                  'description_key' => null];
410
+                    'description_key' => null];
411 411
         if ($cfg['recordings_preview_editable']) {
412 412
             $field['type'] = 'checkbox';
413 413
             $field['description_key'] = 'mod_form_field_recordings_preview';
@@ -484,7 +484,7 @@  discard block
 block discarded – undo
484 484
         $htmlselectiontype = html_writer::select($participantselection['type_options'],
485 485
             'bigbluebuttonbn_participant_selection_type', $participantselection['type_selected'], array(),
486 486
             array('id' => 'bigbluebuttonbn_participant_selection_type',
487
-                  'onchange' => 'M.mod_bigbluebuttonbn.modform.participantSelectionSet(); return 0;'));
487
+                    'onchange' => 'M.mod_bigbluebuttonbn.modform.participantSelectionSet(); return 0;'));
488 488
         $htmlselectionoptions = html_writer::select($participantselection['options'], 'bigbluebuttonbn_participant_selection',
489 489
             $participantselection['selected'], array(),
490 490
             array('id' => 'bigbluebuttonbn_participant_selection', 'disabled' => 'disabled'));
@@ -492,7 +492,7 @@  discard block
 block discarded – undo
492 492
             'type' => 'button', 'class' => 'btn btn-secondary',
493 493
             'value' => get_string('mod_form_field_participant_list_action_add', 'bigbluebuttonbn'),
494 494
             'onclick' => 'M.mod_bigbluebuttonbn.modform.participantAdd(); return 0;'
495
-          ));
495
+            ));
496 496
         $htmladdparticipant = html_writer::tag('div',
497 497
             $htmlselectiontype . '  ' . $htmlselectionoptions . '  ' . $htmlselectioninput, null);
498 498
         $mform->addElement('html', "\n\n");
@@ -534,9 +534,9 @@  discard block
 block discarded – undo
534 534
             $field['type'] = 'select';
535 535
             $field['data_type'] = PARAM_TEXT;
536 536
             $field['description_key'] = 'mod_form_field_block_clienttype';
537
-             $choices = array(BIGBLUEBUTTON_CLIENTTYPE_FLASH => get_string('mod_form_block_clienttype_flash', 'bigbluebuttonbn'),
538
-                             BIGBLUEBUTTON_CLIENTTYPE_HTML5 => get_string('mod_form_block_clienttype_html5', 'bigbluebuttonbn'));
539
-             $mform->addElement('header', 'clienttypeselection', get_string('mod_form_block_clienttype', 'bigbluebuttonbn'));
537
+                $choices = array(BIGBLUEBUTTON_CLIENTTYPE_FLASH => get_string('mod_form_block_clienttype_flash', 'bigbluebuttonbn'),
538
+                                BIGBLUEBUTTON_CLIENTTYPE_HTML5 => get_string('mod_form_block_clienttype_html5', 'bigbluebuttonbn'));
539
+                $mform->addElement('header', 'clienttypeselection', get_string('mod_form_block_clienttype', 'bigbluebuttonbn'));
540 540
             $this->bigbluebuttonbn_mform_add_element($mform, $field['type'], $field['name'], $field['data_type'],
541 541
                                     $field['description_key'], $cfg['clienttype_default'], $choices);
542 542
             return;
Please login to merge, or discard this patch.
bbb_view.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -309,10 +309,10 @@  discard block
 block discarded – undo
309 309
  */
310 310
 function bigbluebuttonbn_bbb_view_create_meeting_data(&$bbbsession) {
311 311
     $data = ['meetingID' => $bbbsession['meetingid'],
312
-              'name' => bigbluebuttonbn_html2text($bbbsession['meetingname'], 64),
313
-              'attendeePW' => $bbbsession['viewerPW'],
314
-              'moderatorPW' => $bbbsession['modPW'],
315
-              'logoutURL' => $bbbsession['logoutURL'],
312
+                'name' => bigbluebuttonbn_html2text($bbbsession['meetingname'], 64),
313
+                'attendeePW' => $bbbsession['viewerPW'],
314
+                'moderatorPW' => $bbbsession['modPW'],
315
+                'logoutURL' => $bbbsession['logoutURL'],
316 316
             ];
317 317
     $data['record'] = bigbluebuttonbn_bbb_view_create_meeting_data_record($bbbsession['record']);
318 318
     // Check if auto_start_record is enable.
@@ -334,7 +334,7 @@  discard block
 block discarded – undo
334 334
             '%duration%',
335 335
             (string) $durationtime,
336 336
             get_string('bbbdurationwarning', 'bigbluebuttonbn')
337
-          );
337
+            );
338 338
     }
339 339
     $voicebridge = intval($bbbsession['voicebridge']);
340 340
     if ($voicebridge > 0 && $voicebridge < 79999) {
Please login to merge, or discard this patch.
classes/locallib/config.php 1 patch
Indentation   +38 added lines, -38 removed lines patch added patch discarded remove patch
@@ -170,43 +170,43 @@
 block discarded – undo
170 170
      */
171 171
     public static function get_options() {
172 172
         return array(
173
-               'version_major' => self::get_moodle_version_major(),
174
-               'voicebridge_editable' => self::get('voicebridge_editable'),
175
-               'importrecordings_enabled' => self::get('importrecordings_enabled'),
176
-               'importrecordings_from_deleted_enabled' => self::get('importrecordings_from_deleted_enabled'),
177
-               'waitformoderator_default' => self::get('waitformoderator_default'),
178
-               'waitformoderator_editable' => self::get('waitformoderator_editable'),
179
-               'userlimit_default' => self::get('userlimit_default'),
180
-               'userlimit_editable' => self::get('userlimit_editable'),
181
-               'preuploadpresentation_enabled' => self::get('preuploadpresentation_enabled'),
182
-               'sendnotifications_enabled' => self::get('sendnotifications_enabled'),
183
-               'recordings_enabled' => self::get('recordings_enabled'),
184
-               'meetingevents_enabled' => self::get('meetingevents_enabled'),
185
-               'recordings_html_default' => self::get('recordings_html_default'),
186
-               'recordings_html_editable' => self::get('recordings_html_editable'),
187
-               'recordings_deleted_default' => self::get('recordings_deleted_default'),
188
-               'recordings_deleted_editable' => self::get('recordings_deleted_editable'),
189
-               'recordings_imported_default' => self::get('recordings_imported_default'),
190
-               'recordings_imported_editable' => self::get('recordings_imported_editable'),
191
-               'recordings_preview_default' => self::get('recordings_preview_default'),
192
-               'recordings_preview_editable' => self::get('recordings_preview_editable'),
193
-               'recording_default' => self::get('recording_default'),
194
-               'recording_editable' => self::get('recording_editable'),
195
-               'recording_icons_enabled' => self::get('recording_icons_enabled'),
196
-               'recording_all_from_start_default' => self::get('recording_all_from_start_default'),
197
-               'recording_all_from_start_editable' => self::get('recording_all_from_start_editable'),
198
-               'recording_hide_button_default' => self::get('recording_hide_button_default'),
199
-               'recording_hide_button_editable' => self::get('recording_hide_button_editable'),
200
-               'general_warning_message' => self::get('general_warning_message'),
201
-               'general_warning_box_type' => self::get('general_warning_box_type'),
202
-               'general_warning_button_text' => self::get('general_warning_button_text'),
203
-               'general_warning_button_href' => self::get('general_warning_button_href'),
204
-               'general_warning_button_class' => self::get('general_warning_button_class'),
205
-               'clienttype_enabled' => self::get('clienttype_enabled'),
206
-               'clienttype_editable' => self::get('clienttype_editable'),
207
-               'clienttype_default' => self::get('clienttype_default'),
208
-               'muteonstart_editable' => self::get('muteonstart_editable'),
209
-               'muteonstart_default' => self::get('muteonstart_default'),
210
-          );
173
+                'version_major' => self::get_moodle_version_major(),
174
+                'voicebridge_editable' => self::get('voicebridge_editable'),
175
+                'importrecordings_enabled' => self::get('importrecordings_enabled'),
176
+                'importrecordings_from_deleted_enabled' => self::get('importrecordings_from_deleted_enabled'),
177
+                'waitformoderator_default' => self::get('waitformoderator_default'),
178
+                'waitformoderator_editable' => self::get('waitformoderator_editable'),
179
+                'userlimit_default' => self::get('userlimit_default'),
180
+                'userlimit_editable' => self::get('userlimit_editable'),
181
+                'preuploadpresentation_enabled' => self::get('preuploadpresentation_enabled'),
182
+                'sendnotifications_enabled' => self::get('sendnotifications_enabled'),
183
+                'recordings_enabled' => self::get('recordings_enabled'),
184
+                'meetingevents_enabled' => self::get('meetingevents_enabled'),
185
+                'recordings_html_default' => self::get('recordings_html_default'),
186
+                'recordings_html_editable' => self::get('recordings_html_editable'),
187
+                'recordings_deleted_default' => self::get('recordings_deleted_default'),
188
+                'recordings_deleted_editable' => self::get('recordings_deleted_editable'),
189
+                'recordings_imported_default' => self::get('recordings_imported_default'),
190
+                'recordings_imported_editable' => self::get('recordings_imported_editable'),
191
+                'recordings_preview_default' => self::get('recordings_preview_default'),
192
+                'recordings_preview_editable' => self::get('recordings_preview_editable'),
193
+                'recording_default' => self::get('recording_default'),
194
+                'recording_editable' => self::get('recording_editable'),
195
+                'recording_icons_enabled' => self::get('recording_icons_enabled'),
196
+                'recording_all_from_start_default' => self::get('recording_all_from_start_default'),
197
+                'recording_all_from_start_editable' => self::get('recording_all_from_start_editable'),
198
+                'recording_hide_button_default' => self::get('recording_hide_button_default'),
199
+                'recording_hide_button_editable' => self::get('recording_hide_button_editable'),
200
+                'general_warning_message' => self::get('general_warning_message'),
201
+                'general_warning_box_type' => self::get('general_warning_box_type'),
202
+                'general_warning_button_text' => self::get('general_warning_button_text'),
203
+                'general_warning_button_href' => self::get('general_warning_button_href'),
204
+                'general_warning_button_class' => self::get('general_warning_button_class'),
205
+                'clienttype_enabled' => self::get('clienttype_enabled'),
206
+                'clienttype_editable' => self::get('clienttype_editable'),
207
+                'clienttype_default' => self::get('clienttype_default'),
208
+                'muteonstart_editable' => self::get('muteonstart_editable'),
209
+                'muteonstart_default' => self::get('muteonstart_default'),
210
+            );
211 211
     }
212 212
 }
Please login to merge, or discard this patch.
classes/privacy/provider.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -59,11 +59,11 @@  discard block
 block discarded – undo
59 59
      */
60 60
     public static function _get_metadata(collection $collection) {
61 61
 
62
-         // The table bigbluebuttonbn stores only the room properties.
63
-         // However, there is a chance that some personal information is stored as metadata.
64
-         // This would be done in the column 'participants' where rules can be set to define BBB roles.
65
-         // It is fair to say that only the userid is stored, which is useless if user is removed.
66
-         // But if this is a concern a refactoring on the way the rules are stored will be required.
62
+            // The table bigbluebuttonbn stores only the room properties.
63
+            // However, there is a chance that some personal information is stored as metadata.
64
+            // This would be done in the column 'participants' where rules can be set to define BBB roles.
65
+            // It is fair to say that only the userid is stored, which is useless if user is removed.
66
+            // But if this is a concern a refactoring on the way the rules are stored will be required.
67 67
         $collection->add_database_table('bigbluebuttonbn', [
68 68
             'participants' => 'privacy:metadata:bigbluebuttonbn:participants',
69 69
         ], 'privacy:metadata:bigbluebuttonbn');
@@ -207,7 +207,7 @@  discard block
 block discarded – undo
207 207
                     'meetingid' => $record->meetingid,
208 208
                     'log' => $record->log,
209 209
                     'meta' => $record->meta,
210
-                  ];
210
+                    ];
211 211
                 return $carry;
212 212
             },
213 213
             function($instanceid, $data) use ($user, $instanceidstocmids) {
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
@@ -83,7 +83,7 @@
 block discarded – undo
83 83
             'objectid' => $this->objectid,
84 84
             'contextinstanceid' => $this->contextinstanceid,
85 85
             'other' => $this->other
86
-          );
86
+            );
87 87
         $string = $this->description;
88 88
         foreach ($vars as $key => $value) {
89 89
             $string = str_replace("##" . $key, $value, $string);
Please login to merge, or discard this patch.
classes/settings/validator.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@
 block discarded – undo
91 91
                 !isset($CFG->bigbluebuttonbn['recordings_imported_editable']) ||
92 92
                 !isset($CFG->bigbluebuttonbn['recordings_preview_default']) ||
93 93
                 !isset($CFG->bigbluebuttonbn['recordings_preview_editable'])
94
-              );
94
+                );
95 95
     }
96 96
 
97 97
     /**
Please login to merge, or discard this patch.
lib.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -356,7 +356,7 @@  discard block
 block discarded – undo
356 356
     $sql = "SELECT COUNT(*) FROM {bigbluebuttonbn_logs} ";
357 357
     $sql .= "WHERE courseid = ? AND bigbluebuttonbnid = ? AND userid = ? AND (log = ? OR log = ?)";
358 358
     $result = $DB->count_records_sql($sql, array($course->id, $bigbluebuttonbn->id, $user->id,
359
-                                              BIGBLUEBUTTONBN_LOG_EVENT_JOIN, BIGBLUEBUTTONBN_LOG_EVENT_PLAYED));
359
+                                                BIGBLUEBUTTONBN_LOG_EVENT_JOIN, BIGBLUEBUTTONBN_LOG_EVENT_PLAYED));
360 360
     return $result;
361 361
 }
362 362
 
@@ -589,12 +589,12 @@  discard block
 block discarded – undo
589 589
     $str  = '<div class="bigbluebuttonbn overview">'."\n";
590 590
     $str .= '  <div class="name">'.get_string('modulename', 'bigbluebuttonbn').':&nbsp;'."\n";
591 591
     $str .= '    <a '.$classes.'href="'.$CFG->wwwroot.'/mod/bigbluebuttonbn/view.php?id='.$bigbluebuttonbn->coursemodule.
592
-      '">'.$bigbluebuttonbn->name.'</a>'."\n";
592
+        '">'.$bigbluebuttonbn->name.'</a>'."\n";
593 593
     $str .= '  </div>'."\n";
594 594
     $str .= '  <div class="info">'.get_string($start, 'bigbluebuttonbn').': '.userdate($bigbluebuttonbn->openingtime).
595 595
         '</div>'."\n";
596 596
     $str .= '  <div class="info">'.get_string('ends_at', 'bigbluebuttonbn').': '.userdate($bigbluebuttonbn->closingtime)
597
-      .'</div>'."\n";
597
+        .'</div>'."\n";
598 598
     $str .= '</div>'."\n";
599 599
     return $str;
600 600
 }
@@ -836,7 +836,7 @@  discard block
 block discarded – undo
836 836
             'bigbluebuttonbn',
837 837
             $bigbluebuttonbn->id,
838 838
             $bigbluebuttonbn->completionexpected
839
-          );
839
+            );
840 840
     }
841 841
 }
842 842
 
Please login to merge, or discard this patch.