Completed
Push — master ( e871cd...770f64 )
by Jesus
02:14
created
import_view.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -96,8 +96,8 @@
 block discarded – undo
96 96
     $output .= html_writer::start_tag('br');
97 97
     $output .= html_writer::tag('input', '',
98 98
         array('type' => 'button', 'class' => 'btn btn-secondary',
99
-              'value' => get_string('view_recording_button_return', 'bigbluebuttonbn'),
100
-              'onclick' => 'window.location=\''.$CFG->wwwroot.'/mod/bigbluebuttonbn/view.php?id='.$cm->id.'\''));
99
+                'value' => get_string('view_recording_button_return', 'bigbluebuttonbn'),
100
+                'onclick' => 'window.location=\''.$CFG->wwwroot.'/mod/bigbluebuttonbn/view.php?id='.$cm->id.'\''));
101 101
 
102 102
     // JavaScript for locales.
103 103
     $PAGE->requires->strings_for_js(array_keys(bigbluebuttonbn_get_strings_for_js()), 'bigbluebuttonbn');
Please login to merge, or discard this patch.
bbb_broker.php 1 patch
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.
classes/locallib/config.php 1 patch
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.
view.php 1 patch
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.
bbb_view.php 1 patch
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -195,10 +195,10 @@  discard block
 block discarded – undo
195 195
 
196 196
 function bigbluebutton_bbb_view_create_meeting_data(&$bbbsession, $bigbluebuttonbn) {
197 197
     $data = ['meetingID' => $bbbsession['meetingid'],
198
-              'name' => $bbbsession['meetingname'],
199
-              'attendeePW' => $bbbsession['viewerPW'],
200
-              'moderatorPW' => $bbbsession['modPW'],
201
-              'logoutURL' => $bbbsession['logoutURL'],
198
+                'name' => $bbbsession['meetingname'],
199
+                'attendeePW' => $bbbsession['viewerPW'],
200
+                'moderatorPW' => $bbbsession['modPW'],
201
+                'logoutURL' => $bbbsession['logoutURL'],
202 202
             ];
203 203
     $data['record'] = bigbluebutton_bbb_view_create_meeting_data_record($bbbsession['record']);
204 204
     $data['welcome'] = trim($bbbsession['welcome']);
@@ -212,7 +212,7 @@  discard block
 block discarded – undo
212 212
             '%duration%',
213 213
             (string) $durationtime,
214 214
             get_string('bbbdurationwarning', 'bigbluebuttonbn')
215
-          );
215
+            );
216 216
     }
217 217
 
218 218
     $voicebridge = intval($bbbsession['voicebridge']);
@@ -246,14 +246,14 @@  discard block
 block discarded – undo
246 246
     global $USER;
247 247
 
248 248
     $metadata = ['bbb-origin' => $bbbsession['origin'],
249
-                 'bbb-origin-version' => $bbbsession['originVersion'],
250
-                 'bbb-origin-server-name' => $bbbsession['originServerName'],
251
-                 'bbb-origin-server-common-name' => $bbbsession['originServerCommonName'],
252
-                 'bbb-origin-tag' => $bbbsession['originTag'],
253
-                 'bbb-context' => $bbbsession['course']->fullname,
254
-                 'bbb-recording-name' => $bbbsession['meetingname'],
255
-                 'bbb-recording-description' => bigbluebuttonbn_html2text($bbbsession['meetingdescription'], 64),
256
-                 'bbb-recording-tags' => bigbluebuttonbn_get_tags($bbbsession['cm']->id), // Same as $id.
249
+                    'bbb-origin-version' => $bbbsession['originVersion'],
250
+                    'bbb-origin-server-name' => $bbbsession['originServerName'],
251
+                    'bbb-origin-server-common-name' => $bbbsession['originServerCommonName'],
252
+                    'bbb-origin-tag' => $bbbsession['originTag'],
253
+                    'bbb-context' => $bbbsession['course']->fullname,
254
+                    'bbb-recording-name' => $bbbsession['meetingname'],
255
+                    'bbb-recording-description' => bigbluebuttonbn_html2text($bbbsession['meetingdescription'], 64),
256
+                    'bbb-recording-tags' => bigbluebuttonbn_get_tags($bbbsession['cm']->id), // Same as $id.
257 257
                 ];
258 258
 
259 259
     if ((boolean)\mod_bigbluebuttonbn\locallib\config::get('recordingstatus_enabled')) {
@@ -261,8 +261,8 @@  discard block
 block discarded – undo
261 261
             array(
262 262
                 'email' => array('"' . fullname($USER) . '" <' . $USER->email . '>'),
263 263
                 'context' => $bbbsession['bigbluebuttonbnURL']
264
-              )
265
-          );
264
+                )
265
+            );
266 266
     }
