Completed
Push — master ( 10847d...32c9ae )
by Jesus
03:00
created
mod_form.php 1 patch
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;')).'  '.
304
+                        'onchange' => 'M.mod_bigbluebuttonbn.modform.participant_selection_set(); return 0;')).'  '.
305 305
             html_writer::select($participantselection['options'], 'bigbluebuttonbn_participant_selection',
306 306
                 $participantselection['selected'], array(),
307 307
                 array('id' => 'bigbluebuttonbn_participant_selection', 'disabled' => 'disabled')).'  '.
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.
db/upgrade.php 1 patch
Indentation   +36 added lines, -36 removed lines patch added patch discarded remove patch
@@ -36,23 +36,23 @@  discard block
 block discarded – undo
36 36
 
37 37
         // Change welcome, allow null.
38 38
         $fielddefinition = array('type' => XMLDB_TYPE_TEXT,
39
-                                  'precision' => null,
40
-                                  'unsigned' => null,
41
-                                  'notnull' => XMLDB_NOTNULL,
42
-                                  'sequence' => null,
43
-                                  'default' => null,
44
-                                  'previous' => 'type');
39
+                                    'precision' => null,
40
+                                    'unsigned' => null,
41
+                                    'notnull' => XMLDB_NOTNULL,
42
+                                    'sequence' => null,
43
+                                    'default' => null,
44
+                                    'previous' => 'type');
45 45
         xmldb_bigbluebuttonbn_add_change_field($dbman, 'bigbluebuttonbn', 'welcome',
46 46
             $fielddefinition);
47 47
 
48 48
         // Change userid definition in bigbluebuttonbn_log.
49 49
         $fielddefinition = array('type' => XMLDB_TYPE_INTEGER,
50
-                                  'precision' => '10',
51
-                                  'unsigned' => null,
52
-                                  'notnull' => XMLDB_NOTNULL,
53
-                                  'sequence' => null,
54
-                                  'default' => null,
55
-                                  'previous' => 'bigbluebuttonbnid');
50
+                                    'precision' => '10',
51
+                                    'unsigned' => null,
52
+                                    'notnull' => XMLDB_NOTNULL,
53
+                                    'sequence' => null,
54
+                                    'default' => null,
55
+                                    'previous' => 'bigbluebuttonbnid');
56 56
         xmldb_bigbluebuttonbn_add_change_field($dbman, 'bigbluebuttonbn_log', 'userid',
57 57
             $fielddefinition);
58 58
 
@@ -78,34 +78,34 @@  discard block
 block discarded – undo
78 78
 
79 79
         // Add field type.
80 80
         $fielddefinition = array('type' => XMLDB_TYPE_INTEGER,
81
-                                  'precision' => '2',
82
-                                  'unsigned' => null,
83
-                                  'notnull' => XMLDB_NOTNULL,
84
-                                  'sequence' => null,
85
-                                  'default' => 0,
86
-                                  'previous' => 'id');
81
+                                    'precision' => '2',
82
+                                    'unsigned' => null,
83
+                                    'notnull' => XMLDB_NOTNULL,
84
+                                    'sequence' => null,
85
+                                    'default' => 0,
86
+                                    'previous' => 'id');
87 87
         xmldb_bigbluebuttonbn_add_change_field($dbman, 'bigbluebuttonbn', 'type',
88 88
             $fielddefinition);
89 89
 
90 90
         // Add field recordings_html.
91 91
         $fielddefinition = array('type' => XMLDB_TYPE_INTEGER,
92
-                                  'precision' => '1',
93
-                                  'unsigned' => null,
94
-                                  'notnull' => XMLDB_NOTNULL,
95
-                                  'sequence' => null,
96
-                                  'default' => 0,
97
-                                  'previous' => null);
92
+                                    'precision' => '1',
93
+                                    'unsigned' => null,
94
+                                    'notnull' => XMLDB_NOTNULL,
95
+                                    'sequence' => null,
96
+                                    'default' => 0,
97
+                                    'previous' => null);
98 98
         xmldb_bigbluebuttonbn_add_change_field($dbman, 'bigbluebuttonbn', 'recordings_html',
99 99
             $fielddefinition);
100 100
 
101 101
         // Add field recordings_deleted_activities.
102 102
         $fielddefinition = array('type' => XMLDB_TYPE_INTEGER,
103
-                                  'precision' => '1',
104
-                                  'unsigned' => null,
105
-                                  'notnull' => XMLDB_NOTNULL,
106
-                                  'sequence' => null,
107
-                                  'default' => 1,
108
-                                  'previous' => null);
103
+                                    'precision' => '1',
104
+                                    'unsigned' => null,
105
+                                    'notnull' => XMLDB_NOTNULL,
106
+                                    'sequence' => null,
107
+                                    'default' => 1,
108
+                                    'previous' => null);
109 109
         xmldb_bigbluebuttonbn_add_change_field($dbman, 'bigbluebuttonbn', 'recordings_deleted_activities',
110 110
             $fielddefinition);
