Completed
Push — v2.3-stable ( 5e7486...b1aa06 )
by Jesus
02:40
created
backup/moodle2/backup_bigbluebuttonbn_stepslib.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
         $logs = new backup_nested_element('logs');
60 60
 
61 61
         $log = new backup_nested_element('log', array('id'), array(
62
-                'courseid', 'bigbluebuttonbnid', 'userid', 'timecreated', 'meetingid', 'log', 'meta', ));
62
+                'courseid', 'bigbluebuttonbnid', 'userid', 'timecreated', 'meetingid', 'log', 'meta',));
63 63
 
64 64
         // Build the tree.
65 65
         $bigbluebuttonbn->add_child($logs);
Please login to merge, or discard this patch.
lib.php 3 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
  * Remove this block when restored
65 65
  */
66 66
 
67
- /** @var BIGBLUEBUTTONBN_DEFAULT_SERVER_URL string of default bigbluebutton server url */
67
+    /** @var BIGBLUEBUTTONBN_DEFAULT_SERVER_URL string of default bigbluebutton server url */
68 68
 const BIGBLUEBUTTONBN_DEFAULT_SERVER_URL = 'http://test-install.blindsidenetworks.com/bigbluebutton/';
69 69
 /** @var BIGBLUEBUTTONBN_DEFAULT_SHARED_SECRET string of default bigbluebutton server shared secret */
70 70
 const BIGBLUEBUTTONBN_DEFAULT_SHARED_SECRET = '8cd8ef52e8e101574e400365b55e11a6';
@@ -367,7 +367,7 @@  discard block
 block discarded – undo
367 367
     $sql = "SELECT COUNT(*) FROM {bigbluebuttonbn_logs} ";
368 368
     $sql .= "WHERE courseid = ? AND bigbluebuttonbnid = ? AND userid = ? AND (log = ? OR log = ?)";
369 369
     $result = $DB->count_records_sql($sql, array($course->id, $bigbluebuttonbn->id, $user->id,
370
-                                              BIGBLUEBUTTONBN_LOG_EVENT_JOIN, BIGBLUEBUTTONBN_LOG_EVENT_PLAYED));
370
+                                                BIGBLUEBUTTONBN_LOG_EVENT_JOIN, BIGBLUEBUTTONBN_LOG_EVENT_PLAYED));
371 371
     return $result;
372 372
 }
373 373
 
@@ -596,12 +596,12 @@  discard block
 block discarded – undo
596 596
     $str  = '<div class="bigbluebuttonbn overview">'."\n";
597 597
     $str .= '  <div class="name">'.get_string('modulename', 'bigbluebuttonbn').':&nbsp;'."\n";
598 598
     $str .= '    <a '.$classes.'href="'.$CFG->wwwroot.'/mod/bigbluebuttonbn/view.php?id='.$bigbluebuttonbn->coursemodule.
599
-      '">'.$bigbluebuttonbn->name.'</a>'."\n";
599
+        '">'.$bigbluebuttonbn->name.'</a>'."\n";
600 600
     $str .= '  </div>'."\n";
601 601
     $str .= '  <div class="info">'.get_string($start, 'bigbluebuttonbn').': '.userdate($bigbluebuttonbn->openingtime).
602 602
         '</div>'."\n";
603 603
     $str .= '  <div class="info">'.get_string('ends_at', 'bigbluebuttonbn').': '.userdate($bigbluebuttonbn->closingtime)
604
-      .'</div>'."\n";
604
+        .'</div>'."\n";
605 605
     $str .= '</div>'."\n";
606 606
     return $str;
607 607
 }
@@ -842,7 +842,7 @@  discard block
 block discarded – undo
842 842
             $bigbluebuttonbn->coursemodule,
843 843
             'bigbluebuttonbn',
844 844
             $bigbluebuttonbn->id, $bigbluebuttonbn->completionexpected
845
-          );
845
+            );
846 846
     }
847 847
 }
848 848
 