267 267
     if ((boolean)\mod_bigbluebuttonbn\locallib\config::get('recordingready_enabled')) {
268 268
         $metadata['bn-recording-ready-url'] = $bbbsession['recordingReadyURL'];
Please login to merge, or discard this patch.
lib.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -205,9 +205,9 @@  discard block
 block discarded – undo
205 205
 function bigbluebuttonbn_user_outline($course, $user, $mod, $bigbluebuttonbn) {
206 206
     global $DB;
207 207
     $completed = $DB->count_records('bigbluebuttonbn_logs', array('courseid' => $course->id,
208
-                                                              'bigbluebuttonbnid' => $bigbluebuttonbn->id,
209
-                                                              'userid' => $user->id,
210
-                                                              'log' => 'Join', ), '*');
208
+                                                                'bigbluebuttonbnid' => $bigbluebuttonbn->id,
209
+                                                                'userid' => $user->id,
210
+                                                                'log' => 'Join', ), '*');
211 211
     if ($completed > 0) {
212 212
         return fullname($user).' '.get_string('view_message_has_joined', 'bigbluebuttonbn').' '.
213 213
             get_string('view_message_session_for', 'bigbluebuttonbn').' '.(string) $completed.' '.
@@ -225,9 +225,9 @@  discard block
 block discarded – undo
225 225
 function bigbluebuttonbn_user_complete($course, $user, $mod, $bigbluebuttonbn) {
226 226
     global $DB;
227 227
     $completed = $DB->count_recorda('bigbluebuttonbn_logs', array('courseid' => $course->id,
228
-                                                              'bigbluebuttonbnid' => $bigbluebuttonbn->id,
229
-                                                              'userid' => $user->id,
230
-                                                              'log' => 'Join', ), '*', IGNORE_MULTIPLE);
228
+                                                                'bigbluebuttonbnid' => $bigbluebuttonbn->id,
229
+                                                                'userid' => $user->id,
230
+                                                                'log' => 'Join', ), '*', IGNORE_MULTIPLE);
231 231
     return $completed > 0;
232 232
 }
233 233
 
@@ -299,12 +299,12 @@  discard block
 block discarded – undo
299 299
     $str = '<div class="bigbluebuttonbn overview">'."\n";
300 300
     $str .= '  <div class="name">'.get_string('modulename', 'bigbluebuttonbn').':&nbsp;'."\n";
301 301
     $str .= '    <a '.$classes.'href="'.$CFG->wwwroot.'/mod/bigbluebuttonbn/view.php?id='.$bigbluebuttonbn->coursemodule.
302
-      '">'.$bigbluebuttonbn->name.'</a>'."\n";
302
+        '">'.$bigbluebuttonbn->name.'</a>'."\n";
303 303
     $str .= '  </div>'."\n";
304 304
     $str .= '  <div class="info">'.get_string($start, 'bigbluebuttonbn').': '.userdate($bigbluebuttonbn->openingtime).
305 305
         '</div>'."\n";
306 306
     $str .= '  <div class="info">'.get_string('ends_at', 'bigbluebuttonbn').': '.userdate($bigbluebuttonbn->closingtime)
307
-      .'</div>'."\n";
307
+        .'</div>'."\n";
308 308
     $str .= '</div>'."\n";
309 309
 
310 310
     return $str;
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.
mod_form.php 1 patch
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.
locallib.php 1 patch
Indentation   +55 added lines, -55 removed lines patch added patch discarded remove patch
@@ -94,9 +94,9 @@  discard block
 block discarded – undo
94 94
  */
