Completed
Push — master ( 32c9ae...514091 )
by Jesus
04:47
created
bbb_broker.php 1 patch
Indentation   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -389,10 +389,10 @@  discard block
 block discarded – undo
389 389
     if (bigbluebuttonbn_broker_recording_is_imported($recordings, $params['id'])) {
390 390
         // Execute unpublish on imported recording link.
391 391
         return array(
392
-          'status' => bigbluebuttonbn_publish_recording_imported(
393
-              $params['id'], $bbbsession['bigbluebuttonbn']->id, false
392
+            'status' => bigbluebuttonbn_publish_recording_imported(
393
+                $params['id'], $bbbsession['bigbluebuttonbn']->id, false
394 394
             )
395
-          );
395
+            );
396 396
     }
397 397
 
398 398
     // As the recordingid was not identified as imported recording link, execute unpublish on a real recording.
@@ -412,26 +412,26 @@  discard block
 block discarded – undo
412 412
     }
413 413
     // Second: Execute the real unpublish.
414 414
     return array(
415
-      'status' => bigbluebuttonbn_publish_recordings($params['id'], 'false')
416
-      );
415
+        'status' => bigbluebuttonbn_publish_recordings($params['id'], 'false')
416
+        );
417 417
 }
418 418
 
419 419
 function bigbluebuttonbn_broker_recording_action_edit($bbbsession, $params, $recordings) {
420 420
     if (bigbluebuttonbn_broker_recording_is_imported($recordings, $params['id'])) {
421 421
         // Execute update on imported recording link.
422 422
         return array(
423
-          'status' => bigbluebuttonbn_update_recording_imported(
424
-              $params['id'], $bbbsession['bigbluebuttonbn']->id, json_decode($params['meta'], true)
423
+            'status' => bigbluebuttonbn_update_recording_imported(
424
+                $params['id'], $bbbsession['bigbluebuttonbn']->id, json_decode($params['meta'], true)
425 425
             )
426
-          );
426
+            );
427 427
     }
428 428
 
429 429
     // As the recordingid was not identified as imported recording link, execute update on a real recording.
430 430
     // (No need to update imported links as the update only affects the actual recording).
431 431
     // Execute update on actual recording.
432 432
     return array(
433
-      'status' => bigbluebuttonbn_update_recordings($params['id'], json_decode($params['meta']))
434
-      );
433
+        'status' => bigbluebuttonbn_update_recordings($params['id'], json_decode($params['meta']))
434
+        );
435 435
 }
436 436
 
437 437
 function bigbluebuttonbn_broker_recording_action_delete($bbbsession, $params, $recordings) {
@@ -440,10 +440,10 @@  discard block
 block discarded – undo
440 440
     if (bigbluebuttonbn_broker_recording_is_imported($recordings, $params['id'])) {
441 441
         // Execute delete on imported recording link.
442 442
         return array(
443
-          'status' => bigbluebuttonbn_delete_recording_imported(
444
-              $params['id'], $bbbsession['bigbluebuttonbn']->id
443
+            'status' => bigbluebuttonbn_delete_recording_imported(
444
+                $params['id'], $bbbsession['bigbluebuttonbn']->id
445 445
             )
446
-          );
446
+            );
447 447
     }
448 448
 
449 449
     // As the recordingid was not identified as imported recording link, execute delete on a real recording.
@@ -458,8 +458,8 @@  discard block
 block discarded – undo
458 458
     }
459 459
     // Execute the actual delete.
460 460
     return array(
461
-      'status' => bigbluebuttonbn_delete_recordings($params['id'])
462
-      );
461
+        'status' => bigbluebuttonbn_delete_recordings($params['id'])
462
+        );
463 463
 }
464 464
 
465 465
 function bigbluebuttonbn_broker_recording_ready($params, $bigbluebuttonbn) {
@@ -600,10 +600,10 @@  discard block
 block discarded – undo
600 600
     $params['recording_import'] = ['id' => 'The recordingID must be specified.'];
601 601
     $params['recording_ready'] = [
602 602
             'signed_parameters' => 'A JWT encoded string must be included as [signed_parameters].'
603
-          ];
603
+            ];
604 604
     $params['live_session_events'] = [
605 605
             'signed_parameters' => 'A JWT encoded string must be included as [signed_parameters].'
606
-          ];
606
+            ];
607 607
     return $params;