111 111
 
@@ -122,12 +122,12 @@  discard block
 block discarded – undo
122 122
     $table = new xmldb_table($tablename);
123 123
     $field = new xmldb_field($fieldname);
124 124
     $field->set_attributes($fielddefinition['type'],
125
-                           $fielddefinition['precision'],
126
-                           $fielddefinition['unsigned'],
127
-                           $fielddefinition['notnull'],
128
-                           $fielddefinition['sequence'],
129
-                           $fielddefinition['default'],
130
-                           $fielddefinition['previous']);
125
+                            $fielddefinition['precision'],
126
+                            $fielddefinition['unsigned'],
127
+                            $fielddefinition['notnull'],
128
+                            $fielddefinition['sequence'],
129
+                            $fielddefinition['default'],
130
+                            $fielddefinition['previous']);
131 131
     if ($dbman->field_exists($table, $field)) {
132 132
         $dbman->change_field_type($table, $field, true, true);
133 133
         $dbman->change_field_precision($table, $field, true, true);
Please login to merge, or discard this patch.
view.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -272,11 +272,11 @@  discard block
 block discarded – undo
272 272
 
273 273
     echo $OUTPUT->box_start('generalbox boxaligncenter');
274 274
     echo '<br><div class="alert alert-warning">'.get_string('view_groups_selection_warning', 'bigbluebuttonbn').
275
-      '</div>';
275
+        '</div>';
276 276
     echo $OUTPUT->box_end();
277 277
 
278 278
     groups_print_activity_menu(
279
-      $bbbsession['cm'], $CFG->wwwroot.'/mod/bigbluebuttonbn/view.php?id='.$bbbsession['cm']->id, false, $onlyexistentgroups);
279
+        $bbbsession['cm'], $CFG->wwwroot.'/mod/bigbluebuttonbn/view.php?id='.$bbbsession['cm']->id, false, $onlyexistentgroups);
280 280
     echo '<br><br>';
281 281
 }
282 282
 
@@ -388,7 +388,7 @@  discard block
 block discarded – undo
388 388
     // JavaScript variables for recordings.
389 389
     $jsvars += array(
390 390
             'recordings_html' => $bbbsession['bigbluebuttonbn']->recordings_html == '1',
391
-          );
391
+            );
392 392
 
393 393
     // If there are meetings with recordings load the data to the table.
394 394
     if ($bbbsession['bigbluebuttonbn']->recordings_html) {
@@ -400,7 +400,7 @@  discard block
 block discarded – undo
400 400
     $jsvars += array(
401 401
             'columns' => bigbluebuttonbn_get_recording_columns($bbbsession),
402 402
             'data' => bigbluebuttonbn_get_recording_data($bbbsession, $recordings),
403
-          );
403
+            );
404 404
 
405 405
     // Render a YUI table.
406 406
     return html_writer::div('', '', array('id' => 'bigbluebuttonbn_yui_table'));
@@ -411,10 +411,10 @@  discard block
 block discarded – undo
411 411
 
412 412
     $button = html_writer::tag('input', '',
413 413
         array('type' => 'button',
414
-              'value' => get_string('view_recording_button_import', 'bigbluebuttonbn'),
415
-              'class' => 'btn btn-secondary',
416
-              'onclick' => 'window.location=\''.$CFG->wwwroot.'/mod/bigbluebuttonbn/import_view.php?bn='.
417
-                  $bbbsession['bigbluebuttonbn']->id.'\''));
414
+                'value' => get_string('view_recording_button_import', 'bigbluebuttonbn'),
415
+                'class' => 'btn btn-secondary',
416
+                'onclick' => 'window.location=\''.$CFG->wwwroot.'/mod/bigbluebuttonbn/import_view.php?bn='.
417
+                    $bbbsession['bigbluebuttonbn']->id.'\''));
418 418
     $output = html_writer::start_tag('br');
419 419
     $output .= html_writer::tag('span', $button, array('id' => 'import_recording_links_button'));
420 420
     $output .= html_writer::tag('span', '', array('id' => 'import_recording_links_table'));
@@ -432,7 +432,7 @@  discard block
 block discarded – undo
432 432
         return '<h4>'.get_string('view_section_title_presentation', 'bigbluebuttonbn').'</h4>'.
433 433
                 ''.$OUTPUT->action_icon($bbbsession['presentation']['url'], $icon, null, array(), false).''.
434 434
                 ''.$OUTPUT->action_link($bbbsession['presentation']['url'],
435
-                      $bbbsession['presentation']['name'], null, $attributes).'<br><br>';
435
+                        $bbbsession['presentation']['name'], null, $attributes).'<br><br>';
436 436
     }
437 437
 
438 438
     return '';
Please login to merge, or discard this patch.
locallib.php 1 patch
Indentation   +65 added lines, -65 removed lines patch added patch discarded remove patch
@@ -84,9 +84,9 @@  discard block
 block discarded – undo