95 95
 function bigbluebuttonbn_get_join_url($meetingid, $username, $pw, $logouturl, $configtoken = null, $userid = null) {
96 96
     $data = ['meetingID' => $meetingid,
97
-              'fullName' => $username,
98
-              'password' => $pw,
99
-              'logoutURL' => $logouturl,
97
+                'fullName' => $username,
98
+                'password' => $pw,
99
+                'logoutURL' => $logouturl,
100 100
             ];
101 101
     if (!is_null($configtoken)) {
102 102
         $data['configToken'] = $configtoken;
@@ -177,23 +177,23 @@  discard block
 block discarded – undo
177 177
 function bigbluebuttonbn_get_meeting_info_array($meetingid) {
178 178
     $xml = bigbluebuttonbn_wrap_xml_load_file(
179 179
         \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('getMeetingInfo', ['meetingID' => $meetingid])
180
-      );
180
+        );
181 181
     if ($xml && $xml->returncode == 'SUCCESS' && empty($xml->messageKey)) {
182 182
         // Meeting info was returned.
183 183
         return array('returncode' => $xml->returncode,
184
-                     'meetingID' => $xml->meetingID,
185
-                     'moderatorPW' => $xml->moderatorPW,
186
-                     'attendeePW' => $xml->attendeePW,
187
-                     'hasBeenForciblyEnded' => $xml->hasBeenForciblyEnded,
188
-                     'running' => $xml->running,
189
-                     'recording' => $xml->recording,
190
-                     'startTime' => $xml->startTime,
191
-                     'endTime' => $xml->endTime,
192
-                     'participantCount' => $xml->participantCount,
193
-                     'moderatorCount' => $xml->moderatorCount,
194
-                     'attendees' => $xml->attendees,
195
-                     'metadata' => $xml->metadata,
196
-                   );
184
+                        'meetingID' => $xml->meetingID,
185
+                        'moderatorPW' => $xml->moderatorPW,
186
+                        'attendeePW' => $xml->attendeePW,
187
+                        'hasBeenForciblyEnded' => $xml->hasBeenForciblyEnded,
188
+                        'running' => $xml->running,
189
+                        'recording' => $xml->recording,
190
+                        'startTime' => $xml->startTime,
191
+                        'endTime' => $xml->endTime,
192
+                        'participantCount' => $xml->participantCount,
193
+                        'moderatorCount' => $xml->moderatorCount,
194
+                        'attendees' => $xml->attendees,
195
+                        'metadata' => $xml->metadata,
196
+                    );
197 197
     }
198 198
     if ($xml) {
199 199
         // Either failure or success without meeting info.
@@ -315,7 +315,7 @@  discard block
 block discarded – undo
315 315
 function bigbluebuttonbn_get_default_config_xml() {
316 316
     $xml = bigbluebuttonbn_wrap_xml_load_file(
317 317
         \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('getDefaultConfigXML')
318
-      );
318
+        );
319 319
     return $xml;
320 320
 }
321 321
 
@@ -384,7 +384,7 @@  discard block
 block discarded – undo
384 384
     foreach ($ids as $id) {
385 385
         $xml = bigbluebuttonbn_wrap_xml_load_file(
386 386
             \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('deleteRecordings', ['recordID' => $id])
387
-          );
387
+            );
388 388
         if ($xml && $xml->returncode != 'SUCCESS') {
389 389
             return false;
390 390
         }
@@ -401,7 +401,7 @@  discard block
 block discarded – undo
401 401
     foreach ($ids as $id) {
402 402
         $xml = bigbluebuttonbn_wrap_xml_load_file(
403 403
             \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('publishRecordings', ['recordID' => $id, 'publish' => $publish])
404
-          );
404
+            );
405 405
         if ($xml && $xml->returncode != 'SUCCESS') {
406 406
             return false;
407 407
         }
@@ -418,7 +418,7 @@  discard block
 block discarded – undo
418 418
     foreach ($ids as $id) {
419 419
         $xml = bigbluebuttonbn_wrap_xml_load_file(
420 420
             \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('updateRecordings', ['recordID' => $id] + (array) $params)
421
-          );
421
+            );
422 422
         if ($xml && $xml->returncode != 'SUCCESS') {
423 423
             return false;
424 424
         }
@@ -433,7 +433,7 @@  discard block
 block discarded – undo
433 433
 function bigbluebuttonbn_end_meeting($meetingid, $modpw) {
434 434
     $xml = bigbluebuttonbn_wrap_xml_load_file(
435 435
         \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('end', ['meetingID' => $meetingid, 'password' => $modpw])
436
-      );
436
+        );
437 437
     if ($xml) {
438 438
         // If the xml packet returned failure it displays the message to the user.
439 439
         return array('returncode' => $xml->returncode, 'message' => $xml->message, 'messageKey' => $xml->messageKey);
@@ -448,7 +448,7 @@  discard block
 block discarded – undo
448 448
 function bigbluebuttonbn_is_meeting_running($meetingid) {
449 449
     $xml = bigbluebuttonbn_wrap_xml_load_file(
450 450
         \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('isMeetingRunning', ['meetingID' => $meetingid])
451
-      );
451
+        );
452 452
     if ($xml && $xml->returncode == 'SUCCESS') {
453 453
         return ($xml->running == 'true');
454 454
     }
@@ -458,7 +458,7 @@  discard block
 block discarded – undo
458 458
 function bigbluebuttonbn_get_server_version() {
459 459
     $xml = bigbluebuttonbn_wrap_xml_load_file(
460 460
         \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url()
461
-      );
461
+        );
462 462
     if ($xml && $xml->returncode == 'SUCCESS') {
463 463
         return $xml->version;
464 464
     }
@@ -513,10 +513,10 @@  discard block
 block discarded – undo
513 513
 
514 514
         $options = array();
515 515
         $options['CURLOPT_HTTPHEADER'] = array(
516
-                 'Content-Type: '.$contenttype,
517
-                 'Content-Length: '.strlen($data),
518
-                 'Content-Language: en-US',
519
-               );
516
+                    'Content-Type: '.$contenttype,
517
+                    'Content-Length: '.strlen($data),
518
+                    'Content-Language: en-US',
519
+                );
520 520
 
521 521
         return $c->post($url, $data, $options);
522 522
     }