608 608
 }
609 609
 
Please login to merge, or discard this patch.
view.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -196,7 +196,7 @@  discard block
 block discarded – undo
196 196
 
197 197
 function bigbluebuttonbn_view_bbbsession_roles($context, $userid) {
198 198
     if (isguestuser()) {
199
-      return bigbluebuttonbn_get_guest_role();
199
+        return bigbluebuttonbn_get_guest_role();
200 200
     }
201 201
     return bigbluebuttonbn_get_user_roles($context, $userid);
202 202
 }
@@ -277,11 +277,11 @@  discard block
 block discarded – undo
277 277
 
278 278
     echo $OUTPUT->box_start('generalbox boxaligncenter');
279 279
     echo '<br><div class="alert alert-warning">'.get_string('view_groups_selection_warning', 'bigbluebuttonbn').
280
-      '</div>';
280
+        '</div>';
281 281
     echo $OUTPUT->box_end();
282 282
 
283 283
     groups_print_activity_menu(
284
-      $bbbsession['cm'], $CFG->wwwroot.'/mod/bigbluebuttonbn/view.php?id='.$bbbsession['cm']->id, false, $onlyexistentgroups);
284
+        $bbbsession['cm'], $CFG->wwwroot.'/mod/bigbluebuttonbn/view.php?id='.$bbbsession['cm']->id, false, $onlyexistentgroups);
285 285
     echo '<br><br>';
286 286
 }
287 287
 
@@ -387,7 +387,7 @@  discard block
 block discarded – undo
387 387
     // JavaScript variables for recordings.
388 388
     $jsvars += array(
389 389
             'recordings_html' => $bbbsession['bigbluebuttonbn']->recordings_html == '1',
390
-          );
390
+            );
391 391
 
392 392
     // If there are meetings with recordings load the data to the table.
393 393
     if ($bbbsession['bigbluebuttonbn']->recordings_html) {
@@ -399,7 +399,7 @@  discard block
 block discarded – undo
399 399
     $jsvars += array(
400 400
             'columns' => bigbluebuttonbn_get_recording_columns($bbbsession),
401 401
             'data' => bigbluebuttonbn_get_recording_data($bbbsession, $recordings),
402
-          );
402
+            );
403 403
 
404 404
     // Render a YUI table.
405 405
     return html_writer::div('', '', array('id' => 'bigbluebuttonbn_yui_table'));
@@ -410,10 +410,10 @@  discard block
 block discarded – undo
410 410
 
411 411
     $button = html_writer::tag('input', '',
412 412
         array('type' => 'button',
413
-              'value' => get_string('view_recording_button_import', 'bigbluebuttonbn'),
414
-              'class' => 'btn btn-secondary',
415
-              'onclick' => 'window.location=\''.$CFG->wwwroot.'/mod/bigbluebuttonbn/import_view.php?bn='.
416
-                  $bbbsession['bigbluebuttonbn']->id.'\''));
413
+                'value' => get_string('view_recording_button_import', 'bigbluebuttonbn'),
414
+                'class' => 'btn btn-secondary',
415
+                'onclick' => 'window.location=\''.$CFG->wwwroot.'/mod/bigbluebuttonbn/import_view.php?bn='.
416
+                    $bbbsession['bigbluebuttonbn']->id.'\''));
417 417
     $output = html_writer::start_tag('br');
418 418
     $output .= html_writer::tag('span', $button, array('id' => 'import_recording_links_button'));
419 419
     $output .= html_writer::tag('span', '', array('id' => 'import_recording_links_table'));
@@ -431,7 +431,7 @@  discard block
 block discarded – undo
431 431
         return '<h4>'.get_string('view_section_title_presentation', 'bigbluebuttonbn').'</h4>'.
432 432
                 ''.$OUTPUT->action_icon($bbbsession['presentation']['url'], $icon, null, array(), false).''.
433 433
                 ''.$OUTPUT->action_link($bbbsession['presentation']['url'],
434
-                      $bbbsession['presentation']['name'], null, $attributes).'<br><br>';
434
+                        $bbbsession['presentation']['name'], null, $attributes).'<br><br>';
435 435
     }
436 436
 