84 84
 // BigBlueButton API Calls.
85 85
 function bigbluebuttonbn_get_join_url($meetingid, $username, $pw, $logouturl, $configtoken = null, $userid = null) {
86 86
     $data = ['meetingID' => $meetingid,
87
-              'fullName' => $username,
88
-              'password' => $pw,
89
-              'logoutURL' => $logouturl,
87
+                'fullName' => $username,
88
+                'password' => $pw,
89
+                'logoutURL' => $logouturl,
90 90
             ];
91 91
 
92 92
     if (!is_null($configtoken)) {
@@ -201,24 +201,24 @@  discard block
 block discarded – undo
201 201
 function bigbluebuttonbn_get_meeting_info_array($meetingid) {
202 202
     $xml = bigbluebuttonbn_wrap_xml_load_file(
203 203
         bigbluebuttonbn_bigbluebutton_action_url('getMeetingInfo', ['meetingID' => $meetingid])
204
-      );
204
+        );
205 205
 
206 206
     if ($xml && $xml->returncode == 'SUCCESS' && empty($xml->messageKey)) {
207 207
         // Meeting info was returned.
208 208
         return array('returncode' => $xml->returncode,
209
-                     'meetingID' => $xml->meetingID,
210
-                     'moderatorPW' => $xml->moderatorPW,
211
-                     'attendeePW' => $xml->attendeePW,
212
-                     'hasBeenForciblyEnded' => $xml->hasBeenForciblyEnded,
213
-                     'running' => $xml->running,
214
-                     'recording' => $xml->recording,
215
-                     'startTime' => $xml->startTime,
216
-                     'endTime' => $xml->endTime,
217
-                     'participantCount' => $xml->participantCount,
218
-                     'moderatorCount' => $xml->moderatorCount,
219
-                     'attendees' => $xml->attendees,
220
-                     'metadata' => $xml->metadata,
221
-                   );
209
+                        'meetingID' => $xml->meetingID,
210
+                        'moderatorPW' => $xml->moderatorPW,
211
+                        'attendeePW' => $xml->attendeePW,
212
+                        'hasBeenForciblyEnded' => $xml->hasBeenForciblyEnded,
213
+                        'running' => $xml->running,
214
+                        'recording' => $xml->recording,
215
+                        'startTime' => $xml->startTime,
216
+                        'endTime' => $xml->endTime,
217
+                        'participantCount' => $xml->participantCount,
218
+                        'moderatorCount' => $xml->moderatorCount,
219
+                        'attendees' => $xml->attendees,
220
+                        'metadata' => $xml->metadata,
221
+                    );
222 222
     }
223 223
 
224 224
     if ($xml) {
@@ -284,7 +284,7 @@  discard block
 block discarded – undo
284 284
         // Do getRecordings is executed using a method GET (supported by all versions of BBB).
285 285
         $xml = bigbluebuttonbn_wrap_xml_load_file(
286 286
             bigbluebuttonbn_bigbluebutton_action_url('getRecordings', ['meetingID' => implode(',', $mids)])
287
-          );
287
+            );
288 288
         if ($xml && $xml->returncode == 'SUCCESS' && isset($xml->recordings)) {
289 289
             // If there were meetings already created.
290 290
             foreach ($xml->recordings->recording as $recording) {
@@ -355,7 +355,7 @@  discard block
 block discarded – undo
355 355
 function bigbluebuttonbn_get_default_config_xml() {
356 356
     $xml = bigbluebuttonbn_wrap_xml_load_file(
357 357
         bigbluebuttonbn_bigbluebutton_action_url('getDefaultConfigXML')
358
-      );
358
+        );
359 359
 
360 360
     return $xml;
361 361
 }
@@ -423,7 +423,7 @@  discard block
 block discarded – undo
423 423
     foreach ($ids as $id) {
424 424
         $xml = bigbluebuttonbn_wrap_xml_load_file(
425 425
             bigbluebuttonbn_bigbluebutton_action_url('deleteRecordings', ['recordID' => $id])
426
-          );
426
+            );
427 427
         if ($xml && $xml->returncode != 'SUCCESS') {
428 428
             return false;
429 429
         }
@@ -441,7 +441,7 @@  discard block
 block discarded – undo
441 441
     foreach ($ids as $id) {
442 442
         $xml = bigbluebuttonbn_wrap_xml_load_file(
443 443
             bigbluebuttonbn_bigbluebutton_action_url('publishRecordings', ['recordID' => $id, 'publish' => $publish])
444
-          );
444
+            );
445 445
         if ($xml && $xml->returncode != 'SUCCESS') {
446 446
             return false;
447 447
         }
@@ -459,7 +459,7 @@  discard block
 block discarded – undo
459 459
     foreach ($ids as $id) {
460 460
         $xml = bigbluebuttonbn_wrap_xml_load_file(
461 461
             bigbluebuttonbn_bigbluebutton_action_url('updateRecordings', ['recordID' => $id] + (array) $params)
462
-          );
462
+            );
463 463
         if ($xml && $xml->returncode != 'SUCCESS') {
464 464
             return false;
465 465
         }
@@ -487,7 +487,7 @@  discard block
 block discarded – undo
487 487
 function bigbluebuttonbn_end_meeting($meetingid, $modpw) {
488 488
     $xml = bigbluebuttonbn_wrap_xml_load_file(
489 489
         bigbluebuttonbn_bigbluebutton_action_url('end', ['meetingID' => $meetingid, 'password' => $modpw])
490
-      );
490
+        );
491 491
 
492 492
     if ($xml) {
493 493
         // If the xml packet returned failure it displays the message to the user.
@@ -504,7 +504,7 @@  discard block
 block discarded – undo
504 504
 function bigbluebuttonbn_is_meeting_running($meetingid) {
505 505
     $xml = bigbluebuttonbn_wrap_xml_load_file(
506 506
         bigbluebuttonbn_bigbluebutton_action_url('isMeetingRunning', ['meetingID' => $meetingid])
507
-      );
507
+        );
508 508
 
509 509
     if ($xml && $xml->returncode == 'SUCCESS') {
510 510
         return ($xml->running == 'true');
@@ -516,7 +516,7 @@  discard block
 block discarded – undo
516 516
 function bigbluebuttonbn_get_server_version() {
517 517
     $xml = bigbluebuttonbn_wrap_xml_load_file(
518 518
         bigbluebuttonbn_bigbluebutton_action_url()
519
-      );
519
+        );
520 520
 
521 521
     if ($xml && $xml->returncode == 'SUCCESS') {
522 522
         return $xml->version;
@@ -582,10 +582,10 @@  discard block
 block discarded – undo
582 582
 
583 583
         $options = array();
584 584
         $options['CURLOPT_HTTPHEADER'] = array(
585
-                 'Content-Type: '.$contenttype,
586
-                 'Content-Length: '.strlen($data),
587
-                 'Content-Language: en-US',
588
-               );
585
+                    'Content-Type: '.$contenttype,
586
+                    'Content-Length: '.strlen($data),
587
+                    'Content-Language: en-US',
588
+                );
589 589
 
590 590
         return $c->post($url, $data, $options);
591 591
     }
@@ -644,7 +644,7 @@  discard block
 block discarded – undo
644 644
         $roles[$key] = array('id' => $value->id, 'name' => $value->localname);
645 645
     }
646 646
     return $roles;
647
- }
647
+    }
648 648
 