@@ -595,13 +595,13 @@  discard block
 block discarded – undo
595 595
 
596 596
 function bigbluebuttonbn_role_unknown() {
597 597
     return array(
598
-              "id" => "0",
599
-              "name" => "",
600
-              "shortname" => "unknown",
601
-              "description" => "",
602
-              "sortorder" => "0",
603
-              "archetype" => "guest",
604
-              "localname" => "Unknown"
598
+                "id" => "0",
599
+                "name" => "",
600
+                "shortname" => "unknown",
601
+                "description" => "",
602
+                "sortorder" => "0",
603
+                "archetype" => "guest",
604
+                "localname" => "Unknown"
605 605
             );
606 606
 }
607 607
 
@@ -610,16 +610,16 @@  discard block
 block discarded – undo
610 610
         'all' => array(
611 611
             'name' => get_string('mod_form_field_participant_list_type_all', 'bigbluebuttonbn'),
612 612
             'children' => []
613
-          )
614
-      );
613
+            )
614
+        );
615 615
     $data['role'] = array(
616 616
         'name' => get_string('mod_form_field_participant_list_type_role', 'bigbluebuttonbn'),
617 617
         'children' => bigbluebuttonbn_get_roles_select($context)
618
-      );
618
+        );
619 619
     $data['user'] = array(
620 620
         'name' => get_string('mod_form_field_participant_list_type_user', 'bigbluebuttonbn'),
621 621
         'children' => bigbluebuttonbn_get_users_select($context)
622
-      );
622
+        );
623 623
     return $data;
624 624
 }
625 625
 
@@ -649,9 +649,9 @@  discard block
 block discarded – undo
649 649
             continue;
650 650
         }
651 651
         $participantlistarray[] = array(
652
-              'selectiontype' => 'role',
653
-              'selectionid' => $moderatordefault,
654
-              'role' => BIGBLUEBUTTONBN_ROLE_MODERATOR);
652
+                'selectiontype' => 'role',
653
+                'selectionid' => $moderatordefault,
654
+                'role' => BIGBLUEBUTTONBN_ROLE_MODERATOR);
655 655
     }
656 656
     return $participantlistarray;
657 657
 }
@@ -682,11 +682,11 @@  discard block
 block discarded – undo
682 682
             'all' => get_string('mod_form_field_participant_list_type_all', 'bigbluebuttonbn'),
683 683
             'role' => get_string('mod_form_field_participant_list_type_role', 'bigbluebuttonbn'),
684 684
             'user' => get_string('mod_form_field_participant_list_type_user', 'bigbluebuttonbn'),
685
-          ],
685
+            ],
686 686
         'type_selected' => 'all',
687 687
         'options' => ['all' => '---------------'],
688 688
         'selected' => 'all',
689
-      ];
689
+        ];
690 690
 }
691 691
 
692 692
 function bigbluebuttonbn_is_moderator($context, $participants, $userid = null, $userroles = null) {
@@ -876,7 +876,7 @@  discard block
 block discarded – undo
876 876
         $eventproperties['other'] = $options['other'];
877 877
     }
878 878
     $event = call_user_func_array('\mod_bigbluebuttonbn\event\bigbluebuttonbn_'.$eventtype.'::create',
879
-      array($eventproperties));
879
+        array($eventproperties));
880 880
     $event->trigger();
881 881
 }
882 882
 
@@ -921,7 +921,7 @@  discard block
 block discarded – undo
921 921
     // Ping again and refresh the cache.
922 922
     $meetinginfo = (array) bigbluebuttonbn_wrap_xml_load_file(
923 923
         \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('getMeetingInfo', ['meetingID' => $meetingid])
924
-      );
924
+        );
925 925
     $cache->set($meetingid, array('creation_time' => time(), 'meeting_info' => json_encode($meetinginfo)));