437 437
     return '';
Please login to merge, or discard this patch.
locallib.php 1 patch
Indentation   +67 added lines, -67 removed lines patch added patch discarded remove patch
@@ -85,9 +85,9 @@  discard block
 block discarded – undo
85 85
 // BigBlueButton API Calls.
86 86
 function bigbluebuttonbn_get_join_url($meetingid, $username, $pw, $logouturl, $configtoken = null, $userid = null) {
87 87
     $data = ['meetingID' => $meetingid,
88
-              'fullName' => $username,
89
-              'password' => $pw,
90
-              'logoutURL' => $logouturl,
88
+                'fullName' => $username,
89
+                'password' => $pw,
90
+                'logoutURL' => $logouturl,
91 91
             ];
92 92
 
93 93
     if (!is_null($configtoken)) {
@@ -202,24 +202,24 @@  discard block
 block discarded – undo
202 202
 function bigbluebuttonbn_get_meeting_info_array($meetingid) {
203 203
     $xml = bigbluebuttonbn_wrap_xml_load_file(
204 204
         bigbluebuttonbn_bigbluebutton_action_url('getMeetingInfo', ['meetingID' => $meetingid])
205
-      );
205
+        );
206 206
 
207 207
     if ($xml && $xml->returncode == 'SUCCESS' && empty($xml->messageKey)) {
208 208
         // Meeting info was returned.
209 209
         return array('returncode' => $xml->returncode,
210
-                     'meetingID' => $xml->meetingID,
211
-                     'moderatorPW' => $xml->moderatorPW,
212
-                     'attendeePW' => $xml->attendeePW,
213
-                     'hasBeenForciblyEnded' => $xml->hasBeenForciblyEnded,
214
-                     'running' => $xml->running,
215
-                     'recording' => $xml->recording,
216
-                     'startTime' => $xml->startTime,
217
-                     'endTime' => $xml->endTime,
218
-                     'participantCount' => $xml->participantCount,
219
-                     'moderatorCount' => $xml->moderatorCount,
220
-                     'attendees' => $xml->attendees,
221
-                     'metadata' => $xml->metadata,
222
-                   );
210
+                        'meetingID' => $xml->meetingID,
211
+                        'moderatorPW' => $xml->moderatorPW,
212
+                        'attendeePW' => $xml->attendeePW,
213
+                        'hasBeenForciblyEnded' => $xml->hasBeenForciblyEnded,
214
+                        'running' => $xml->running,
215
+                        'recording' => $xml->recording,
216
+                        'startTime' => $xml->startTime,
217
+                        'endTime' => $xml->endTime,
218
+                        'participantCount' => $xml->participantCount,
219
+                        'moderatorCount' => $xml->moderatorCount,
220
+                        'attendees' => $xml->attendees,
221
+                        'metadata' => $xml->metadata,
222
+                    );
223 223
     }
224 224
 
225 225
     if ($xml) {
@@ -285,7 +285,7 @@  discard block
 block discarded – undo
285 285
         // Do getRecordings is executed using a method GET (supported by all versions of BBB).
286 286
         $xml = bigbluebuttonbn_wrap_xml_load_file(
287 287
             bigbluebuttonbn_bigbluebutton_action_url('getRecordings', ['meetingID' => implode(',', $mids)])
288
-          );
288
+            );
289 289
         if ($xml && $xml->returncode == 'SUCCESS' && isset($xml->recordings)) {
290 290
             // If there were meetings already created.
291 291
             foreach ($xml->recordings->recording as $recording) {
@@ -346,7 +346,7 @@  discard block
 block discarded – undo
346 346
 function bigbluebuttonbn_get_default_config_xml() {
347 347
     $xml = bigbluebuttonbn_wrap_xml_load_file(
348 348
         bigbluebuttonbn_bigbluebutton_action_url('getDefaultConfigXML')
349
-      );
349
+        );
350 350
 
351 351
     return $xml;
352 352
 }
@@ -414,7 +414,7 @@  discard block
 block discarded – undo
414 414
     foreach ($ids as $id) {
415 415
         $xml = bigbluebuttonbn_wrap_xml_load_file(
416 416
             bigbluebuttonbn_bigbluebutton_action_url('deleteRecordings', ['recordID' => $id])
417
-          );
417
+            );
418 418
         if ($xml && $xml->returncode != 'SUCCESS') {
419 419
             return false;
420 420
         }
@@ -432,7 +432,7 @@  discard block
 block discarded – undo
432 432
     foreach ($ids as $id) {
433 433
         $xml = bigbluebuttonbn_wrap_xml_load_file(
434 434
             bigbluebuttonbn_bigbluebutton_action_url('publishRecordings', ['recordID' => $id, 'publish' => $publish])
435
-          );
435
+            );
436 436
         if ($xml && $xml->returncode != 'SUCCESS') {
437 437
             return false;
438 438
         }
@@ -450,7 +450,7 @@  discard block
 block discarded – undo
450 450
     foreach ($ids as $id) {
451 451
         $xml = bigbluebuttonbn_wrap_xml_load_file(
452 452
             bigbluebuttonbn_bigbluebutton_action_url('updateRecordings', ['recordID' => $id] + (array) $params)
453
-          );
453
+            );
454 454
         if ($xml && $xml->returncode != 'SUCCESS') {
455 455
             return false;
456 456
         }
@@ -509,7 +509,7 @@  discard block
 block discarded – undo
509 509
 function bigbluebuttonbn_end_meeting($meetingid, $modpw) {
510 510
     $xml = bigbluebuttonbn_wrap_xml_load_file(
511 511
         bigbluebuttonbn_bigbluebutton_action_url('end', ['meetingID' => $meetingid, 'password' => $modpw])
512
-      );
512
+        );
513 513
 
514 514
     if ($xml) {
515 515
         // If the xml packet returned failure it displays the message to the user.
@@ -526,7 +526,7 @@  discard block
 block discarded – undo
526 526
 function bigbluebuttonbn_is_meeting_running($meetingid) {
527 527
     $xml = bigbluebuttonbn_wrap_xml_load_file(
528 528
         bigbluebuttonbn_bigbluebutton_action_url('isMeetingRunning', ['meetingID' => $meetingid])
529
-      );
529
+        );
530 530
 
531 531
     if ($xml && $xml->returncode == 'SUCCESS') {
532 532
         return ($xml->running == 'true');
@@ -538,7 +538,7 @@  discard block
 block discarded – undo
538 538
 function bigbluebuttonbn_get_server_version() {
539 539
     $xml = bigbluebuttonbn_wrap_xml_load_file(
540 540
         bigbluebuttonbn_bigbluebutton_action_url()
541
-      );
541
+        );
542 542
 
543 543
     if ($xml && $xml->returncode == 'SUCCESS') {
544 544
         return $xml->version;
@@ -604,10 +604,10 @@  discard block
 block discarded – undo
604 604
 
605 605
         $options = array();
606 606
         $options['CURLOPT_HTTPHEADER'] = array(
607
-                 'Content-Type: '.$contenttype,
608
-                 'Content-Length: '.strlen($data),
609
-                 'Content-Language: en-US',
610
-               );
607
+                    'Content-Type: '.$contenttype,
608
+                    'Content-Length: '.strlen($data),
609
+                    'Content-Language: en-US',
610
+                );
611 611
 
612 612
         return $c->post($url, $data, $options);
613 613
     }
@@ -666,7 +666,7 @@  discard block
 block discarded – undo
666 666
         $roles[$key] = array('id' => $value->id, 'name' => $value->localname);
667 667
     }
668 668
     return $roles;
669
- }
669
+    }
670 670
 