Please login to merge, or discard this patch.
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
  * @uses FEATURE_GRADE_OUTCOMES
102 102
  * @uses FEATURE_SHOW_DESCRIPTION
103 103
  * @param string $feature
104
- * @return mixed True if yes (some features may use other values)
104
+ * @return null|boolean True if yes (some features may use other values)
105 105
  */
106 106
 function bigbluebuttonbn_supports($feature) {
107 107
     if (!$feature) {
@@ -220,7 +220,7 @@  discard block
 block discarded – undo
220 220
  *
221 221
  * @param object $bigbluebuttonbn Id of the module instance
222 222
  *
223
- * @return bool Success/Failure
223
+ * @return boolean|null Success/Failure
224 224
  */
225 225
 function bigbluebuttonbn_delete_instance_log($bigbluebuttonbn) {
226 226
     global $DB;
@@ -241,7 +241,7 @@  discard block
 block discarded – undo
241 241
  * @param object $mod
242 242
  * @param object $bigbluebuttonbn
243 243
  *
244
- * @return bool
244
+ * @return string
245 245
  */
246 246
 function bigbluebuttonbn_user_outline($course, $user, $mod, $bigbluebuttonbn) {
247 247
     if ($completed = bigbluebuttonbn_user_complete($course, $user, $mod, $bigbluebuttonbn)) {
@@ -783,7 +783,7 @@  discard block
 block discarded – undo
783 783
  * @param stdClass $context       context object
784 784
  * @param string   $filearea      file area
785 785
  *
786
- * @return false|null false if file not valid
786
+ * @return boolean false if file not valid
787 787
  */
788 788
 function bigbluebuttonbn_pluginfile_valid($context, $filearea) {
789 789
 
Please login to merge, or discard this patch.
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
     // Update a record.
172 172
     $DB->update_record('bigbluebuttonbn', $bigbluebuttonbn);
173 173
     // Get the meetingid column in the bigbluebuttonbn table.
174
-    $bigbluebuttonbn->meetingid = (string)$DB->get_field('bigbluebuttonbn', 'meetingid', array('id' => $bigbluebuttonbn->id));
174
+    $bigbluebuttonbn->meetingid = (string) $DB->get_field('bigbluebuttonbn', 'meetingid', array('id' => $bigbluebuttonbn->id));
175 175
     // Log update action.
176 176
     bigbluebuttonbn_log($bigbluebuttonbn, BIGBLUEBUTTONBN_LOG_EVENT_EDIT);
177 177
     // Complete the process.
@@ -225,9 +225,9 @@  discard block
 block discarded – undo
225 225
 function bigbluebuttonbn_delete_instance_log($bigbluebuttonbn) {
226 226
     global $DB;
227 227
     $sql  = "SELECT * FROM {bigbluebuttonbn_logs} ";
228
-    $sql .= "WHERE bigbluebuttonbnid = ? AND log = ? AND ". $DB->sql_compare_text('meta') . " = ?";
228
+    $sql .= "WHERE bigbluebuttonbnid = ? AND log = ? AND ".$DB->sql_compare_text('meta')." = ?";
229 229
     $logs = $DB->get_records_sql($sql, array($bigbluebuttonbn->id, BIGBLUEBUTTONBN_LOG_EVENT_CREATE, "{\"record\":true}"));
230
-    $meta = "{\"has_recordings\":" . empty($logs) ? "true" : "false" . "}";
230
+    $meta = "{\"has_recordings\":".empty($logs) ? "true" : "false"."}";
231 231
     bigbluebuttonbn_log($bigbluebuttonbn, BIGBLUEBUTTONBN_LOG_EVENT_DELETE, [], $meta);
232 232
 }
233 233
 
@@ -268,12 +268,12 @@  discard block
 block discarded – undo
268 268
     if (is_object($courseorid)) {
269 269
         $course = $courseorid;
270 270
     } else {
271
-        $course = (object)array('id' => $courseorid);
271
+        $course = (object) array('id' => $courseorid);
272 272
     }
273 273
     if (is_object($userorid)) {
274 274
         $user = $userorid;
275 275
     } else {
276
-        $user = (object)array('id' => $userorid);
276
+        $user = (object) array('id' => $userorid);
277 277
     }
278 278
     $sql = "SELECT COUNT(*) FROM {bigbluebuttonbn_logs} ";
279 279
     $sql .= "WHERE courseid = ? AND bigbluebuttonbnid = ? AND userid = ? AND (log = ? OR log = ?)";
@@ -299,7 +299,7 @@  discard block
 block discarded – undo
299 299
 function bigbluebuttonbn_reset_course_items() {
300 300
     $items = array("events" => 0, "tags" => 0, "logs" => 0);
301 301
     // Include recordings only if enabled.
302
-    if ((boolean)\mod_bigbluebuttonbn\locallib\config::recordings_enabled()) {
302
+    if ((boolean) \mod_bigbluebuttonbn\locallib\config::recordings_enabled()) {
303 303
         $items["recordings"] = 0;
304 304
     }
305 305
     return $items;
@@ -567,7 +567,7 @@  discard block
 block discarded – undo
567 567
 function bigbluebuttonbn_process_pre_save_instance(&$bigbluebuttonbn) {
568 568
     require_once(__DIR__.'/locallib.php');
569 569
     $bigbluebuttonbn->timemodified = time();
570
-    if ((integer)$bigbluebuttonbn->instance == 0) {
570
+    if ((integer) $bigbluebuttonbn->instance == 0) {
571 571
         $bigbluebuttonbn->meetingid = 0;
572 572
         $bigbluebuttonbn->timecreated = time();
573 573
         $bigbluebuttonbn->timemodified = 0;
@@ -992,7 +992,7 @@  discard block
 block discarded – undo
992 992
         \core_calendar\action_factory $factory) {
993 993
     global $CFG, $DB;
994 994
 
995
-    require_once($CFG->dirroot . '/mod/bigbluebuttonbn/locallib.php');
995
+    require_once($CFG->dirroot.'/mod/bigbluebuttonbn/locallib.php');
996 996
 
997 997
     // Get mod info.
998 998
     $cm = get_fast_modinfo($event->courseid)->instances['bigbluebuttonbn'][$event->instance];
Please login to merge, or discard this patch.
config-dist.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
  * recordings from a different activity even from a different course.
104 104
  **/
105 105
 
106
- /*
106
+    /*
107 107
  * When the value is set to 1 (checked) the bigbluebuttonbn rooms or
108 108
  * activities will have the 'import recordings' capability enabled.
109 109
  * $CFG->bigbluebuttonbn['importrecordings_enabled'] = 0;
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
  * 'Join session' button enabled
125 125
  **/
126 126
 
127
- /*
127
+    /*
128 128
  * When the value is set to 1 (checked) the bigbluebuttonbn rooms or
129 129
  * activities will have the 'wait for moderator' capability enabled by
130 130
  * default.
@@ -361,27 +361,27 @@  discard block
 block discarded – undo
361 361
  * $CFG->bigbluebuttonbn['general_warning_message'] = "Would you like to record your BigBlueButton sessions for later viewing? ";
362 362
  */
363 363
 
364
- /*
364
+    /*
365 365
  * The warning box is always shown to administrators, but it is also possible to define other roles
366 366
  * to whom the it will be shown. The roles are based on the shortnames defined by Moodle:
367 367
  *     'manager,coursecreator,editingteacher,teacher,student,guest,user,frontpage'
368 368
  * $CFG->bigbluebuttonbn['general_warning_roles'] = 'editingteacher,teacher';
369 369
  */
370 370
 
371
- /*
371
+    /*
372 372
  * As the general_warning_message is shown in a box, its type can be defined with general_warning_type
373 373
  * The default type is 'info' which is normaly rendered in blue when using a bootstrap theme.
374 374
  * All the modifiers for boxed in bootstrap can be used [info|success|warning|danger].
375 375
  * $CFG->bigbluebuttonbn['general_warning_box_type'] = 'info';
376 376
  */
377 377
 
378
- /*
378
+    /*
379 379
  * Additionally, when general_warning_button_href value is different than "", a button
380 380
  * can also be shown right after the message.
381 381
  * $CFG->bigbluebuttonbn['general_warning_button_href'] = "http://blindsidenetworks.com/";
382 382
  */
383 383
 
384
- /*
384
+    /*
385 385
  * Finally, the text and class for the button can be modified
386 386
  * $CFG->bigbluebuttonbn['general_warning_button_text'] = "Upgrade your site";
387 387
  * $CFG->bigbluebuttonbn['general_warning_button_class'] = "btn btn-primary";
Please login to merge, or discard this patch.
import_view.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
     print_error('view_error_invalid_session', plugin::COMPONENT);
48 48
 }
49 49
 
50
-if (!(boolean)\mod_bigbluebuttonbn\locallib\config::importrecordings_enabled()) {
50
+if (!(boolean) \mod_bigbluebuttonbn\locallib\config::importrecordings_enabled()) {
51 51
     print_error('view_message_importrecordings_disabled', plugin::COMPONENT);
52 52
 }
53 53
 
Please login to merge, or discard this patch.
mod_form.php 2 patches
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -309,8 +309,8 @@  discard block
 block discarded – undo
309 309
             $this->bigbluebuttonbn_mform_add_element($mform, $field['type'], $field['name'], $field['data_type'],
310 310
                 $field['description_key'], 0, ['maxlength' => 4, 'size' => 6],
311 311
                 ['message' => get_string('mod_form_field_voicebridge_format_error', 'bigbluebuttonbn'),
312
-                 'type' => 'numeric', 'rule' => '####', 'validator' => 'server']
313
-              );
312
+                    'type' => 'numeric', 'rule' => '####', 'validator' => 'server']
313
+                );
314 314
         } else {
315 315
             $this->bigbluebuttonbn_mform_add_element($mform, $field['type'], $field['name'], $field['data_type'],
316 316
                 $field['description_key'], 0, ['maxlength' => 4, 'size' => 6]);
@@ -380,7 +380,7 @@  discard block
 block discarded – undo
380 380
     private function bigbluebuttonbn_mform_add_block_room_recordings(&$mform, $cfg) {
381 381
         $recordingsettings = false;
382 382
         $field = ['type' => 'hidden', 'name' => 'recordings_html', 'data_type' => PARAM_INT,
383
-                  'description_key' => null];
383
+                    'description_key' => null];
384 384
         if ($cfg['recordings_html_editable']) {
385 385
             $field['type'] = 'checkbox';
386 386
             $field['description_key'] = 'mod_form_field_recordings_html';
@@ -389,7 +389,7 @@  discard block
 block discarded – undo
389 389
         $this->bigbluebuttonbn_mform_add_element($mform, $field['type'], $field['name'], $field['data_type'],
390 390
             $field['description_key'], $cfg['recordings_html_default']);
391 391
         $field = ['type' => 'hidden', 'name' => 'recordings_deleted', 'data_type' => PARAM_INT,
392
-                  'description_key' => null];
392
+                    'description_key' => null];
393 393
         if ($cfg['recordings_deleted_editable']) {
394 394
             $field['type'] = 'checkbox';
395 395
             $field['description_key'] = 'mod_form_field_recordings_deleted';
@@ -398,7 +398,7 @@  discard block
 block discarded – undo
398 398
         $this->bigbluebuttonbn_mform_add_element($mform, $field['type'], $field['name'], $field['data_type'],
399 399
             $field['description_key'], $cfg['recordings_deleted_default']);
400 400
         $field = ['type' => 'hidden', 'name' => 'recordings_imported', 'data_type' => PARAM_INT,
401
-                  'description_key' => null];
401
+                    'description_key' => null];
402 402
         if ($cfg['importrecordings_enabled'] && $cfg['recordings_imported_editable']) {
403 403
             $field['type'] = 'checkbox';
404 404
             $field['description_key'] = 'mod_form_field_recordings_imported';
@@ -407,7 +407,7 @@  discard block
 block discarded – undo
407 407
         $this->bigbluebuttonbn_mform_add_element($mform, $field['type'], $field['name'], $field['data_type'],
408 408
             $field['description_key'], $cfg['recordings_imported_default']);
409 409
         $field = ['type' => 'hidden', 'name' => 'recordings_preview', 'data_type' => PARAM_INT,
410
-                  'description_key' => null];
410
+                    'description_key' => null];
411 411
         if ($cfg['recordings_preview_editable']) {
412 412
             $field['type'] = 'checkbox';
413 413
             $field['description_key'] = 'mod_form_field_recordings_preview';
@@ -484,7 +484,7 @@  discard block
 block discarded – undo
484 484
         $htmlselectiontype = html_writer::select($participantselection['type_options'],
485 485
             'bigbluebuttonbn_participant_selection_type', $participantselection['type_selected'], array(),
486 486
             array('id' => 'bigbluebuttonbn_participant_selection_type',
487
-                  'onchange' => 'M.mod_bigbluebuttonbn.modform.participantSelectionSet(); return 0;'));
487
+                    'onchange' => 'M.mod_bigbluebuttonbn.modform.participantSelectionSet(); return 0;'));
488 488
         $htmlselectionoptions = html_writer::select($participantselection['options'], 'bigbluebuttonbn_participant_selection',
489 489
             $participantselection['selected'], array(),
490 490
             array('id' => 'bigbluebuttonbn_participant_selection', 'disabled' => 'disabled'));
@@ -492,7 +492,7 @@  discard block
 block discarded – undo
492 492
             'type' => 'button', 'class' => 'btn btn-secondary',
493 493
             'value' => get_string('mod_form_field_participant_list_action_add', 'bigbluebuttonbn'),
494 494
             'onclick' => 'M.mod_bigbluebuttonbn.modform.participantAdd(); return 0;'
495
-          ));
495
+            ));
496 496
         $htmladdparticipant = html_writer::tag('div',
497 497
             $htmlselectiontype . '&nbsp;&nbsp;' . $htmlselectionoptions . '&nbsp;&nbsp;' . $htmlselectioninput, null);
498 498
         $mform->addElement('html', "\n\n");
@@ -534,9 +534,9 @@  discard block
 block discarded – undo
534 534
             $field['type'] = 'select';
535 535
             $field['data_type'] = PARAM_TEXT;
536 536
             $field['description_key'] = 'mod_form_field_block_clienttype';
537
-             $choices = array(BIGBLUEBUTTON_CLIENTTYPE_FLASH => get_string('mod_form_block_clienttype_flash', 'bigbluebuttonbn'),
538
-                             BIGBLUEBUTTON_CLIENTTYPE_HTML5 => get_string('mod_form_block_clienttype_html5', 'bigbluebuttonbn'));
539
-             $mform->addElement('header', 'clienttypeselection', get_string('mod_form_block_clienttype', 'bigbluebuttonbn'));
537
+                $choices = array(BIGBLUEBUTTON_CLIENTTYPE_FLASH => get_string('mod_form_block_clienttype_flash', 'bigbluebuttonbn'),
538
+                                BIGBLUEBUTTON_CLIENTTYPE_HTML5 => get_string('mod_form_block_clienttype_html5', 'bigbluebuttonbn'));
539
+                $mform->addElement('header', 'clienttypeselection', get_string('mod_form_block_clienttype', 'bigbluebuttonbn'));
540 540
             $this->bigbluebuttonbn_mform_add_element($mform, $field['type'], $field['name'], $field['data_type'],
541 541
                                     $field['description_key'], $cfg['clienttype_default'], $choices);
542 542
             return;
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -106,8 +106,8 @@  discard block
 block discarded – undo
106 106
         $PAGE->requires->strings_for_js(array_keys(bigbluebuttonbn_get_strings_for_js()), 'bigbluebuttonbn');
107 107
         $jsvars['participantData'] = bigbluebuttonbn_get_participant_data($context);
108 108
         $jsvars['participantList'] = $participantlist;
109
-        $jsvars['iconsEnabled'] = (boolean)$cfg['recording_icons_enabled'];
110
-        $jsvars['pixIconDelete'] = (string)$OUTPUT->pix_icon('t/delete', get_string('delete'), 'moodle');
109
+        $jsvars['iconsEnabled'] = (boolean) $cfg['recording_icons_enabled'];
110
+        $jsvars['pixIconDelete'] = (string) $OUTPUT->pix_icon('t/delete', get_string('delete'), 'moodle');
111 111
         $PAGE->requires->yui_module('moodle-mod_bigbluebuttonbn-modform',
112 112
             'M.mod_bigbluebuttonbn.modform.init', array($jsvars));
113 113
     }
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
      * @return void
166 166
      */
167 167
     private function bigbluebuttonbn_mform_add_block_profiles(&$mform, $profiles) {
168
-        if ((boolean)\mod_bigbluebuttonbn\locallib\config::recordings_enabled()) {
168
+        if ((boolean) \mod_bigbluebuttonbn\locallib\config::recordings_enabled()) {
169 169
             $mform->addElement('select', 'type', get_string('mod_form_field_instanceprofiles', 'bigbluebuttonbn'),
170 170
                 bigbluebuttonbn_get_instance_profiles_array($profiles),
171 171
                 array('onchange' => 'M.mod_bigbluebuttonbn.modform.updateInstanceTypeProfile(this);'));
@@ -404,7 +404,7 @@  discard block
 block discarded – undo
404 404
             'onclick' => 'M.mod_bigbluebuttonbn.modform.participantAdd(); return 0;'
405 405
           ));
406 406
         $htmladdparticipant = html_writer::tag('div',
407
-            $htmlselectiontype . '&nbsp;&nbsp;' . $htmlselectionoptions . '&nbsp;&nbsp;' . $htmlselectioninput, null);
407
+            $htmlselectiontype.'&nbsp;&nbsp;'.$htmlselectionoptions.'&nbsp;&nbsp;'.$htmlselectioninput, null);
408 408
         $mform->addElement('html', "\n\n");
409 409
         $mform->addElement('static', 'static_add_participant',
410 410
             get_string('mod_form_field_participant_add', 'bigbluebuttonbn'), $htmladdparticipant);
Please login to merge, or discard this patch.
view.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
 bigbluebuttonbn_view_bbbsession_set($PAGE->context, $bbbsession);
59 59
 
60 60
 // Validates if the BigBlueButton server is working.
61
-$serverversion = bigbluebuttonbn_get_server_version();  // In locallib.
61
+$serverversion = bigbluebuttonbn_get_server_version(); // In locallib.
62 62
 if ($serverversion === null) {
63 63
     $errmsg = 'view_error_unable_join_student';
64 64
     $errurl = '/course/view.php';
Please login to merge, or discard this patch.
db/mobile.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
             'coursebigbluebuttonbn' => array( // Handler unique name (can be anything).
32 32
                 'displaydata' => array(
33 33
                     'title' => 'pluginname',
34
-                    'icon' => $CFG->wwwroot . '/mod/bigbluebuttonbn/pix/icon.gif',
34
+                    'icon' => $CFG->wwwroot.'/mod/bigbluebuttonbn/pix/icon.gif',
35 35
                     'class' => '',
36 36
                 ),
37 37
                 'delegate' => 'CoreCourseModuleDelegate', // Delegate (where to display the link to the add-on).
Please login to merge, or discard this patch.
classes/locallib/notifier.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
 defined('MOODLE_INTERNAL') || die();
29 29
 
30
-require_once($CFG->dirroot . '/mod/bigbluebuttonbn/locallib.php');
30
+require_once($CFG->dirroot.'/mod/bigbluebuttonbn/locallib.php');
31 31
 
32 32
 /**
33 33
  * Helper class for sending notifications.
Please login to merge, or discard this patch.
classes/locallib/config.php 2 patches
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
 
28 28
 defined('MOODLE_INTERNAL') || die();
29 29
 
30
-require_once($CFG->dirroot . '/mod/bigbluebuttonbn/locallib.php');
30
+require_once($CFG->dirroot.'/mod/bigbluebuttonbn/locallib.php');
31 31
 
32 32
 /**
33 33
  * Handles the global configuration based on config.php.
@@ -128,10 +128,10 @@  discard block
 block discarded – undo
128 128
     public static function get($setting) {
129 129
         global $CFG;
130 130
         if (isset($CFG->bigbluebuttonbn[$setting])) {
131
-            return (string)$CFG->bigbluebuttonbn[$setting];
131
+            return (string) $CFG->bigbluebuttonbn[$setting];
132 132
         }
133 133
         if (isset($CFG->{'bigbluebuttonbn_'.$setting})) {
134
-            return (string)$CFG->{'bigbluebuttonbn_'.$setting};
134
+            return (string) $CFG->{'bigbluebuttonbn_'.$setting};
135 135
         }
136 136
         return self::defaultvalue($setting);
137 137
     }
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
      * @return boolean
143 143
      */
144 144
     public static function recordings_enabled() {
145
-        return (boolean)self::get('recordings_enabled');
145
+        return (boolean) self::get('recordings_enabled');
146 146
     }
147 147
 
148 148
     /**
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
      * @return boolean
152 152
      */
153 153
     public static function importrecordings_enabled() {
154
-        return (boolean)self::get('importrecordings_enabled');
154
+        return (boolean) self::get('importrecordings_enabled');
155 155
     }
156 156
 
157 157
     /**
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
      * @return boolean
161 161
      */
162 162
     public static function clienttype_enabled() {
163
-        return (boolean)self::get('clienttype_enabled');
163
+        return (boolean) self::get('clienttype_enabled');
164 164
     }
165 165
 
166 166
     /**
Please login to merge, or discard this patch.
Indentation   +37 added lines, -37 removed lines patch added patch discarded remove patch
@@ -171,42 +171,42 @@
 block discarded – undo
171 171
      */
172 172
     public static function get_options() {
173 173
         return array(
174
-               'version_major' => self::get_moodle_version_major(),
175
-               'voicebridge_editable' => self::get('voicebridge_editable'),
176
-               'importrecordings_enabled' => self::get('importrecordings_enabled'),
177
-               'importrecordings_from_deleted_enabled' => self::get('importrecordings_from_deleted_enabled'),
178
-               'waitformoderator_default' => self::get('waitformoderator_default'),
179
-               'waitformoderator_editable' => self::get('waitformoderator_editable'),
180
-               'userlimit_default' => self::get('userlimit_default'),
181
-               'userlimit_editable' => self::get('userlimit_editable'),
182
-               'preuploadpresentation_enabled' => self::get('preuploadpresentation_enabled'),
183
-               'sendnotifications_enabled' => self::get('sendnotifications_enabled'),
184
-               'recordings_enabled' => self::get('recordings_enabled'),
185
-               'recordings_html_default' => self::get('recordings_html_default'),
186
-               'recordings_html_editable' => self::get('recordings_html_editable'),
187
-               'recordings_deleted_default' => self::get('recordings_deleted_default'),
188
-               'recordings_deleted_editable' => self::get('recordings_deleted_editable'),
189
-               'recordings_imported_default' => self::get('recordings_imported_default'),
190
-               'recordings_imported_editable' => self::get('recordings_imported_editable'),
191
-               'recordings_preview_default' => self::get('recordings_preview_default'),
192
-               'recordings_preview_editable' => self::get('recordings_preview_editable'),
193
-               'recording_default' => self::get('recording_default'),
194
-               'recording_editable' => self::get('recording_editable'),
195
-               'recording_icons_enabled' => self::get('recording_icons_enabled'),
196
-               'recording_all_from_start_default' => self::get('recording_all_from_start_default'),
197
-               'recording_all_from_start_editable' => self::get('recording_all_from_start_editable'),
198
-               'recording_hide_button_default' => self::get('recording_hide_button_default'),
199
-               'recording_hide_button_editable' => self::get('recording_hide_button_editable'),
200
-               'general_warning_message' => self::get('general_warning_message'),
201
-               'general_warning_box_type' => self::get('general_warning_box_type'),
202
-               'general_warning_button_text' => self::get('general_warning_button_text'),
203
-               'general_warning_button_href' => self::get('general_warning_button_href'),
204
-               'general_warning_button_class' => self::get('general_warning_button_class'),
205
-               'clienttype_enabled' => self::get('clienttype_enabled'),
206
-               'clienttype_editable' => self::get('clienttype_editable'),
207
-               'clienttype_default' => self::get('clienttype_default'),
208
-               'muteonstart_editable' => self::get('muteonstart_editable'),
209
-               'muteonstart_default' => self::get('muteonstart_default'),
210
-          );
174
+                'version_major' => self::get_moodle_version_major(),
175
+                'voicebridge_editable' => self::get('voicebridge_editable'),
176
+                'importrecordings_enabled' => self::get('importrecordings_enabled'),
177
+                'importrecordings_from_deleted_enabled' => self::get('importrecordings_from_deleted_enabled'),
178
+                'waitformoderator_default' => self::get('waitformoderator_default'),
179
+                'waitformoderator_editable' => self::get('waitformoderator_editable'),
180
+                'userlimit_default' => self::get('userlimit_default'),
181
+                'userlimit_editable' => self::get('userlimit_editable'),
182
+                'preuploadpresentation_enabled' => self::get('preuploadpresentation_enabled'),
183
+                'sendnotifications_enabled' => self::get('sendnotifications_enabled'),
184
+                'recordings_enabled' => self::get('recordings_enabled'),
185
+                'recordings_html_default' => self::get('recordings_html_default'),
186
+                'recordings_html_editable' => self::get('recordings_html_editable'),
187
+                'recordings_deleted_default' => self::get('recordings_deleted_default'),
188
+                'recordings_deleted_editable' => self::get('recordings_deleted_editable'),
189
+                'recordings_imported_default' => self::get('recordings_imported_default'),
190
+                'recordings_imported_editable' => self::get('recordings_imported_editable'),
191
+                'recordings_preview_default' => self::get('recordings_preview_default'),
192
+                'recordings_preview_editable' => self::get('recordings_preview_editable'),
193
+                'recording_default' => self::get('recording_default'),
194
+                'recording_editable' => self::get('recording_editable'),
195
+                'recording_icons_enabled' => self::get('recording_icons_enabled'),
196
+                'recording_all_from_start_default' => self::get('recording_all_from_start_default'),
197
+                'recording_all_from_start_editable' => self::get('recording_all_from_start_editable'),
198
+                'recording_hide_button_default' => self::get('recording_hide_button_default'),
199
+                'recording_hide_button_editable' => self::get('recording_hide_button_editable'),
200
+                'general_warning_message' => self::get('general_warning_message'),
201
+                'general_warning_box_type' => self::get('general_warning_box_type'),
202
+                'general_warning_button_text' => self::get('general_warning_button_text'),
203
+                'general_warning_button_href' => self::get('general_warning_button_href'),
204
+                'general_warning_button_class' => self::get('general_warning_button_class'),
205
+                'clienttype_enabled' => self::get('clienttype_enabled'),
206
+                'clienttype_editable' => self::get('clienttype_editable'),
207
+                'clienttype_default' => self::get('clienttype_default'),
208
+                'muteonstart_editable' => self::get('muteonstart_editable'),
209
+                'muteonstart_default' => self::get('muteonstart_default'),
210
+            );
211 211
     }
212 212
 }
Please login to merge, or discard this patch.