649 649
 function bigbluebuttonbn_get_role($id) {
650 650
     $roles = (array) role_get_names();
@@ -664,18 +664,18 @@  discard block
 block discarded – undo
664 664
         'all' => array(
665 665
             'name' => get_string('mod_form_field_participant_list_type_all', 'bigbluebuttonbn'),
666 666
             'children' => []
667
-          )
668
-      );
667
+            )
668
+        );
669 669
 
670 670
     $data['role'] = array(
671 671
         'name' => get_string('mod_form_field_participant_list_type_role', 'bigbluebuttonbn'),
672 672
         'children' => bigbluebuttonbn_get_roles_select($context)
673
-      );
673
+        );
674 674
 
675 675
     $data['user'] = array(
676 676
         'name' => get_string('mod_form_field_participant_list_type_user', 'bigbluebuttonbn'),
677 677
         'children' => bigbluebuttonbn_get_users_select($context)
678
-      );
678
+        );
679 679
 
680 680
     return $data;
681 681
 }
@@ -722,9 +722,9 @@  discard block
 block discarded – undo
722 722
         }
723 723
 
724 724
         $participantlistarray[] = array(
725
-              'selectiontype' => 'role',
726
-              'selectionid' => $moderatordefault,
727
-              'role' => BIGBLUEBUTTONBN_ROLE_MODERATOR);
725
+                'selectiontype' => 'role',
726
+                'selectionid' => $moderatordefault,
727
+                'role' => BIGBLUEBUTTONBN_ROLE_MODERATOR);
728 728
     }
729 729
 
730 730
     return $participantlistarray;
@@ -736,11 +736,11 @@  discard block
 block discarded – undo
736 736
             'all' => get_string('mod_form_field_participant_list_type_all', 'bigbluebuttonbn'),
737 737
             'role' => get_string('mod_form_field_participant_list_type_role', 'bigbluebuttonbn'),
738 738
             'user' => get_string('mod_form_field_participant_list_type_user', 'bigbluebuttonbn'),
739
-          ],
739
+            ],
740 740
         'type_selected' => 'all',
741 741
         'options' => ['all' => '---------------'],
742 742
         'selected' => 'all',
743
-      ];
743
+        ];
744 744
 }
745 745
 
746 746
 function bigbluebuttonbn_is_moderator($context, $participants, $userid = null, $userroles = null) {
@@ -871,8 +871,8 @@  discard block
 block discarded – undo
871 871
     }