671 671
 function bigbluebuttonbn_get_role($id) {
672 672
     $roles = (array) role_get_names();
@@ -686,18 +686,18 @@  discard block
 block discarded – undo
686 686
         'all' => array(
687 687
             'name' => get_string('mod_form_field_participant_list_type_all', 'bigbluebuttonbn'),
688 688
             'children' => []
689
-          )
690
-      );
689
+            )
690
+        );
691 691
 
692 692
     $data['role'] = array(
693 693
         'name' => get_string('mod_form_field_participant_list_type_role', 'bigbluebuttonbn'),
694 694
         'children' => bigbluebuttonbn_get_roles_select($context)
695
-      );
695
+        );
696 696
 
697 697
     $data['user'] = array(
698 698
         'name' => get_string('mod_form_field_participant_list_type_user', 'bigbluebuttonbn'),
699 699
         'children' => bigbluebuttonbn_get_users_select($context)
700
-      );
700
+        );
701 701
 
702 702
     return $data;
703 703
 }
@@ -744,9 +744,9 @@  discard block
 block discarded – undo
744 744
         }
745 745
 
746 746
         $participantlistarray[] = array(
747
-              'selectiontype' => 'role',
748
-              'selectionid' => $moderatordefault,
749
-              'role' => BIGBLUEBUTTONBN_ROLE_MODERATOR);
747
+                'selectiontype' => 'role',
748
+                'selectionid' => $moderatordefault,
749
+                'role' => BIGBLUEBUTTONBN_ROLE_MODERATOR);
750 750
     }
