Completed
Push — master ( 5a0e55...4da55a )
by Jesus
02:05
created
bbb_broker.php 2 patches
Indentation   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -371,19 +371,19 @@  discard block
 block discarded – undo
371 371
             return array(
372 372
                 'status' => false,
373 373
                 'message' => get_string('view_recording_publish_link_deleted', 'bigbluebuttonbn')
374
-              );
374
+                );
375 375
         }
376 376
         if ($realrecordings[$params['id']]['published'] !== 'true') {
377 377
             return array(
378 378
                 'status' => false,
379 379
                 'message' => get_string('view_recording_publish_link_not_published', 'bigbluebuttonbn')
380
-              );
380
+                );
381 381
         }
382 382
         return array(
383 383
             'status' => bigbluebuttonbn_publish_recording_imported(
384 384
                 $recordings[$params['id']]['imported'], true
385 385
             )
386
-          );
386
+            );
387 387
     }
388 388
 
389 389
     // As the recordingid was not identified as imported recording link, execute actual publish.
@@ -391,7 +391,7 @@  discard block
 block discarded – undo
391 391
         'status' => bigbluebuttonbn_publish_recordings(
392 392
             $params['id'], 'true'
393 393
         )
394
-      );
394
+        );
395 395
 }
396 396
 
397 397
 function bigbluebuttonbn_broker_recording_action_unprotect($params, $recordings) {
@@ -404,19 +404,19 @@  discard block
 block discarded – undo
404 404
             return array(
405 405
                 'status' => false,
406 406
                 'message' => get_string('view_recording_unprotect_link_deleted', 'bigbluebuttonbn')
407
-              );
407
+                );
408 408
         }
409 409
         if ($realrecordings[$params['id']]['protected'] === 'true') {
410 410
             return array(
411 411
                 'status' => false,
412 412
                 'message' => get_string('view_recording_unprotect_link_not_unprotected', 'bigbluebuttonbn')
413
-              );
413
+                );
414 414
         }
415 415
         return array(
416 416
             'status' => bigbluebuttonbn_protect_recording_imported(
417 417
                 $recordings[$params['id']]['imported'], false
418 418
             )
419
-          );
419
+            );
420 420
     }
421 421
 
422 422
     // As the recordingid was not identified as imported recording link, execute actual uprotect.
@@ -424,7 +424,7 @@  discard block
 block discarded – undo
424 424
         'status' => bigbluebuttonbn_update_recordings(
425 425
             $params['id'], array('protect' => 'false')
426 426
         )
427
-      );
427
+        );
428 428
 }
429 429
 
430 430
 function bigbluebuttonbn_broker_recording_action_unpublish($params, $recordings) {
@@ -436,7 +436,7 @@  discard block
 block discarded – undo
436 436
             'status' => bigbluebuttonbn_publish_recording_imported(
437 437
                 $recordings[$params['id']]['imported'], false
438 438
             )
439
-          );
439
+            );
440 440
     }
441 441
 
442 442
     // As the recordingid was not identified as imported recording link, execute unpublish on a real recording.
@@ -456,7 +456,7 @@  discard block
 block discarded – undo
456 456
         'status' => bigbluebuttonbn_publish_recordings(
457 457
             $params['id'], 'false'
458 458
         )
459
-      );
459
+        );
460 460
 }
461 461
 
462 462
 function bigbluebuttonbn_broker_recording_action_protect($params, $recordings) {
@@ -468,7 +468,7 @@  discard block
 block discarded – undo
468 468
             'status' => bigbluebuttonbn_protect_recording_imported(
469 469
                 $recordings[$params['id']]['imported'], true
470 470
             )
471
-          );
471
+            );
472 472
     }
473 473
 
474 474
     // As the recordingid was not identified as imported recording link, execute protect on a real recording.
@@ -488,7 +488,7 @@  discard block
 block discarded – undo
488 488
         'status' => bigbluebuttonbn_update_recordings(
489 489
             $params['id'], array('protect' => 'true')
490 490
         )
491
-      );
491
+        );
492 492
 }
493 493
 
494 494
 function bigbluebuttonbn_broker_recording_action_delete($params, $recordings) {
@@ -500,7 +500,7 @@  discard block
 block discarded – undo
500 500
             'status' => bigbluebuttonbn_delete_recording_imported(
501 501
                 $recordings[$params['id']]['imported']
502 502
             )
503
-          );
503
+            );
504 504
     }
505 505
 
506 506
     // As the recordingid was not identified as imported recording link, execute delete on a real recording.
@@ -518,7 +518,7 @@  discard block
 block discarded – undo
518 518
         'status' => bigbluebuttonbn_delete_recordings(
519 519
             $params['id']
520 520
         )
521
-      );
521
+        );
522 522
 }
523 523
 
524 524
 function bigbluebuttonbn_broker_recording_action_edit($params, $recordings) {
@@ -528,7 +528,7 @@  discard block
 block discarded – undo
528 528
             'status' => bigbluebuttonbn_update_recording_imported(
529 529
                 $recordings[$params['id']]['imported'], json_decode($params['meta'], true)
530 530
             )
531
-          );
531
+            );
532 532
     }
533 533
 
534 534
     // As the recordingid was not identified as imported recording link, execute update on a real recording.
@@ -538,7 +538,7 @@  discard block
 block discarded – undo
538 538
         'status' => bigbluebuttonbn_update_recordings(
539 539
             $params['id'], json_decode($params['meta'])
540 540
         )
541
-      );
541
+        );
542 542
 }
543 543
 
544 544
 function bigbluebuttonbn_broker_recording_ready($params, $bigbluebuttonbn) {
@@ -679,10 +679,10 @@  discard block
 block discarded – undo
679 679
     $params['recording_import'] = ['id' => 'The recordingID must be specified.'];
680 680
     $params['recording_ready'] = [
681 681
             'signed_parameters' => 'A JWT encoded string must be included as [signed_parameters].'
682
-          ];
682
+            ];
683 683
     $params['live_session_events'] = [
684 684
             'signed_parameters' => 'A JWT encoded string must be included as [signed_parameters].'
685
-          ];
685
+            ];
686 686
     return $params;
687 687
 }
688 688
 
Please login to merge, or discard this patch.
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -22,8 +22,8 @@  discard block
 block discarded – undo
22 22
  * @license   http://www.gnu.org/copyleft/gpl.html GNU GPL v2 or later
23 23
  */
24 24
 
25
-require_once(dirname(dirname(dirname(__FILE__))).'/config.php');
26
-require_once(dirname(__FILE__).'/locallib.php');
25
+require_once(dirname(dirname(dirname(__FILE__))) . '/config.php');
26
+require_once(dirname(__FILE__) . '/locallib.php');
27 27
 
28 28
 use \Firebase\JWT\JWT;
29 29
 
@@ -39,13 +39,13 @@  discard block
 block discarded – undo
39 39
 $params['meta'] = optional_param('meta', '', PARAM_TEXT);
40 40
 