872 872
 
873 873
     $parray = array('url' => $purl, 'name' => $pname,
874
-                               'icon' => $picon,
875
-                               'mimetype_description' => $pmimetypedescrip);
874
+                                'icon' => $picon,
875
+                                'mimetype_description' => $pmimetypedescrip);
876 876
 
877 877
     return $parray;
878 878
 }
@@ -956,7 +956,7 @@  discard block
 block discarded – undo
956 956
         $eventproperties['other'] = $eventsubtype;
957 957
     }
958 958
     $event = call_user_func_array('\mod_bigbluebuttonbn\event\bigbluebuttonbn_'.$eventtype.'::create',
959
-      array($eventproperties));
959
+        array($eventproperties));
960 960
     $event->trigger();
961 961
 }
962 962
 
@@ -1003,7 +1003,7 @@  discard block
 block discarded – undo
1003 1003
     // Ping again and refresh the cache.
1004 1004
     $meetinginfo = (array) bigbluebuttonbn_wrap_xml_load_file(
1005 1005
         bigbluebuttonbn_bigbluebutton_action_url('getMeetingInfo', ['meetingID' => $meetingid])
1006
-      );
1006
+        );
1007 1007
     $cache->set($meetingid, array('creation_time' => time(), 'meeting_info' => json_encode($meetinginfo)));
1008 1008
 
1009 1009
     return $meetinginfo;
@@ -1141,7 +1141,7 @@  discard block
 block discarded – undo
1141 1141
         $actionbar .= bigbluebuttonbn_actionbar_render_button(
1142 1142
             $recording,
1143 1143
             bigbluebuttonbn_get_recording_data_row_actionbar_payload($recording, $tool)
1144
-          );
1144
+            );
1145 1145
     }
1146 1146
 
1147 1147
     $head = html_writer::start_tag('div', array(
@@ -1227,7 +1227,7 @@  discard block
 block discarded – undo
1227 1227
 
1228 1228
     $recordingtypes = html_writer::start_tag('div',
1229 1229
         array('id' => 'playbacks-'.$recording['recordID'], 'data-imported' => $dataimported,
1230
-              'title' => $title, $visibility => $visibility));
1230
+                'title' => $title, $visibility => $visibility));
1231 1231
     foreach ($recording['playbacks'] as $playback) {
1232 1232
         $recordingtypes .= $OUTPUT->action_link($playback['url'], get_string('view_recording_format_'.$playback['type'],
1233 1233
             'bigbluebuttonbn'), null, array('title' => get_string('view_recording_format_'.$playback['type'],
@@ -1269,7 +1269,7 @@  discard block
 block discarded – undo
1269 1269
         $payload['source'] = 'meta_contextactivitydescription';
1270 1270
         $metadescription = trim($recording[$payload['source']]);
1271 1271
         if (!empty($metadescription)) {
1272
-          return bigbluebuttonbn_get_recording_data_row_text($recording, $metadescription, $payload);
1272
+            return bigbluebuttonbn_get_recording_data_row_text($recording, $metadescription, $payload);
1273 1273
         }
1274 1274
     }
1275 1275
 
@@ -1324,7 +1324,7 @@  discard block
 block discarded – undo
1324 1324
             'onclick' => $onclick,
1325 1325
             'data-action' => $data['action'],
1326 1326
             'data-links' => bigbluebuttonbn_get_count_recording_imported_instances($recording['recordID'])
1327
-          );
1327
+            );
1328 1328
         return $OUTPUT->action_icon('#', $icon, null, $linkattributes, false);
1329 1329
     }
1330 1330
 
@@ -1925,22 +1925,22 @@  discard block
 block discarded – undo
1925 1925
  */