751 751
 
752 752
     return $participantlistarray;
@@ -758,11 +758,11 @@  discard block
 block discarded – undo
758 758
             'all' => get_string('mod_form_field_participant_list_type_all', 'bigbluebuttonbn'),
759 759
             'role' => get_string('mod_form_field_participant_list_type_role', 'bigbluebuttonbn'),
760 760
             'user' => get_string('mod_form_field_participant_list_type_user', 'bigbluebuttonbn'),
761
-          ],
761
+            ],
762 762
         'type_selected' => 'all',
763 763
         'options' => ['all' => '---------------'],
764 764
         'selected' => 'all',
765
-      ];
765
+        ];
766 766
 }
767 767
 
768 768
 function bigbluebuttonbn_is_moderator($context, $participants, $userid = null, $userroles = null) {
@@ -893,8 +893,8 @@  discard block
 block discarded – undo
893 893
     }
894 894
 
895 895
     $parray = array('url' => $purl, 'name' => $pname,
896
-                               'icon' => $picon,
897
-                               'mimetype_description' => $pmimetypedescrip);
896
+                                'icon' => $picon,
897
+                                'mimetype_description' => $pmimetypedescrip);
898 898
 
899 899
     return $parray;
900 900
 }
@@ -982,7 +982,7 @@  discard block
 block discarded – undo
982 982
     }
983 983
 
984 984
     $event = call_user_func_array('\mod_bigbluebuttonbn\event\bigbluebuttonbn_'.$eventtype.'::create',
985
-      array($eventproperties));
985
+        array($eventproperties));
986 986
     $event->trigger();
987 987
 }
988 988
 
@@ -1030,7 +1030,7 @@  discard block
 block discarded – undo
1030 1030
     // Ping again and refresh the cache.
1031 1031
     $meetinginfo = (array) bigbluebuttonbn_wrap_xml_load_file(
1032 1032
         bigbluebuttonbn_bigbluebutton_action_url('getMeetingInfo', ['meetingID' => $meetingid])
1033
-      );
1033
+        );
1034 1034
     $cache->set($meetingid, array('creation_time' => time(), 'meeting_info' => json_encode($meetinginfo)));
1035 1035
 
1036 1036
     return $meetinginfo;
@@ -1168,7 +1168,7 @@  discard block
 block discarded – undo
1168 1168
         $actionbar .= bigbluebuttonbn_actionbar_render_button(
1169 1169
             $recording,
1170 1170
             bigbluebuttonbn_get_recording_data_row_actionbar_payload($recording, $tool)
1171
-          );
1171
+            );
1172 1172
     }
1173 1173
 
1174 1174
     $head = html_writer::start_tag('div', array(
@@ -1254,8 +1254,8 @@  discard block
 block discarded – undo
1254 1254
 
1255 1255
     $id = 'playbacks-'.$recording['recordID'];
1256 1256
     $recordingtypes = html_writer::start_tag('div', array('id' => $id, 'data-imported' => $dataimported,
1257
-          'data-recordingid' => $recording['recordID'], 'data-meetingid' => $recording['meetingID'],
1258
-          'title' => $title, $visibility => $visibility));
1257
+            'data-recordingid' => $recording['recordID'], 'data-meetingid' => $recording['meetingID'],
1258
+            'title' => $title, $visibility => $visibility));
1259 1259
     foreach ($recording['playbacks'] as $playback) {
1260 1260
         $onclick = 'M.mod_bigbluebuttonbn.recordings.recording_play(this);';
1261 1261
         $href = $CFG->wwwroot.'/mod/bigbluebuttonbn/bbb_view.php?action=playback&bn='.$bigbluebuttonbnid.
@@ -1303,7 +1303,7 @@  discard block
 block discarded – undo
1303 1303
         $payload['source'] = 'meta_contextactivitydescription';
1304 1304
         $metadescription = trim($recording[$payload['source']]);
1305 1305
         if (!empty($metadescription)) {
1306
-          return bigbluebuttonbn_get_recording_data_row_text($recording, $metadescription, $payload);
1306
+            return bigbluebuttonbn_get_recording_data_row_text($recording, $metadescription, $payload);
1307 1307
         }
1308 1308
     }