41 41
 if (empty($params['action'])) {
42
-    header('HTTP/1.0 400 Bad Request. Parameter ['.$params['action'].'] was not included');
42
+    header('HTTP/1.0 400 Bad Request. Parameter [' . $params['action'] . '] was not included');
43 43
     return;
44 44
 }
45 45
 
46 46
 $error = bigbluebuttonbn_broker_validate_parameters($params);
47 47
 if (!empty($error)) {
48
-    header('HTTP/1.0 400 Bad Request. '.$error);
48
+    header('HTTP/1.0 400 Bad Request. ' . $error);
49 49
     return;
50 50
 }
51 51
 
@@ -139,11 +139,11 @@  discard block
 block discarded – undo
139 139
         return;
140 140
     }
141 141
 
142
-    header('HTTP/1.0 400 Bad request. The action '. $a . ' doesn\'t exist');
142
+    header('HTTP/1.0 400 Bad request. The action ' . $a . ' doesn\'t exist');
143 143
     return;
144 144
 
145 145
 } catch (Exception $e) {
146
-    header('HTTP/1.0 500 Internal Server Error. '.$e->getMessage());
146
+    header('HTTP/1.0 500 Internal Server Error. ' . $e->getMessage());
147 147
     return;
148 148
 }
149 149
 
@@ -283,7 +283,7 @@  discard block
 block discarded – undo
283 283
 function bigbluebuttonbn_broker_recording_info_current($recording, $params) {
284 284
     $callbackresponse['status'] = true;
285 285
     $callbackresponse['found'] = true;
286
-    $callbackresponse['published'] = (string) $recording['published'];
286
+    $callbackresponse['published'] = (string)$recording['published'];
287 287
     if (!isset($params['meta']) || empty($params['meta'])) {
288 288
         return $callbackresponse;
289 289
     }
@@ -545,8 +545,8 @@  discard block
 block discarded – undo
545 545
         $decodedparameters = JWT::decode($params['signed_parameters'], (string)\mod_bigbluebuttonbn\locallib\config::get('shared_secret'),
546 546
             array('HS256'));
547 547
     } catch (Exception $e) {
548
-        $error = 'Caught exception: '.$e->getMessage();
549
-        header('HTTP/1.0 400 Bad Request. '.$error);
548
+        $error = 'Caught exception: ' . $e->getMessage();
549
+        header('HTTP/1.0 400 Bad Request. ' . $error);
550 550
         return;
551 551
     }
552 552
 
@@ -564,8 +564,8 @@  discard block
 block discarded – undo
564 564
         bigbluebuttonbn_send_notification_recording_ready($bigbluebuttonbn);
565 565
         header('HTTP/1.0 202 Accepted');
566 566
     } catch (Exception $e) {
567
-        $error = 'Caught exception: '.$e->getMessage();
568
-        header('HTTP/1.0 503 Service Unavailable. '.$error);
567
+        $error = 'Caught exception: ' . $e->getMessage();
568
+        header('HTTP/1.0 503 Service Unavailable. ' . $error);
569 569
     }
570 570
 }
571 571
 
@@ -580,7 +580,7 @@  discard block
 block discarded – undo
580 580
     $importrecordings = $SESSION->bigbluebuttonbn_importrecordings;
581 581
     if (!isset($importrecordings[$params['id']])) {
582 582
         $error = "Recording {$params['id']} could not be found. It can not be imported";
583
-        header('HTTP/1.0 404 Not found. '.$error);
583
+        header('HTTP/1.0 404 Not found. ' . $error);
584 584
         return;
585 585
     }
586 586
 
@@ -588,7 +588,7 @@  discard block
 block discarded – undo
588 588
 
589 589
     $importrecordings[$params['id']]['imported'] = true;
590 590
     $overrides = array('meetingid' => $importrecordings[$params['id']]['meetingID']);
591
-    $meta = '{"recording":'.json_encode($importrecordings[$params['id']]).'}';
591
+    $meta = '{"recording":' . json_encode($importrecordings[$params['id']]) . '}';
592 592
     bigbluebuttonbn_logs($bbbsession, BIGBLUEBUTTONBN_LOG_EVENT_IMPORT, $overrides, $meta);
593 593
     // Moodle event logger: Create an event for recording imported.
594 594
     if (isset($bbbsession['bigbluebutton']) && isset($bbbsession['cm'])) {
@@ -606,8 +606,8 @@  discard block
 block discarded – undo
606 606
         $decodedparameters = JWT::decode($params['signed_parameters'], (string)\mod_bigbluebuttonbn\locallib\config::get('shared_secret'),
607 607
             array('HS256'));
608 608
     } catch (Exception $e) {
609
-        $error = 'Caught exception: '.$e->getMessage();
610
-        header('HTTP/1.0 400 Bad Request. '.$error);
609
+        $error = 'Caught exception: ' . $e->getMessage();
610
+        header('HTTP/1.0 400 Bad Request. ' . $error);
611 611
         return;
612 612
     }
613 613
 
@@ -645,7 +645,7 @@  discard block
 block discarded – undo
645 645
 
646 646
     $action = strtolower($params['action']);
647 647
     if (!array_key_exists($action, $requiredparams)) {
648
-        return 'Action '.$params['action'].' can not be performed.';
648
+        return 'Action ' . $params['action'] . ' can not be performed.';
649 649
     }
650 650
 
651 651
     return bigbluebuttonbn_broker_validate_parameters_message($params, $requiredparams[$action]);
Please login to merge, or discard this patch.
classes/locallib/notifier.php 1 patch
Spacing   +26 added lines, -26 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
         global $USER;
35 35
 
36 36
         // Prepare message.
37
-        $msg = (object) array();
37
+        $msg = (object)array();
38 38
         // Build the message_body.
39 39
         $msg->action = $action;
40 40
         $msg->activity_type = '';
@@ -54,26 +54,26 @@  discard block
 block discarded – undo
54 54
     }
55 55
 