1926 1926
 function bigbluebuttonbn_get_cfg_options() {
1927 1927
     return [
1928
-          'voicebridge_editable' => bigbluebuttonbn_get_cfg_voicebridge_editable(),
1929
-          'recording_default' => bigbluebuttonbn_get_cfg_recording_default(),
1930
-          'recording_editable' => bigbluebuttonbn_get_cfg_recording_editable(),
1931
-          'waitformoderator_default' => bigbluebuttonbn_get_cfg_waitformoderator_default(),
1932
-          'waitformoderator_editable' => bigbluebuttonbn_get_cfg_waitformoderator_editable(),
1933
-          'userlimit_default' => bigbluebuttonbn_get_cfg_userlimit_default(),
1934
-          'userlimit_editable' => bigbluebuttonbn_get_cfg_userlimit_editable(),
1935
-          'preuploadpresentation_enabled' => bigbluebuttonbn_get_cfg_preuploadpresentation_enabled(),
1936
-          'sendnotifications_enabled' => bigbluebuttonbn_get_cfg_sendnotifications_enabled(),
1937
-          'recordings_html_default' => bigbluebuttonbn_get_cfg_recordings_html_default(),
1938
-          'recordings_html_editable' => bigbluebuttonbn_get_cfg_recordings_html_editable(),
1939
-          'recordings_deleted_activities_default' => bigbluebuttonbn_get_cfg_recordings_deleted_activities_default(),
1940
-          'recordings_deleted_activities_editable' => bigbluebuttonbn_get_cfg_recordings_deleted_activities_editable(),
1941
-          'recording_icons_enabled' => bigbluebuttonbn_get_cfg_recording_icons_enabled(),
1942
-          'instance_type_enabled' => bigbluebuttonbn_recordings_enabled(),
1943
-          'instance_type_default' => BIGBLUEBUTTONBN_TYPE_ALL,
1928
+            'voicebridge_editable' => bigbluebuttonbn_get_cfg_voicebridge_editable(),
1929
+            'recording_default' => bigbluebuttonbn_get_cfg_recording_default(),
1930
+            'recording_editable' => bigbluebuttonbn_get_cfg_recording_editable(),
1931
+            'waitformoderator_default' => bigbluebuttonbn_get_cfg_waitformoderator_default(),
1932
+            'waitformoderator_editable' => bigbluebuttonbn_get_cfg_waitformoderator_editable(),
1933
+            'userlimit_default' => bigbluebuttonbn_get_cfg_userlimit_default(),
1934
+            'userlimit_editable' => bigbluebuttonbn_get_cfg_userlimit_editable(),
1935
+            'preuploadpresentation_enabled' => bigbluebuttonbn_get_cfg_preuploadpresentation_enabled(),
1936
+            'sendnotifications_enabled' => bigbluebuttonbn_get_cfg_sendnotifications_enabled(),
1937
+            'recordings_html_default' => bigbluebuttonbn_get_cfg_recordings_html_default(),
1938
+            'recordings_html_editable' => bigbluebuttonbn_get_cfg_recordings_html_editable(),
1939
+            'recordings_deleted_activities_default' => bigbluebuttonbn_get_cfg_recordings_deleted_activities_default(),
1940
+            'recordings_deleted_activities_editable' => bigbluebuttonbn_get_cfg_recordings_deleted_activities_editable(),
1941
+            'recording_icons_enabled' => bigbluebuttonbn_get_cfg_recording_icons_enabled(),
1942
+            'instance_type_enabled' => bigbluebuttonbn_recordings_enabled(),
1943
+            'instance_type_default' => BIGBLUEBUTTONBN_TYPE_ALL,
1944 1944
         ];
1945 1945
 }
1946 1946
 
@@ -2141,8 +2141,8 @@  discard block
 block discarded – undo
2141 2141
     $activitytime = '';
2142 2142
     if ($time) {
2143 2143
         $activitytime = calendar_day_representation($time).' '.
2144
-          get_string('mod_form_field_notification_msg_at', 'bigbluebuttonbn').' '.
2145
-          calendar_time_representation($time);
2144
+            get_string('mod_form_field_notification_msg_at', 'bigbluebuttonbn').' '.
2145
+            calendar_time_representation($time);
2146 2146
     }
2147 2147
 
2148 2148
     return $activitytime;
Please login to merge, or discard this patch.
lib.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -208,7 +208,7 @@  discard block
 block discarded – undo
208 208
 
209 209
     $logs = $DB->get_records('bigbluebuttonbn_logs',
210 210
         array('bigbluebuttonbnid' => $bigbluebuttonbn->id, 'log' => BIGBLUEBUTTONBN_LOG_EVENT_CREATE, 'meta' => "{\"record\":true}")
211
-      );
211
+        );
212 212
     $log->meta = "{\"has_recordings\":false}";
213 213
     if (!empty($logs)) {
214 214
         $log->meta = "{\"has_recordings\":true}";
@@ -233,9 +233,9 @@  discard block
 block discarded – undo
233 233
     global $DB;
234 234
 
235 235
     $completed = $DB->count_records('bigbluebuttonbn_logs', array('courseid' => $course->id,
236
-                                                              'bigbluebuttonbnid' => $bigbluebuttonbn->id,
237
-                                                              'userid' => $user->id,
238
-                                                              'log' => 'Join', ), '*');
236
+                                                                'bigbluebuttonbnid' => $bigbluebuttonbn->id,
237
+                                                                'userid' => $user->id,
238
+                                                                'log' => 'Join', ), '*');
239 239
 
240 240
     if ($completed > 0) {
241 241
         return fullname($user).' '.get_string('view_message_has_joined', 'bigbluebuttonbn').' '.
@@ -256,9 +256,9 @@  discard block
 block discarded – undo
256 256
     global $DB;
257 257
 
258 258
     $completed = $DB->count_recorda('bigbluebuttonbn_logs', array('courseid' => $course->id,
259
-                                                              'bigbluebuttonbnid' => $bigbluebuttonbn->id,
260
-                                                              'userid' => $user->id,
261
-                                                              'log' => 'Join', ), '*', IGNORE_MULTIPLE);
259
+                                                                'bigbluebuttonbnid' => $bigbluebuttonbn->id,
260
+                                                                'userid' => $user->id,
261
+                                                                'log' => 'Join', ), '*', IGNORE_MULTIPLE);
262 262
 