1309 1309
 
@@ -1358,7 +1358,7 @@  discard block
 block discarded – undo
1358 1358
             'onclick' => $onclick,
1359 1359
             'data-action' => $data['action'],
1360 1360
             'data-links' => bigbluebuttonbn_get_count_recording_imported_instances($recording['recordID'])
1361
-          );
1361
+            );
1362 1362
         return $OUTPUT->action_icon('#', $icon, null, $linkattributes, false);
1363 1363
     }
1364 1364
 
@@ -1959,23 +1959,23 @@  discard block
 block discarded – undo
1959 1959
  */
1960 1960
 function bigbluebuttonbn_get_cfg_options() {
1961 1961
     return [
1962
-          'version_major' => bigbluebuttonbn_get_moodle_version_major(),
1963
-          'voicebridge_editable' => bigbluebuttonbn_get_cfg_voicebridge_editable(),
1964
-          'recording_default' => bigbluebuttonbn_get_cfg_recording_default(),
1965
-          'recording_editable' => bigbluebuttonbn_get_cfg_recording_editable(),
1966
-          'waitformoderator_default' => bigbluebuttonbn_get_cfg_waitformoderator_default(),
1967
-          'waitformoderator_editable' => bigbluebuttonbn_get_cfg_waitformoderator_editable(),
1968
-          'userlimit_default' => bigbluebuttonbn_get_cfg_userlimit_default(),
1969
-          'userlimit_editable' => bigbluebuttonbn_get_cfg_userlimit_editable(),
1970
-          'preuploadpresentation_enabled' => bigbluebuttonbn_get_cfg_preuploadpresentation_enabled(),
1971
-          'sendnotifications_enabled' => bigbluebuttonbn_get_cfg_sendnotifications_enabled(),
1972
-          'recordings_html_default' => bigbluebuttonbn_get_cfg_recordings_html_default(),
1973
-          'recordings_html_editable' => bigbluebuttonbn_get_cfg_recordings_html_editable(),
1974
-          'recordings_deleted_activities_default' => bigbluebuttonbn_get_cfg_recordings_deleted_activities_default(),
1975
-          'recordings_deleted_activities_editable' => bigbluebuttonbn_get_cfg_recordings_deleted_activities_editable(),
1976
-          'recording_icons_enabled' => bigbluebuttonbn_get_cfg_recording_icons_enabled(),
1977
-          'instance_type_enabled' => bigbluebuttonbn_recordings_enabled(),
1978
-          'instance_type_default' => BIGBLUEBUTTONBN_TYPE_ALL,
1962
+            'version_major' => bigbluebuttonbn_get_moodle_version_major(),
1963
+            'voicebridge_editable' => bigbluebuttonbn_get_cfg_voicebridge_editable(),
1964
+            'recording_default' => bigbluebuttonbn_get_cfg_recording_default(),
1965
+            'recording_editable' => bigbluebuttonbn_get_cfg_recording_editable(),
1966
+            'waitformoderator_default' => bigbluebuttonbn_get_cfg_waitformoderator_default(),
1967
+            'waitformoderator_editable' => bigbluebuttonbn_get_cfg_waitformoderator_editable(),
1968
+            'userlimit_default' => bigbluebuttonbn_get_cfg_userlimit_default(),
1969
+            'userlimit_editable' => bigbluebuttonbn_get_cfg_userlimit_editable(),
1970
+            'preuploadpresentation_enabled' => bigbluebuttonbn_get_cfg_preuploadpresentation_enabled(),
1971
+            'sendnotifications_enabled' => bigbluebuttonbn_get_cfg_sendnotifications_enabled(),
1972
+            'recordings_html_default' => bigbluebuttonbn_get_cfg_recordings_html_default(),
1973
+            'recordings_html_editable' => bigbluebuttonbn_get_cfg_recordings_html_editable(),
1974
+            'recordings_deleted_activities_default' => bigbluebuttonbn_get_cfg_recordings_deleted_activities_default(),
1975
+            'recordings_deleted_activities_editable' => bigbluebuttonbn_get_cfg_recordings_deleted_activities_editable(),
1976
+            'recording_icons_enabled' => bigbluebuttonbn_get_cfg_recording_icons_enabled(),
1977
+            'instance_type_enabled' => bigbluebuttonbn_recordings_enabled(),
1978
+            'instance_type_default' => BIGBLUEBUTTONBN_TYPE_ALL,
1979 1979
         ];
1980 1980
 }