56 56
     public static function notification_msg_html($msg) {
57
-        $messagetext = '<p>'.$msg->activity_type.' &quot;'.$msg->activity_title.'&quot; '.
58
-            get_string('email_body_notification_meeting_has_been', 'bigbluebuttonbn').' '.$msg->action.'.</p>'."\n";
59
-        $messagetext .= '<p><b>'.$msg->activity_title.'</b> '.
60
-            get_string('email_body_notification_meeting_details', 'bigbluebuttonbn').':'."\n";
61
-        $messagetext .= '<table border="0" style="margin: 5px 0 0 20px"><tbody>'."\n";
62
-        $messagetext .= '<tr><td style="font-weight:bold;color:#555;">'.
63
-            get_string('email_body_notification_meeting_title', 'bigbluebuttonbn').': </td><td>'."\n";
64
-        $messagetext .= $msg->activity_title.'</td></tr>'."\n";
65
-        $messagetext .= '<tr><td style="font-weight:bold;color:#555;">'.
66
-            get_string('email_body_notification_meeting_description', 'bigbluebuttonbn').': </td><td>'."\n";
67
-        $messagetext .= $msg->activity_description.'</td></tr>'."\n";
68
-        $messagetext .= '<tr><td style="font-weight:bold;color:#555;">'.
69
-            get_string('email_body_notification_meeting_start_date', 'bigbluebuttonbn').': </td><td>'."\n";
70
-        $messagetext .= $msg->activity_openingtime.'</td></tr>'."\n";
71
-        $messagetext .= '<tr><td style="font-weight:bold;color:#555;">'.
72
-            get_string('email_body_notification_meeting_end_date', 'bigbluebuttonbn').': </td><td>'."\n";
73
-        $messagetext .= $msg->activity_closingtime.'</td></tr>'."\n";
74
-        $messagetext .= '<tr><td style="font-weight:bold;color:#555;">'.$msg->action.' '.
75
-            get_string('email_body_notification_meeting_by', 'bigbluebuttonbn').': </td><td>'."\n";
76
-        $messagetext .= $msg->activity_owner.'</td></tr></tbody></table></p>'."\n";
57
+        $messagetext = '<p>' . $msg->activity_type . ' &quot;' . $msg->activity_title . '&quot; ' .
58
+            get_string('email_body_notification_meeting_has_been', 'bigbluebuttonbn') . ' ' . $msg->action . '.</p>' . "\n";
59
+        $messagetext .= '<p><b>' . $msg->activity_title . '</b> ' .
60
+            get_string('email_body_notification_meeting_details', 'bigbluebuttonbn') . ':' . "\n";
61
+        $messagetext .= '<table border="0" style="margin: 5px 0 0 20px"><tbody>' . "\n";
62
+        $messagetext .= '<tr><td style="font-weight:bold;color:#555;">' .
63
+            get_string('email_body_notification_meeting_title', 'bigbluebuttonbn') . ': </td><td>' . "\n";
64
+        $messagetext .= $msg->activity_title . '</td></tr>' . "\n";
65
+        $messagetext .= '<tr><td style="font-weight:bold;color:#555;">' .
66
+            get_string('email_body_notification_meeting_description', 'bigbluebuttonbn') . ': </td><td>' . "\n";
67
+        $messagetext .= $msg->activity_description . '</td></tr>' . "\n";
68
+        $messagetext .= '<tr><td style="font-weight:bold;color:#555;">' .
69
+            get_string('email_body_notification_meeting_start_date', 'bigbluebuttonbn') . ': </td><td>' . "\n";
70
+        $messagetext .= $msg->activity_openingtime . '</td></tr>' . "\n";
71
+        $messagetext .= '<tr><td style="font-weight:bold;color:#555;">' .
72
+            get_string('email_body_notification_meeting_end_date', 'bigbluebuttonbn') . ': </td><td>' . "\n";
73
+        $messagetext .= $msg->activity_closingtime . '</td></tr>' . "\n";
74
+        $messagetext .= '<tr><td style="font-weight:bold;color:#555;">' . $msg->action . ' ' .
75
+            get_string('email_body_notification_meeting_by', 'bigbluebuttonbn') . ': </td><td>' . "\n";
76
+        $messagetext .= $msg->activity_owner . '</td></tr></tbody></table></p>' . "\n";
77 77
         return $messagetext;
78 78
     }
79 79
 
@@ -83,15 +83,15 @@  discard block
 block discarded – undo
83 83
         $course = $DB->get_record('course', array('id' => $bigbluebuttonbn->course), '*', MUST_EXIST);
84 84
 
85 85
         // Complete message.
86
-        $msg = (object) array();
86
+        $msg = (object)array();
87 87
         $msg->user_name = fullname($sender);
88 88
         $msg->user_email = $sender->email;
89 89
         $msg->course_name = "$course->fullname";
90
-        $message .= '<p><hr/><br/>'.get_string('email_footer_sent_by', 'bigbluebuttonbn').' '.
91
-            $msg->user_name.'('.$msg->user_email.') ';
92
-        $message .= get_string('email_footer_sent_from', 'bigbluebuttonbn').' '.$msg->course_name.'.</p>';
90
+        $message .= '<p><hr/><br/>' . get_string('email_footer_sent_by', 'bigbluebuttonbn') . ' ' .
91
+            $msg->user_name . '(' . $msg->user_email . ') ';
92
+        $message .= get_string('email_footer_sent_from', 'bigbluebuttonbn') . ' ' . $msg->course_name . '.</p>';
93 93
 
94
-        $users = (array) get_enrolled_users($context, '', 0, 'u.*', null, 0, 0, true);
94
+        $users = (array)get_enrolled_users($context, '', 0, 'u.*', null, 0, 0, true);
95 95
         foreach ($users as $user) {
96 96
             if ($user->id != $sender->id) {
97 97
                 message_post_message($sender, $user, $message, FORMAT_HTML);
Please login to merge, or discard this patch.
classes/locallib/config.php 2 patches
Indentation   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -119,28 +119,28 @@
 block discarded – undo
119 119
      */
120 120
     public static function get_options() {
121 121
         return [
122
-               'version_major' => self::get_moodle_version_major(),
123
-               'voicebridge_editable' => self::get('voicebridge_editable'),
124
-               'waitformoderator_default' => self::get('waitformoderator_default'),
125
-               'waitformoderator_editable' => self::get('waitformoderator_editable'),
126
-               'userlimit_default' => self::get('userlimit_default'),
127
-               'userlimit_editable' => self::get('userlimit_editable'),
128
-               'preuploadpresentation_enabled' => self::get('preuploadpresentation_enabled'),
129
-               'sendnotifications_enabled' => self::get('sendnotifications_enabled'),
130
-               'recordings_enabled' => self::get('recordings_enabled'),
131
-               'recordings_html_default' => self::get('recordings_html_default'),
132
-               'recordings_html_editable' => self::get('recordings_html_editable'),
133
-               'recordings_deleted_default' => self::get('recordings_deleted_default'),
134
-               'recordings_deleted_editable' => self::get('recordings_deleted_editable'),
135
-               'recordings_imported_default' => self::get('recordings_imported_default'),
136
-               'recordings_imported_editable' => self::get('recordings_imported_editable'),
137
-               'recording_default' => self::get('recording_default'),
138
-               'recording_editable' => self::get('recording_editable'),
139
-               'recording_icons_enabled' => self::get('recording_icons_enabled'),
140
-               'general_warning_message' => self::get('general_warning_message'),
141
-               'general_warning_button_text' => self::get('general_warning_button_text'),
142
-               'general_warning_button_href' => self::get('general_warning_button_href'),
143
-               'general_warning_button_class' => self::get('general_warning_button_class'),
144
-          ];
122
+                'version_major' => self::get_moodle_version_major(),
123
+                'voicebridge_editable' => self::get('voicebridge_editable'),
124
+                'waitformoderator_default' => self::get('waitformoderator_default'),
125
+                'waitformoderator_editable' => self::get('waitformoderator_editable'),
126
+                'userlimit_default' => self::get('userlimit_default'),
127
+                'userlimit_editable' => self::get('userlimit_editable'),
128
+                'preuploadpresentation_enabled' => self::get('preuploadpresentation_enabled'),
129
+                'sendnotifications_enabled' => self::get('sendnotifications_enabled'),
130
+                'recordings_enabled' => self::get('recordings_enabled'),
131
+                'recordings_html_default' => self::get('recordings_html_default'),
132
+                'recordings_html_editable' => self::get('recordings_html_editable'),
133
+                'recordings_deleted_default' => self::get('recordings_deleted_default'),
134
+                'recordings_deleted_editable' => self::get('recordings_deleted_editable'),
135
+                'recordings_imported_default' => self::get('recordings_imported_default'),
136
+                'recordings_imported_editable' => self::get('recordings_imported_editable'),
137
+                'recording_default' => self::get('recording_default'),
138
+                'recording_editable' => self::get('recording_editable'),
139
+                'recording_icons_enabled' => self::get('recording_icons_enabled'),
140
+                'general_warning_message' => self::get('general_warning_message'),
141
+                'general_warning_button_text' => self::get('general_warning_button_text'),
142
+                'general_warning_button_href' => self::get('general_warning_button_href'),
143
+                'general_warning_button_class' => self::get('general_warning_button_class'),
144
+            ];
145 145
     }
146 146
 }
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -44,8 +44,8 @@  discard block
 block discarded – undo