263 263
     return $completed > 0;
264 264
 }
@@ -331,12 +331,12 @@  discard block
 block discarded – undo
331 331
     $str = '<div class="bigbluebuttonbn overview">'."\n";
332 332
     $str .= '  <div class="name">'.get_string('modulename', 'bigbluebuttonbn').':&nbsp;'."\n";
333 333
     $str .= '    <a '.$classes.'href="'.$CFG->wwwroot.'/mod/bigbluebuttonbn/view.php?id='.$bigbluebuttonbn->coursemodule.
334
-      '">'.$bigbluebuttonbn->name.'</a>'."\n";
334
+        '">'.$bigbluebuttonbn->name.'</a>'."\n";
335 335
     $str .= '  </div>'."\n";
336 336
     $str .= '  <div class="info">'.get_string($start, 'bigbluebuttonbn').': '.userdate($bigbluebuttonbn->openingtime).
337 337
         '</div>'."\n";
338 338
     $str .= '  <div class="info">'.get_string('ends_at', 'bigbluebuttonbn').': '.userdate($bigbluebuttonbn->closingtime)
339
-      .'</div>'."\n";
339
+        .'</div>'."\n";
340 340
     $str .= '</div>'."\n";
341 341
 
342 342
     return $str;
Please login to merge, or discard this patch.
bbb_broker.php 1 patch
Indentation   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -369,10 +369,10 @@  discard block
 block discarded – undo
369 369
     if (bigbluebuttonbn_broker_recording_is_imported($recordings, $params['id'])) {
370 370
         // Execute unpublish on imported recording link.
371 371
         return array(
372
-          'status' => bigbluebuttonbn_publish_recording_imported(
373
-              $params['id'], $bbbsession['bigbluebuttonbn']->id, false
372
+            'status' => bigbluebuttonbn_publish_recording_imported(
373
+                $params['id'], $bbbsession['bigbluebuttonbn']->id, false
374 374
             )
375
-          );
375
+            );
376 376
     }
377 377
 
378 378
     // As the recordingid was not identified as imported recording link, execute unpublish on a real recording.
@@ -392,8 +392,8 @@  discard block
 block discarded – undo
392 392
     }
393 393
     // Second: Execute the real unpublish.
394 394
     return array(
395
-      'status' => bigbluebuttonbn_publish_recordings($params['id'], 'false')
396
-      );
395
+        'status' => bigbluebuttonbn_publish_recordings($params['id'], 'false')
396
+        );
397 397
 }
398 398
 
399 399
 function bigbluebuttonbn_broker_recording_action_edit($bbbsession, $params, $recordings) {
@@ -401,10 +401,10 @@  discard block
 block discarded – undo
401 401
         error_log("Updating imported");
402 402
         // Execute update on imported recording link.
403 403
         return array(
404
-          'status' => bigbluebuttonbn_update_recording_imported(
405
-              $params['id'], $bbbsession['bigbluebuttonbn']->id, json_decode($params['meta'])
404
+            'status' => bigbluebuttonbn_update_recording_imported(
405
+                $params['id'], $bbbsession['bigbluebuttonbn']->id, json_decode($params['meta'])
406 406
             )
407
-          );
407
+            );
408 408
     }
409 409
 
410 410
     // As the recordingid was not identified as imported recording link, execute update on a real recording.
@@ -412,8 +412,8 @@  discard block
 block discarded – undo
412 412
     // Execute update on actual recording.
413 413
     error_log("Updating real");
414 414
     return array(
415
-      'status' => bigbluebuttonbn_update_recordings($params['id'], json_decode($params['meta']))
416
-      );
415
+        'status' => bigbluebuttonbn_update_recordings($params['id'], json_decode($params['meta']))
416
+        );
417 417
 }
418 418
 
419 419
 function bigbluebuttonbn_broker_recording_action_delete($bbbsession, $params, $recordings) {
@@ -422,10 +422,10 @@  discard block
 block discarded – undo
422 422
     if (bigbluebuttonbn_broker_recording_is_imported($recordings, $params['id'])) {
423 423
         // Execute delete on imported recording link.
424 424
         return array(
425
-          'status' => bigbluebuttonbn_delete_recording_imported(
426
-              $params['id'], $bbbsession['bigbluebuttonbn']->id
425
+            'status' => bigbluebuttonbn_delete_recording_imported(
426
+                $params['id'], $bbbsession['bigbluebuttonbn']->id
427 427
             )
428
-          );
428
+            );
429 429
     }
430 430
 
431 431
     // As the recordingid was not identified as imported recording link, execute delete on a real recording.
@@ -440,8 +440,8 @@  discard block
 block discarded – undo
440 440
     }
441 441
     // Execute the actual delete.