1981 1981
 
@@ -2176,8 +2176,8 @@  discard block
 block discarded – undo
2176 2176
     $activitytime = '';
2177 2177
     if ($time) {
2178 2178
         $activitytime = calendar_day_representation($time).' '.
2179
-          get_string('mod_form_field_notification_msg_at', 'bigbluebuttonbn').' '.
2180
-          calendar_time_representation($time);
2179
+            get_string('mod_form_field_notification_msg_at', 'bigbluebuttonbn').' '.
2180
+            calendar_time_representation($time);
2181 2181
     }
2182 2182
 
2183 2183
     return $activitytime;
Please login to merge, or discard this patch.
mod_form.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
                 'alt' => get_string('delete'),
112 112
                 'title' => get_string('delete'),
113 113
                 'src' => $jsvars['pix_icon_delete']
114
-              );
114
+                );
115 115
 
116 116
             $jsvars['pix_icon_delete'] = html_writer::tag('img', $options);
117 117
         }
@@ -211,8 +211,8 @@  discard block
 block discarded – undo
211 211
             $this->bigbluebuttonbn_mform_add_element($mform, $field['type'], $field['name'], $field['data_type'],
212 212
                 $field['description_key'], 0, ['maxlength' => 4, 'size' => 6],
213 213
                 ['message' => get_string('mod_form_field_voicebridge_format_error', 'bigbluebuttonbn'),
214
-                 'type' => 'numeric', 'rule' => '####', 'validator' => 'server']
215
-              );
214
+                    'type' => 'numeric', 'rule' => '####', 'validator' => 'server']
215
+                );
216 216
         } else {
217 217
             $this->bigbluebuttonbn_mform_add_element($mform, $field['type'], $field['name'], $field['data_type'],
218 218
                 $field['description_key'], 0, ['maxlength' => 4, 'size' => 6]);
@@ -254,7 +254,7 @@  discard block
 block discarded – undo
254 254
             $field['description_key'], $cfg['recordings_html_default']);
255 255
 
256 256
         $field = ['type' => 'hidden', 'name' => 'recordings_deleted_activities', 'data_type' => PARAM_INT,
257
-                  'description_key' => null];
257
+                    'description_key' => null];
258 258
         if ($cfg['recordings_deleted_activities_editable']) {
259 259
             $field['type'] = 'checkbox';
260 260
             $field['description_key'] = 'mod_form_field_recordings_deleted_activities';
@@ -309,7 +309,7 @@  discard block
 block discarded – undo
309 309
             html_writer::select($participantselection['type_options'], 'bigbluebuttonbn_participant_selection_type',
310 310
                 $participantselection['type_selected'], array(),
311 311
                 array('id' => 'bigbluebuttonbn_participant_selection_type',
312
-                      'onchange' => 'M.mod_bigbluebuttonbn.modform.participant_selection_set(); return 0;')).'&nbsp;&nbsp;'.
312
+                        'onchange' => 'M.mod_bigbluebuttonbn.modform.participant_selection_set(); return 0;')).'&nbsp;&nbsp;'.
313 313
             html_writer::select($participantselection['options'], 'bigbluebuttonbn_participant_selection',
314 314
                 $participantselection['selected'], array(),
315 315
                 array('id' => 'bigbluebuttonbn_participant_selection', 'disabled' => 'disabled')).'&nbsp;&nbsp;'.
Please login to merge, or discard this patch.