44 44
      */
45 45
     public static function defaultvalues() {
46 46
         return array(
47
-            'server_url' => (string) BIGBLUEBUTTONBN_DEFAULT_SERVER_URL,
48
-            'shared_secret' => (string) BIGBLUEBUTTONBN_DEFAULT_SHARED_SECRET,
47
+            'server_url' => (string)BIGBLUEBUTTONBN_DEFAULT_SERVER_URL,
48
+            'shared_secret' => (string)BIGBLUEBUTTONBN_DEFAULT_SHARED_SECRET,
49 49
             'importrecordings_enabled' => 'false',
50 50
             'voicebridge_editable' => 'false',
51 51
             'importrecordings_enabled' => 'false',
@@ -99,10 +99,10 @@  discard block
 block discarded – undo
99 99
     public static function get($setting) {
100 100
         global $CFG;
101 101
         if (isset($CFG->bigbluebuttonbn[$setting])) {
102
-            return (string) $CFG->bigbluebuttonbn[$setting];
102
+            return (string)$CFG->bigbluebuttonbn[$setting];
103 103
         }
104
-        if (isset($CFG->{'bigbluebuttonbn_'.$setting})) {
105
-            return (string)$CFG->{'bigbluebuttonbn_'.$setting};
104
+        if (isset($CFG->{'bigbluebuttonbn_' . $setting})) {
105
+            return (string)$CFG->{'bigbluebuttonbn_' . $setting};
106 106
         }
107 107
         return  self::defaultvalue($setting);
108 108
     }
Please login to merge, or discard this patch.
classes/settings/renderer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
 defined('MOODLE_INTERNAL') || die();
28 28
 
29 29
 require_once($CFG->dirroot . '/mod/bigbluebuttonbn/locallib.php');
30
-require_once($CFG->libdir.'/adminlib.php');
30
+require_once($CFG->libdir . '/adminlib.php');
31 31
 
32 32
 class renderer {
33 33
 
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
             $itemname = get_string('config_' . $name, 'bigbluebuttonbn');
46 46
         }
47 47
         if ($itemdescription == null) {
48
-            $itemdescription = get_string('config_' .$name . '_description', 'bigbluebuttonbn');
48
+            $itemdescription = get_string('config_' . $name . '_description', 'bigbluebuttonbn');
49 49
         }
50 50
         $item = new \admin_setting_heading('bigbluebuttonbn_config_' . $name, $itemname, $itemdescription);
51 51
         $this->settings->add($item);
Please login to merge, or discard this patch.
settings.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
 
28 28
 global $CFG;
29 29
 
30
-require_once(dirname(__FILE__).'/locallib.php');
30
+require_once(dirname(__FILE__) . '/locallib.php');
31 31
 
32 32
 if ($ADMIN->fulltree) {
33 33
     // Configuration for BigBlueButton.
Please login to merge, or discard this patch.
view.php 2 patches
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -434,13 +434,13 @@  discard block
 block discarded – undo
434 434
         $recordings = bigbluebuttonbn_get_recordings(
435 435
             $bbbsession['course']->id, $bigbluebuttonbnid, $showroom,
436 436
             $bbbsession['bigbluebuttonbn']->recordings_deleted
437
-          );
437
+            );
438 438
     }
439 439
 
440 440
     // Get recording links.
441 441
     $recordingsimported = bigbluebuttonbn_get_recordings_imported_array(
442 442
         $bbbsession['course']->id, $bigbluebuttonbnid, $showroom
443
-      );
443
+        );
444 444
 
445 445
     /* Perform aritmetic addition instead of merge so the imported recordings corresponding to existent
446 446
      * recordings are not included. */
@@ -456,7 +456,7 @@  discard block
 block discarded – undo
456 456
     // JavaScript variables for recordings.
457 457
     $jsvars += array(
458 458
             'recordings_html' => $bbbsession['bigbluebuttonbn']->recordings_html == '1',
459
-          );
459
+            );
460 460
 
461 461
     // If there are meetings with recordings load the data to the table.
462 462
     if ($bbbsession['bigbluebuttonbn']->recordings_html) {
@@ -468,7 +468,7 @@  discard block
 block discarded – undo
468 468
     $jsvars += array(
469 469
             'columns' => bigbluebuttonbn_get_recording_columns($bbbsession),
470 470
             'data' => bigbluebuttonbn_get_recording_data($bbbsession, $recordings),
471
-          );
471
+            );
472 472
 
473 473
     // Render a YUI table.
474 474
     return html_writer::div('', '', array('id' => 'bigbluebuttonbn_yui_table'));
@@ -479,10 +479,10 @@  discard block
 block discarded – undo
479 479
 
480 480
     $button = html_writer::tag('input', '',
481 481
         array('type' => 'button',
482
-              'value' => get_string('view_recording_button_import', 'bigbluebuttonbn'),
483
-              'class' => 'btn btn-secondary',
484
-              'onclick' => 'window.location=\''.$CFG->wwwroot.'/mod/bigbluebuttonbn/import_view.php?bn='.
485
-                  $bbbsession['bigbluebuttonbn']->id.'\''));
482
+                'value' => get_string('view_recording_button_import', 'bigbluebuttonbn'),
483
+                'class' => 'btn btn-secondary',
484
+                'onclick' => 'window.location=\''.$CFG->wwwroot.'/mod/bigbluebuttonbn/import_view.php?bn='.
485
+                    $bbbsession['bigbluebuttonbn']->id.'\''));
486 486
     $output = html_writer::start_tag('br');
487 487
     $output .= html_writer::tag('span', $button, array('id' => 'import_recording_links_button'));
488 488
     $output .= html_writer::tag('span', '', array('id' => 'import_recording_links_table'));
@@ -500,7 +500,7 @@  discard block
 block discarded – undo
500 500
         return '<h4>'.get_string('view_section_title_presentation', 'bigbluebuttonbn').'</h4>'.
501 501
                 ''.$OUTPUT->action_icon($bbbsession['presentation']['url'], $icon, null, array(), false).''.