926 926
     return $meetinginfo;
927 927
 }
@@ -1157,8 +1157,8 @@  discard block
 block discarded – undo
1157 1157
     }
1158 1158
     $id = 'playbacks-'.$recording['recordID'];
1159 1159
     $recordingtypes = html_writer::start_tag('div', array('id' => $id, 'data-imported' => $dataimported,
1160
-          'data-meetingid' => $recording['meetingID'], 'data-recordingid' => $recording['recordID'],
1161
-          'title' => $title, $visibility => $visibility));
1160
+            'data-meetingid' => $recording['meetingID'], 'data-recordingid' => $recording['recordID'],
1161
+            'title' => $title, $visibility => $visibility));
1162 1162
     foreach ($recording['playbacks'] as $playback) {
1163 1163
         $recordingtypes .= bigbluebuttonbn_get_recording_data_row_type($recording, $bigbluebuttonbnid,
1164 1164
             $playback).'&#32;';
@@ -1172,7 +1172,7 @@  discard block
 block discarded – undo
1172 1172
     $title = get_string('view_recording_format_'.$playback['type'], 'bigbluebuttonbn');
1173 1173
     $onclick = 'M.mod_bigbluebuttonbn.recordings.recording_play(this);';
1174 1174
     $href = $CFG->wwwroot.'/mod/bigbluebuttonbn/bbb_view.php?action=play&bn='.$bigbluebuttonbnid.
1175
-      '&mid='.$recording['meetingID'].'&rid='.$recording['recordID'].'&rtype='.$playback['type'];
1175
+        '&mid='.$recording['meetingID'].'&rid='.$recording['recordID'].'&rtype='.$playback['type'];
1176 1176
     if (!isset($recording['imported']) || !isset($recording['protected']) || $recording['protected'] === 'false') {
1177 1177
         $href .= '&href='.urlencode(trim($playback['url']));
1178 1178
     }
@@ -1184,7 +1184,7 @@  discard block
 block discarded – undo
1184 1184
         'data-target' => $playback['type'],
1185 1185
         'data-href' => $href,
1186 1186
         'class' => 'btn btn-sm btn-default'
1187
-      );
1187
+        );
1188 1188
     return $OUTPUT->action_link('#', $title, null, $linkattributes);
1189 1189
 }
1190 1190
 
@@ -1268,7 +1268,7 @@  discard block
 block discarded – undo
1268 1268
             'onclick' => $onclick,
1269 1269
             'data-action' => $data['action'],
1270 1270
             'data-links' => bigbluebuttonbn_get_count_recording_imported_instances($recording['recordID'])
1271
-          );
1271
+            );
1272 1272
         return $OUTPUT->action_icon('#', $icon, null, $linkattributes, false);
1273 1273
     }
1274 1274
     // With text for $manageaction.
@@ -1373,7 +1373,7 @@  discard block
 block discarded – undo
1373 1373
         $texthead . $rowdata->activity . $texttail, $texthead . $rowdata->description . $texttail,
1374 1374
         $rowdata->preview, $texthead . $rowdata->date_formatted . $texttail,
1375 1375
         $rowdata->duration_formatted
1376
-      );
1376
+        );
1377 1377
     if ($bbbsession['managerecordings']) {
1378 1378
         $row->cells[] = $rowdata->actionbar;
1379 1379
     }
@@ -1615,8 +1615,8 @@  discard block
 block discarded – undo
1615 1615
     $activitytime = '';
1616 1616
     if ($time) {
1617 1617
         $activitytime = calendar_day_representation($time).' '.
1618
-          get_string('mod_form_field_notification_msg_at', 'bigbluebuttonbn').' '.
1619
-          calendar_time_representation($time);
1618
+            get_string('mod_form_field_notification_msg_at', 'bigbluebuttonbn').' '.
1619
+            calendar_time_representation($time);
1620 1620
     }
1621 1621
     return $activitytime;
1622 1622
 }
@@ -1750,7 +1750,7 @@  discard block
 block discarded – undo
1750 1750
         $owner = array('0' => get_string('mod_form_field_participant_list_type_owner', 'bigbluebuttonbn'));
1751 1751
         $renderer->render_group_element('participant_moderator_default',
1752 1752
             $renderer->render_group_element_configmultiselect('participant_moderator_default', array_keys($owner), array_merge($owner, $roles))
1753
-          );
1753
+            );
1754 1754
     }
1755 1755
     // Configuration for "send notifications" feature.
1756 1756
     if ((boolean)\mod_bigbluebuttonbn\settings\renderer::section_send_notifications_shown()) {
Please login to merge, or discard this patch.