442 442
     return array(
443
-      'status' => bigbluebuttonbn_delete_recordings($params['id'])
444
-      );
443
+        'status' => bigbluebuttonbn_delete_recordings($params['id'])
444
+        );
445 445
 }
446 446
 
447 447
 function bigbluebuttonbn_broker_recording_ready($params, $bigbluebuttonbn) {
@@ -581,11 +581,11 @@  discard block
 block discarded – undo
581 581
         'recording_import' => ['id' => 'The recordingID must be specified.'],
582 582
         'recording_ready' => [
583 583
             'signed_parameters' => 'A JWT encoded string must be included as [signed_parameters].'
584
-          ],
584
+            ],
585 585
         'live_session_events' => [
586 586
             'signed_parameters' => 'A JWT encoded string must be included as [signed_parameters].'
587
-          ]
588
-      ];
587
+            ]
588
+        ];
589 589
 }
590 590
 
591 591
 function bigbluebuttonbn_broker_recording_is_imported($recordings, $recordingid) {
Please login to merge, or discard this patch.
import_view.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -96,8 +96,8 @@
 block discarded – undo
96 96
     $output .= html_writer::start_tag('br');
97 97
     $output .= html_writer::tag('input', '',
98 98
         array('type' => 'button', 'class' => 'btn btn-secondary',
99
-              'value' => get_string('view_recording_button_return', 'bigbluebuttonbn'),
100
-              'onclick' => 'window.location=\''.$CFG->wwwroot.'/mod/bigbluebuttonbn/view.php?id='.$cm->id.'\''));
99
+                'value' => get_string('view_recording_button_return', 'bigbluebuttonbn'),
100
+                'onclick' => 'window.location=\''.$CFG->wwwroot.'/mod/bigbluebuttonbn/view.php?id='.$cm->id.'\''));
101 101
 
102 102
     // JavaScript for locales.
103 103
     $PAGE->requires->strings_for_js(array_keys(bigbluebuttonbn_get_strings_for_js()), 'bigbluebuttonbn');
Please login to merge, or discard this patch.
bbb_view.php 1 patch
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -166,10 +166,10 @@  discard block
 block discarded – undo
166 166
 
167 167
 function bigbluebutton_bbb_view_create_meeting_data(&$bbbsession, $bigbluebuttonbn) {
168 168
     $data = ['meetingID' => $bbbsession['meetingid'],
169
-              'name' => $bbbsession['meetingname'],
170
-              'attendeePW' => $bbbsession['viewerPW'],
171
-              'moderatorPW' => $bbbsession['modPW'],
172
-              'logoutURL' => $bbbsession['logoutURL'],
169
+                'name' => $bbbsession['meetingname'],
170
+                'attendeePW' => $bbbsession['viewerPW'],
171
+                'moderatorPW' => $bbbsession['modPW'],
172
+                'logoutURL' => $bbbsession['logoutURL'],
173 173
             ];
174 174
 
175 175
     $data['record'] = 'false';
@@ -206,16 +206,16 @@  discard block
 block discarded – undo
206 206
 }
207 207
 
208 208
 function bigbluebutton_bbb_view_create_meeting_metadata(&$bbbsession) {
209
-      $metadata = ['bbb-origin' => $bbbsession['origin'],
210
-                   'bbb-origin-version' => $bbbsession['originVersion'],
211
-                   'bbb-origin-server-name' => $bbbsession['originServerName'],
212
-                   'bbb-origin-server-common-name' => $bbbsession['originServerCommonName'],
213
-                   'bbb-origin-tag' => $bbbsession['originTag'],
214
-                   'bbb-context' => $bbbsession['course']->fullname,
215
-                   'bbb-recording-name' => $bbbsession['meetingname'],
216
-                   'bbb-recording-description' => bigbluebuttonbn_html2text($bbbsession['meetingdescription'], 64),
217
-                   'bbb-recording-tags' => bigbluebuttonbn_get_tags($bbbsession['cm']->id), // Same as $id.
218
-                  ];
209
+        $metadata = ['bbb-origin' => $bbbsession['origin'],
210
+                    'bbb-origin-version' => $bbbsession['originVersion'],
211
+                    'bbb-origin-server-name' => $bbbsession['originServerName'],
212
+                    'bbb-origin-server-common-name' => $bbbsession['originServerCommonName'],
213
+                    'bbb-origin-tag' => $bbbsession['originTag'],
214
+                    'bbb-context' => $bbbsession['course']->fullname,
215
+                    'bbb-recording-name' => $bbbsession['meetingname'],
216
+                    'bbb-recording-description' => bigbluebuttonbn_html2text($bbbsession['meetingdescription'], 64),
217
+                    'bbb-recording-tags' => bigbluebuttonbn_get_tags($bbbsession['cm']->id), // Same as $id.
218
+                    ];
219 219
 
220 220
     if (bigbluebuttonbn_is_bn_server()) {
221 221
         if (bigbluebuttonbn_get_cfg_recordingready_enabled()) {
Please login to merge, or discard this patch.