502 502
                 ''.$OUTPUT->action_link($bbbsession['presentation']['url'],
503
-                      $bbbsession['presentation']['name'], null, $attributes).'<br><br>';
503
+                        $bbbsession['presentation']['name'], null, $attributes).'<br><br>';
504 504
     }
505 505
 
506 506
     return '';
Please login to merge, or discard this patch.
Spacing   +44 added lines, -44 removed lines patch added patch discarded remove patch
@@ -23,8 +23,8 @@  discard block
 block discarded – undo
23 23
  * @license   http://www.gnu.org/copyleft/gpl.html GNU GPL v2 or later
24 24
  */
25 25
 
26
-require_once(dirname(dirname(dirname(__FILE__))).'/config.php');
27
-require_once(dirname(__FILE__).'/locallib.php');
26
+require_once(dirname(dirname(dirname(__FILE__))) . '/config.php');
27
+require_once(dirname(__FILE__) . '/locallib.php');
28 28
 
29 29
 $id = required_param('id', PARAM_INT);
30 30
 $bn = optional_param('n', 0, PARAM_INT);
@@ -56,21 +56,21 @@  discard block
 block discarded – undo
56 56
 if (is_null($serverversion)) {
57 57
     if ($bbbsession['administrator']) {
58 58
         print_error('view_error_unable_join', 'bigbluebuttonbn',
59
-            $CFG->wwwroot.'/admin/settings.php?section=modsettingbigbluebuttonbn');
59
+            $CFG->wwwroot . '/admin/settings.php?section=modsettingbigbluebuttonbn');
60 60
         exit;
61 61
     }
62 62
 
63 63
     if ($bbbsession['moderator']) {
64 64
         print_error('view_error_unable_join_teacher', 'bigbluebuttonbn',
65
-            $CFG->wwwroot.'/course/view.php?id='.$bigbluebuttonbn->course);
65
+            $CFG->wwwroot . '/course/view.php?id=' . $bigbluebuttonbn->course);
66 66
         exit;
67 67
     }
68 68
 
69 69
     print_error('view_error_unable_join_student', 'bigbluebuttonbn',
70
-        $CFG->wwwroot.'/course/view.php?id='.$bigbluebuttonbn->course);
70
+        $CFG->wwwroot . '/course/view.php?id=' . $bigbluebuttonbn->course);
71 71
     exit;
72 72
 }
73
-$bbbsession['serverversion'] = (string) $serverversion;
73
+$bbbsession['serverversion'] = (string)$serverversion;
74 74
 
75 75
 // Mark viewed by user (if required).
76 76
 $completion = new completion_info($course);
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
 
79 79
 // Print the page header.
80 80
 $PAGE->set_context($context);
81
-$PAGE->set_url($CFG->wwwroot.'/mod/bigbluebuttonbn/view.php', array('id' => $cm->id));
81
+$PAGE->set_url($CFG->wwwroot . '/mod/bigbluebuttonbn/view.php', array('id' => $cm->id));
82 82
 $PAGE->set_title(format_string($bigbluebuttonbn->name));
83 83
 $PAGE->set_cacheable(false);
84 84
 $PAGE->set_heading($course->fullname);
@@ -88,11 +88,11 @@  discard block
 block discarded – undo
88 88
 if (!has_capability('moodle/category:manage', $context) && !has_capability('mod/bigbluebuttonbn:join', $context)) {
89 89
     echo $OUTPUT->header();
90 90
     if (isguestuser()) {
91
-        echo $OUTPUT->confirm('<p>'.get_string('view_noguests', 'bigbluebuttonbn').'</p>'.get_string('liketologin'),
92
-            get_login_url(), $CFG->wwwroot.'/course/view.php?id='.$course->id);
91
+        echo $OUTPUT->confirm('<p>' . get_string('view_noguests', 'bigbluebuttonbn') . '</p>' . get_string('liketologin'),
92
+            get_login_url(), $CFG->wwwroot . '/course/view.php?id=' . $course->id);
93 93
     } else {
94
-        echo $OUTPUT->confirm('<p>'.get_string('view_nojoin', 'bigbluebuttonbn').'</p>'.get_string('liketologin'),
95
-            get_login_url(), $CFG->wwwroot.'/course/view.php?id='.$course->id);
94
+        echo $OUTPUT->confirm('<p>' . get_string('view_nojoin', 'bigbluebuttonbn') . '</p>' . get_string('liketologin'),
95
+            get_login_url(), $CFG->wwwroot . '/course/view.php?id=' . $course->id);
96 96
     }
97 97
     echo $OUTPUT->footer();
98 98
     exit;
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
 
101 101
 // Operation URLs.
102 102
 $bbbsession['bigbluebuttonbnURL'] = $CFG->wwwroot . '/mod/bigbluebuttonbn/view.php?id=' . $bbbsession['cm']->id;
103
-$bbbsession['logoutURL'] = $CFG->wwwroot . '/mod/bigbluebuttonbn/bbb_view.php?action=logout&id='.$id .
103
+$bbbsession['logoutURL'] = $CFG->wwwroot . '/mod/bigbluebuttonbn/bbb_view.php?action=logout&id=' . $id .
104 104
     '&bn=' . $bbbsession['bigbluebuttonbn']->id;
105 105
 $bbbsession['recordingReadyURL'] = $CFG->wwwroot . '/mod/bigbluebuttonbn/bbb_broker.php?action=recording_' .
106 106
     'ready&bigbluebuttonbn=' . $bbbsession['bigbluebuttonbn']->id;
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
 echo $OUTPUT->footer();
121 121
 
122 122
 // Shows version as a comment.
123
-echo '<!-- '.$bbbsession['originTag'].' -->'."\n";
123
+echo '<!-- ' . $bbbsession['originTag'] . ' -->' . "\n";
124 124
 
125 125
 // Initialize session variable used across views.
126 126
 $SESSION->bigbluebuttonbn_bbbsession = $bbbsession;
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
     $bbbsession['viewerPW'] = $bigbluebuttonbn->viewerpass;
151 151
 
152 152
     // Database info related to the activity.
153
-    $bbbsession['meetingid'] = $bbbsession['bigbluebuttonbn']->meetingid.'-'.$bbbsession['course']->id.'-'.
153
+    $bbbsession['meetingid'] = $bbbsession['bigbluebuttonbn']->meetingid . '-' . $bbbsession['course']->id . '-' .
154 154
         $bbbsession['bigbluebuttonbn']->id;
155 155
     $bbbsession['meetingname'] = $bbbsession['bigbluebuttonbn']->name;
156 156
     $bbbsession['meetingdescription'] = $bigbluebuttonbn->intro;
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
         $bbbsession['welcome'] = get_string('mod_form_field_welcome_default', 'bigbluebuttonbn');
172 172
     }
173 173
     if ($bigbluebuttonbn->record) {
174
-        $bbbsession['welcome'] .= '<br><br>'.get_string('bbbrecordwarning', 'bigbluebuttonbn');
174
+        $bbbsession['welcome'] .= '<br><br>' . get_string('bbbrecordwarning', 'bigbluebuttonbn');
175 175
     }
176 176
 
177 177
     $bbbsession['openingtime'] = $bigbluebuttonbn->openingtime;
@@ -187,7 +187,7 @@  discard block
 block discarded – undo
187 187
     $bbbsession['originServerName'] = $parsedurl['host'];
188 188
     $bbbsession['originServerUrl'] = $CFG->wwwroot;
189 189
     $bbbsession['originServerCommonName'] = '';
190
-    $bbbsession['originTag'] = 'moodle-mod_bigbluebuttonbn ('.get_config('mod_bigbluebuttonbn', 'version').')';
190
+    $bbbsession['originTag'] = 'moodle-mod_bigbluebuttonbn (' . get_config('mod_bigbluebuttonbn', 'version') . ')';
191 191
 }
192 192
 
193 193
 function bigbluebuttonbn_view_bbbsession_roles($context, $userid) {
@@ -249,9 +249,9 @@  discard block
 block discarded – undo
249 249
     }
250 250
 
251 251
     // Assign group default values.
252
-    $bbbsession['meetingid'] = $bbbsession['bigbluebuttonbn']->meetingid.'-'.$bbbsession['course']->id.'-'.
253
-        $bbbsession['bigbluebuttonbn']->id.'['.$bbbsession['group'].']';
254
-    $bbbsession['meetingname'] = $bbbsession['bigbluebuttonbn']->name.' ('.$groupname.')';
252
+    $bbbsession['meetingid'] = $bbbsession['bigbluebuttonbn']->meetingid . '-' . $bbbsession['course']->id . '-' .
253
+        $bbbsession['bigbluebuttonbn']->id . '[' . $bbbsession['group'] . ']';
254
+    $bbbsession['meetingname'] = $bbbsession['bigbluebuttonbn']->name . ' (' . $groupname . ')';
255 255
 
256 256
     if (count($groups) == 0) {
257 257
         // Only the All participants group exists.
@@ -265,12 +265,12 @@  discard block
 block discarded – undo
265 265
     }
266 266
 
267 267
     bigbluebuttonbn_view_message_box($bbbsession, get_string('view_groups_selection_warning', 'bigbluebuttonbn'), 'warning');
268
-    $urltoroot = $CFG->wwwroot.'/mod/bigbluebuttonbn/view.php?id='.$bbbsession['cm']->id;
268
+    $urltoroot = $CFG->wwwroot . '/mod/bigbluebuttonbn/view.php?id=' . $bbbsession['cm']->id;
269 269
     groups_print_activity_menu($bbbsession['cm'], $urltoroot);
270 270
     echo '<br><br>';
271 271
 }
272 272
 
273
-function bigbluebuttonbn_view_message_box(&$bbbsession, $message, $type='warning', $onlymoderator=false) {
273
+function bigbluebuttonbn_view_message_box(&$bbbsession, $message, $type = 'warning', $onlymoderator = false) {
274 274
     global $OUTPUT;
275 275
     if ($onlymoderator && !$bbbsession['moderator'] && !$bbbsession['administrator']) {
276 276
         return;
@@ -319,7 +319,7 @@  discard block
 block discarded – undo
319 319
                 'M.mod_bigbluebuttonbn.recordings.init', array($jsvars));
320 320
     }
321 321
 
322
-    echo $output.html_writer::empty_tag('br').html_writer::empty_tag('br').html_writer::empty_tag('br');
322
+    echo $output . html_writer::empty_tag('br') . html_writer::empty_tag('br') . html_writer::empty_tag('br');
323 323
     $PAGE->requires->yui_module('moodle-mod_bigbluebuttonbn-broker', 'M.mod_bigbluebuttonbn.broker.init', array($jsvars));
324 324
 }
325 325
 
@@ -343,21 +343,21 @@  discard block
 block discarded – undo
343 343
     return $output;
344 344
 }
345 345
 
346
-function bigbluebuttonbn_view_render_warning($message, $type='info', $href='', $text='', $class='') {
346
+function bigbluebuttonbn_view_render_warning($message, $type = 'info', $href = '', $text = '', $class = '') {
347 347
     global $OUTPUT;
348 348
     $output = "\n";
349 349
     // Evaluates if config_warning is enabled.
350 350
     if (empty($message)) {
351 351
         return $output;
352 352
     }
353
-    $output .= $OUTPUT->box_start('box boxalignleft adminerror alert alert-' . $type . ' alert-block fade in', 'bigbluebuttonbn_view_general_warning')."\n";
354
-    $output .= '  <button type="button" class="close" data-dismiss="alert">&times;</button>'.$message."\n";
355
-    $output .= '  <div class="singlebutton">'."\n";
353
+    $output .= $OUTPUT->box_start('box boxalignleft adminerror alert alert-' . $type . ' alert-block fade in', 'bigbluebuttonbn_view_general_warning') . "\n";
354
+    $output .= '  <button type="button" class="close" data-dismiss="alert">&times;</button>' . $message . "\n";
355
+    $output .= '  <div class="singlebutton">' . "\n";
356 356
     if (!empty($href)) {
357 357
         $output .= bigbluebutton_view_render_general_warning_button($href, $text, $class);
358 358
     }
359
-    $output .= '  </div>'."\n";
360
-    $output .= $OUTPUT->box_end()."\n";
359
+    $output .= '  </div>' . "\n";
360
+    $output .= $OUTPUT->box_end() . "\n";
361 361
     return $output;
362 362
 }
363 363
 
@@ -368,11 +368,11 @@  discard block
 block discarded – undo
368 368
     if ($class == '') {
369 369
         $class = 'btn btn-secondary';
370 370
     }
371
-    $output  = '  <form method="post" action="' . $href . '" class="form-inline">'."\n";
372
-    $output .= '      <button type="submit" class="' . $class . '"'."\n";
373
-    $output .= '          title=""'."\n";
374
-    $output .= '          >' . $text . '</button>'."\n";
375
-    $output .= '  </form>'."\n";
371
+    $output  = '  <form method="post" action="' . $href . '" class="form-inline">' . "\n";
372
+    $output .= '      <button type="submit" class="' . $class . '"' . "\n";
373
+    $output .= '          title=""' . "\n";
374
+    $output .= '          >' . $text . '</button>' . "\n";
375
+    $output .= '  </form>' . "\n";
376 376
     return $output;
377 377
 }
378 378
 
@@ -382,12 +382,12 @@  discard block
 block discarded – undo
382 382
     // JavaScript variables for room.
383 383
     $openingtime = '';
384 384
     if ($bbbsession['openingtime']) {
385
-        $openingtime = get_string('mod_form_field_openingtime', 'bigbluebuttonbn').': '.
385
+        $openingtime = get_string('mod_form_field_openingtime', 'bigbluebuttonbn') . ': ' .
386 386
             userdate($bbbsession['openingtime']);
387 387
     }
388 388
     $closingtime = '';
389 389
     if ($bbbsession['closingtime']) {
390
-        $closingtime = get_string('mod_form_field_closingtime', 'bigbluebuttonbn').': '.
390
+        $closingtime = get_string('mod_form_field_closingtime', 'bigbluebuttonbn') . ': ' .
391 391
             userdate($bbbsession['closingtime']);
392 392
     }
393 393
     $jsvars += array(
@@ -404,7 +404,7 @@  discard block
 block discarded – undo
404 404
     $output .= $OUTPUT->box_end();
405 405
 
406 406
     $output .= $OUTPUT->box_start('generalbox boxaligncenter', 'bigbluebuttonbn_view_action_button_box');
407
-    $output .= '<br><br><span id="join_button"></span>&nbsp;<span id="end_button"></span>'."\n";
407
+    $output .= '<br><br><span id="join_button"></span>&nbsp;<span id="end_button"></span>' . "\n";
408 408
     $output .= $OUTPUT->box_end();
409 409
 
410 410
     if ($activity == 'ended') {
@@ -430,7 +430,7 @@  discard block
 block discarded – undo
430 430
 
431 431
     // Get recordings.
432 432
     $recordings = array();
433
-    if ( bigbluebuttonbn_view_include_recordings($bbbsession) ) {
433
+    if (bigbluebuttonbn_view_include_recordings($bbbsession)) {
434 434
         $recordings = bigbluebuttonbn_get_recordings(
435 435
             $bbbsession['course']->id, $bigbluebuttonbnid, $showroom,
436 436
             $bbbsession['bigbluebuttonbn']->recordings_deleted
@@ -461,7 +461,7 @@  discard block
 block discarded – undo
461 461
     // If there are meetings with recordings load the data to the table.
462 462
     if ($bbbsession['bigbluebuttonbn']->recordings_html) {
463 463
         // Render a plain html table.
464
-        return bigbluebutton_output_recording_table($bbbsession, $recordings)."\n";
464
+        return bigbluebutton_output_recording_table($bbbsession, $recordings) . "\n";
465 465
     }
466 466
 
467 467
     // JavaScript variables for recordings with YUI.
@@ -481,8 +481,8 @@  discard block
 block discarded – undo
481 481
         array('type' => 'button',
482 482
               'value' => get_string('view_recording_button_import', 'bigbluebuttonbn'),
483 483
               'class' => 'btn btn-secondary',
484
-              'onclick' => 'window.location=\''.$CFG->wwwroot.'/mod/bigbluebuttonbn/import_view.php?bn='.
485
-                  $bbbsession['bigbluebuttonbn']->id.'\''));
484
+              'onclick' => 'window.location=\'' . $CFG->wwwroot . '/mod/bigbluebuttonbn/import_view.php?bn=' .
485
+                  $bbbsession['bigbluebuttonbn']->id . '\''));
486 486
     $output = html_writer::start_tag('br');
487 487
     $output .= html_writer::tag('span', $button, array('id' => 'import_recording_links_button'));
488 488
     $output .= html_writer::tag('span', '', array('id' => 'import_recording_links_table'));
@@ -497,10 +497,10 @@  discard block
 block discarded – undo
497 497
         $attributes = array('title' => $bbbsession['presentation']['name']);
498 498
         $icon = new pix_icon($bbbsession['presentation']['icon'], $bbbsession['presentation']['mimetype_description']);
499 499
 
500
-        return '<h4>'.get_string('view_section_title_presentation', 'bigbluebuttonbn').'</h4>'.
501
-                ''.$OUTPUT->action_icon($bbbsession['presentation']['url'], $icon, null, array(), false).''.
502
-                ''.$OUTPUT->action_link($bbbsession['presentation']['url'],
503
-                      $bbbsession['presentation']['name'], null, $attributes).'<br><br>';
500
+        return '<h4>' . get_string('view_section_title_presentation', 'bigbluebuttonbn') . '</h4>' .
501
+                '' . $OUTPUT->action_icon($bbbsession['presentation']['url'], $icon, null, array(), false) . '' .
502
+                '' . $OUTPUT->action_link($bbbsession['presentation']['url'],
503
+                      $bbbsession['presentation']['name'], null, $attributes) . '<br><br>';
504 504
     }
505 505
 
506 506
     return '';
Please login to merge, or discard this patch.
config-dist.php 1 patch
Indentation   +13 added lines, -13 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 '0' (which identifies the owner) and/or any of the role IDs defined in
202 202
  * Moodle (including the custom parameters). The value used will be the key for the role.
203 203
  * [owner=0|manager=1|coursecreator=2|editingteacher=3|teacher=4|student=5|guest=6|user=7|frontpage=8|ANY_CUSTOM_ROLE=xx]
@@ -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
@@ -246,7 +246,7 @@  discard block
 block discarded – undo
246 246
  * 12. GENERAL CONFIGURATION FOR RECORDINGS UI
247 247
  *
248 248
  **/
249
- /*
249
+    /*
250 250
  * When the value is set to 1 (checked) the bigbluebuttonbn resources
251 251
  * will show the recodings in an html table by default.
252 252
  * $CFG->bigbluebuttonbn['recordings_html_default'] = 0;
@@ -270,22 +270,22 @@  discard block
 block discarded – undo
270 270
  * $CFG->bigbluebuttonbn['recordings_deleted_editable'] = 0;
271 271
  */
272 272
 
273
- /*
273
+    /*
274 274
   * When the value is set to 1 (checked) the bigbluebuttonbn resources for recordings
275 275
   * will show only the imported links as part of the list.
276 276
   * $CFG->bigbluebuttonbn['recordings_imported_default'] = 0;
277 277
   */
278 278
 
279
- /*
279
+    /*
280 280
   * When the value is set to 1 (checked) the 'show only imported links'
281 281
   * capability can be enabled/disabled by the user creating or editing the resource for recordings.
282 282
   * $CFG->bigbluebuttonbn['recordings_imported_editable'] = 1;
283 283
   */
284 284
 
285
-  /*
285
+    /*
286 286
    *  CONFIGURATION FOR FEATURES OFFERED BY BN SERVERS
287 287
   ** ------------------------------------------------------------------ **/
288
-  /*
288
+    /*
289 289
    * When general_warning_message value is different than "", the string is shown
290 290
    * as a warning message to privileged users (administrators and Teachers or users allowed to edit).
291 291
    * $CFG->bigbluebuttonbn['general_warning_message'] = "This will may have recordings enabled when upgraded to premium.";
Please login to merge, or discard this patch.
db/upgrade.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -85,10 +85,10 @@
 block discarded – undo
85 85
         // Migrate settings.
86 86
         unset_config('bigbluebuttonbn_recordingtagging_default', '');
87 87
         unset_config('bigbluebuttonbn_recordingtagging_editable', '');
88
-        $cfgvalue =  get_config('', 'bigbluebuttonbn_importrecordings_from_deleted_activities_enabled');
88
+        $cfgvalue = get_config('', 'bigbluebuttonbn_importrecordings_from_deleted_activities_enabled');
89 89
         set_config('bigbluebuttonbn_importrecordings_from_deleted_enabled', $cfgvalue, '');
90 90
         unset_config('bigbluebuttonbn_importrecordings_from_deleted_activities_enabled', '');
91
-        $cfgvalue =  get_config('', 'bigbluebuttonbn_moderator_default');
91
+        $cfgvalue = get_config('', 'bigbluebuttonbn_moderator_default');
92 92
         set_config('bigbluebuttonbn_participant_moderator_default', $cfgvalue, '');
93 93
         unset_config('bigbluebuttonbn_moderator_default', '');
94 94
         // Update db version tag.
Please login to merge, or discard this patch.
mod_form.php 2 patches
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
                 'alt' => $contents,
94 94
                 'title' => $contents,
95 95
                 'src' => $jsvars['pix_icon_delete']
96
-              );
96
+                );
97 97
             $jsvars['pix_icon_delete'] = html_writer::tag('img', '', $options);
98 98
         }
99 99
         $PAGE->requires->yui_module('moodle-mod_bigbluebuttonbn-modform',
@@ -180,8 +180,8 @@  discard block
 block discarded – undo
180 180
             $this->bigbluebuttonbn_mform_add_element($mform, $field['type'], $field['name'], $field['data_type'],
181 181
                 $field['description_key'], 0, ['maxlength' => 4, 'size' => 6],
182 182
                 ['message' => get_string('mod_form_field_voicebridge_format_error', 'bigbluebuttonbn'),
183
-                 'type' => 'numeric', 'rule' => '####', 'validator' => 'server']
184
-              );
183
+                    'type' => 'numeric', 'rule' => '####', 'validator' => 'server']
184
+                );
185 185
         } else {
186 186
             $this->bigbluebuttonbn_mform_add_element($mform, $field['type'], $field['name'], $field['data_type'],
187 187
                 $field['description_key'], 0, ['maxlength' => 4, 'size' => 6]);
@@ -212,7 +212,7 @@  discard block
 block discarded – undo
212 212
 
213 213
     private function bigbluebuttonbn_mform_add_block_room_recordings($mform, $cfg) {
214 214
         $field = ['type' => 'hidden', 'name' => 'recordings_html', 'data_type' => PARAM_INT,
215
-                  'description_key' => null];
215
+                    'description_key' => null];
216 216
         if ($cfg['recordings_html_editable']) {
217 217
             $field['type'] = 'checkbox';
218 218
             $field['description_key'] = 'mod_form_field_recordings_html';
@@ -221,7 +221,7 @@  discard block
 block discarded – undo
221 221
             $field['description_key'], $cfg['recordings_html_default']);
222 222
 
223 223
         $field = ['type' => 'hidden', 'name' => 'recordings_deleted', 'data_type' => PARAM_INT,
224
-                  'description_key' => null];
224
+                    'description_key' => null];
225 225
         if ($cfg['recordings_deleted_editable']) {
226 226
             $field['type'] = 'checkbox';
227 227
             $field['description_key'] = 'mod_form_field_recordings_deleted';
@@ -230,7 +230,7 @@  discard block
 block discarded – undo
230 230
             $field['description_key'], $cfg['recordings_deleted_default']);
231 231
 
232 232
         $field = ['type' => 'hidden', 'name' => 'recordings_imported', 'data_type' => PARAM_INT,
233
-                  'description_key' => null];
233
+                    'description_key' => null];
234 234
         if ($cfg['recordings_imported_editable']) {
235 235
             $field['type'] = 'checkbox';
236 236
             $field['description_key'] = 'mod_form_field_recordings_imported';
@@ -278,14 +278,14 @@  discard block
 block discarded – undo
278 278
         $htmlselectiontype = html_writer::select($participantselection['type_options'], 'bigbluebuttonbn_participant_selection_type',
279 279
             $participantselection['type_selected'], array(),
280 280
             array('id' => 'bigbluebuttonbn_participant_selection_type',
281
-                  'onchange' => 'M.mod_bigbluebuttonbn.modform.participant_selection_set(); return 0;'));
281
+                    'onchange' => 'M.mod_bigbluebuttonbn.modform.participant_selection_set(); return 0;'));
282 282
         $htmlselectionoptions = html_writer::select($participantselection['options'], 'bigbluebuttonbn_participant_selection',
283 283
             $participantselection['selected'], array(),
284 284
             array('id' => 'bigbluebuttonbn_participant_selection', 'disabled' => 'disabled'));
285 285
         $htmlselectioninput = html_writer::tag('input', '', array('id' => 'id_addselectionid', 'type' => 'button', 'class' => 'btn btn-secondary',
286 286
             'value' => get_string('mod_form_field_participant_list_action_add', 'bigbluebuttonbn'),
287 287
             'onclick' => 'M.mod_bigbluebuttonbn.modform.participant_add(); return 0;'
288
-          ));
288
+            ));
289 289
         $htmladdparticipant = html_writer::tag('div', $htmlselectiontype . '&nbsp;&nbsp;' . $htmlselectionoptions . '&nbsp;&nbsp;' . $htmlselectioninput, null);
290 290
         $mform->addElement('html', "\n\n");
291 291
         $mform->addElement('static', 'static_add_participant', get_string('mod_form_field_participant_add', 'bigbluebuttonbn'), $htmladdparticipant);
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -26,8 +26,8 @@  discard block
 block discarded – undo
26 26
 
27 27
 defined('MOODLE_INTERNAL') || die();
28 28
 
29
-require_once(dirname(__FILE__).'/locallib.php');
30
-require_once($CFG->dirroot.'/course/moodleform_mod.php');
29
+require_once(dirname(__FILE__) . '/locallib.php');
30
+require_once($CFG->dirroot . '/course/moodleform_mod.php');
31 31
 
32 32
 class mod_bigbluebuttonbn_mod_form extends moodleform_mod {
33 33
 
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
         $serverversion = bigbluebuttonbn_get_server_version();
38 38
         if (is_null($serverversion)) {
39 39
             print_error('general_error_unable_connect', 'bigbluebuttonbn',
40
-                $CFG->wwwroot.'/admin/settings.php?section=modsettingbigbluebuttonbn');
40
+                $CFG->wwwroot . '/admin/settings.php?section=modsettingbigbluebuttonbn');
41 41
             return;
42 42
         }
43 43
         // Context.
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
                 );
111 111
                 $defaultvalues['presentation'] = $draftitemid;
112 112
             } catch (Exception $e) {
113
-                debugging('Presentation could not be loaded: '.$e->getMessage(), DEBUG_DEVELOPER);
113
+                debugging('Presentation could not be loaded: ' . $e->getMessage(), DEBUG_DEVELOPER);
114 114
                 return null;
115 115
             }
116 116
         }
@@ -325,7 +325,7 @@  discard block
 block discarded – undo
325 325
             return;
326 326
         }
327 327
         $mform->addElement($type, $name, get_string($descriptionkey, 'bigbluebuttonbn'), $options);
328
-        if (get_string_manager()->string_exists($descriptionkey.'_help', 'bigbluebuttonbn')) {
328
+        if (get_string_manager()->string_exists($descriptionkey . '_help', 'bigbluebuttonbn')) {
329 329
             $mform->addHelpButton($name, $descriptionkey, 'bigbluebuttonbn');
330 330
         }
331 331
         if (!empty($rule)) {
Please login to merge, or discard this patch.