Completed
Push — master ( 118be0...6a6bac )
by Jesus
10s
created
classes/locallib/config.php 1 patch
Indentation   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -120,29 +120,29 @@
 block discarded – undo
120 120
      */
121 121
     public static function get_options() {
122 122
         return [
123
-               'version_major' => self::get_moodle_version_major(),
124
-               'voicebridge_editable' => self::get('voicebridge_editable'),
125
-               'waitformoderator_default' => self::get('waitformoderator_default'),
126
-               'waitformoderator_editable' => self::get('waitformoderator_editable'),
127
-               'userlimit_default' => self::get('userlimit_default'),
128
-               'userlimit_editable' => self::get('userlimit_editable'),
129
-               'preuploadpresentation_enabled' => self::get('preuploadpresentation_enabled'),
130
-               'sendnotifications_enabled' => self::get('sendnotifications_enabled'),
131
-               'recordings_enabled' => self::get('recordings_enabled'),
132
-               'recordings_html_default' => self::get('recordings_html_default'),
133
-               'recordings_html_editable' => self::get('recordings_html_editable'),
134
-               'recordings_deleted_default' => self::get('recordings_deleted_default'),
135
-               'recordings_deleted_editable' => self::get('recordings_deleted_editable'),
136
-               'recordings_imported_default' => self::get('recordings_imported_default'),
137
-               'recordings_imported_editable' => self::get('recordings_imported_editable'),
138
-               'recording_default' => self::get('recording_default'),
139
-               'recording_editable' => self::get('recording_editable'),
140
-               'recording_icons_enabled' => self::get('recording_icons_enabled'),
141
-               'general_warning_message' => self::get('general_warning_message'),
142
-               'general_warning_box_type' => self::get('general_warning_box_type'),
143
-               'general_warning_button_text' => self::get('general_warning_button_text'),
144
-               'general_warning_button_href' => self::get('general_warning_button_href'),
145
-               'general_warning_button_class' => self::get('general_warning_button_class'),
146
-          ];
123
+                'version_major' => self::get_moodle_version_major(),
124
+                'voicebridge_editable' => self::get('voicebridge_editable'),
125
+                'waitformoderator_default' => self::get('waitformoderator_default'),
126
+                'waitformoderator_editable' => self::get('waitformoderator_editable'),
127
+                'userlimit_default' => self::get('userlimit_default'),
128
+                'userlimit_editable' => self::get('userlimit_editable'),
129
+                'preuploadpresentation_enabled' => self::get('preuploadpresentation_enabled'),
130
+                'sendnotifications_enabled' => self::get('sendnotifications_enabled'),
131
+                'recordings_enabled' => self::get('recordings_enabled'),
132
+                'recordings_html_default' => self::get('recordings_html_default'),
133
+                'recordings_html_editable' => self::get('recordings_html_editable'),
134
+                'recordings_deleted_default' => self::get('recordings_deleted_default'),
135
+                'recordings_deleted_editable' => self::get('recordings_deleted_editable'),
136
+                'recordings_imported_default' => self::get('recordings_imported_default'),
137
+                'recordings_imported_editable' => self::get('recordings_imported_editable'),
138
+                'recording_default' => self::get('recording_default'),
139
+                'recording_editable' => self::get('recording_editable'),
140
+                'recording_icons_enabled' => self::get('recording_icons_enabled'),
141
+                'general_warning_message' => self::get('general_warning_message'),
142
+                'general_warning_box_type' => self::get('general_warning_box_type'),
143
+                'general_warning_button_text' => self::get('general_warning_button_text'),
144
+                'general_warning_button_href' => self::get('general_warning_button_href'),
145
+                'general_warning_button_class' => self::get('general_warning_button_class'),
146
+            ];
147 147
     }
148 148
 }
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
@@ -198,10 +198,10 @@  discard block
 block discarded – undo
198 198
  */
199 199
 function bigbluebutton_bbb_view_create_meeting_data(&$bbbsession) {
200 200
     $data = ['meetingID' => $bbbsession['meetingid'],
201
-              'name' => bigbluebuttonbn_html2text($bbbsession['meetingname'], 64),
202
-              'attendeePW' => $bbbsession['viewerPW'],
203
-              'moderatorPW' => $bbbsession['modPW'],
204
-              'logoutURL' => $bbbsession['logoutURL'],
201
+                'name' => bigbluebuttonbn_html2text($bbbsession['meetingname'], 64),
202
+                'attendeePW' => $bbbsession['viewerPW'],
203
+                'moderatorPW' => $bbbsession['modPW'],
204
+                'logoutURL' => $bbbsession['logoutURL'],
205 205
             ];
206 206
     $data['record'] = bigbluebutton_bbb_view_create_meeting_data_record($bbbsession['record']);
207 207
     $data['welcome'] = trim($bbbsession['welcome']);
@@ -214,7 +214,7 @@  discard block
 block discarded – undo
214 214
             '%duration%',
215 215
             (string) $durationtime,
216 216
             get_string('bbbdurationwarning', 'bigbluebuttonbn')
217
-          );
217
+            );
218 218
     }
219 219
     $voicebridge = intval($bbbsession['voicebridge']);
220 220
     if ($voicebridge > 0 && $voicebridge < 79999) {
@@ -253,22 +253,22 @@  discard block
 block discarded – undo
253 253
 function bigbluebutton_bbb_view_create_meeting_metadata(&$bbbsession) {
254 254
     global $USER;
255 255
     $metadata = ['bbb-origin' => $bbbsession['origin'],
256
-                 'bbb-origin-version' => $bbbsession['originVersion'],
257
-                 'bbb-origin-server-name' => $bbbsession['originServerName'],
258
-                 'bbb-origin-server-common-name' => $bbbsession['originServerCommonName'],
259
-                 'bbb-origin-tag' => $bbbsession['originTag'],
260
-                 'bbb-context' => $bbbsession['course']->fullname,
261
-                 'bbb-recording-name' => bigbluebuttonbn_html2text($bbbsession['meetingname'], 64),
262
-                 'bbb-recording-description' => bigbluebuttonbn_html2text($bbbsession['meetingdescription'], 64),
263
-                 'bbb-recording-tags' => bigbluebuttonbn_get_tags($bbbsession['cm']->id), // Same as $id.
256
+                    'bbb-origin-version' => $bbbsession['originVersion'],
257
+                    'bbb-origin-server-name' => $bbbsession['originServerName'],
258
+                    'bbb-origin-server-common-name' => $bbbsession['originServerCommonName'],
259
+                    'bbb-origin-tag' => $bbbsession['originTag'],
260
+                    'bbb-context' => $bbbsession['course']->fullname,
261
+                    'bbb-recording-name' => bigbluebuttonbn_html2text($bbbsession['meetingname'], 64),
262
+                    'bbb-recording-description' => bigbluebuttonbn_html2text($bbbsession['meetingdescription'], 64),
263
+                    'bbb-recording-tags' => bigbluebuttonbn_get_tags($bbbsession['cm']->id), // Same as $id.
264 264
                 ];
265 265
     if ((boolean)\mod_bigbluebuttonbn\locallib\config::get('recordingstatus_enabled')) {
266 266
         $metadata["bn-recording-status"] = json_encode(
267 267
             array(
268 268
                 'email' => array('"' . fullname($USER) . '" <' . $USER->email . '>'),
269 269
                 'context' => $bbbsession['bigbluebuttonbnURL']
270
-              )
271
-          );
270
+                )
271
+            );
272 272
     }
273 273
     if ((boolean)\mod_bigbluebuttonbn\locallib\config::get('recordingready_enabled')) {
274 274
         $metadata['bn-recording-ready-url'] = $bbbsession['recordingReadyURL'];
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
@@ -366,26 +366,26 @@  discard block
 block discarded – undo
366 366
             return array(
367 367
                 'status' => false,
368 368
                 'message' => get_string('view_recording_publish_link_deleted', 'bigbluebuttonbn')
369
-              );
369
+                );
370 370
         }
371 371
         if ($realrecordings[$params['id']]['published'] !== 'true') {
372 372
             return array(
373 373
                 'status' => false,
374 374
                 'message' => get_string('view_recording_publish_link_not_published', 'bigbluebuttonbn')
375
-              );
375
+                );
376 376
         }
377 377
         return array(
378 378
             'status' => bigbluebuttonbn_publish_recording_imported(
379 379
                 $recordings[$params['id']]['imported'], true
380 380
             )
381
-          );
381
+            );
382 382
     }
383 383
     // As the recordingid was not identified as imported recording link, execute actual publish.
384 384
     return array(
385 385
         'status' => bigbluebuttonbn_publish_recordings(
386 386
             $params['id'], 'true'
387 387
         )
388
-      );
388
+        );
389 389
 }
390 390
 
391 391
 /**
@@ -401,26 +401,26 @@  discard block
 block discarded – undo
401 401
             return array(
402 402
                 'status' => false,
403 403
                 'message' => get_string('view_recording_unprotect_link_deleted', 'bigbluebuttonbn')
404
-              );
404
+                );
405 405
         }
406 406
         if ($realrecordings[$params['id']]['protected'] === 'true') {
407 407
             return array(
408 408
                 'status' => false,
409 409
                 'message' => get_string('view_recording_unprotect_link_not_unprotected', 'bigbluebuttonbn')
410
-              );
410
+                );
411 411
         }
412 412
         return array(
413 413
             'status' => bigbluebuttonbn_protect_recording_imported(
414 414
                 $recordings[$params['id']]['imported'], false
415 415
             )
416
-          );
416
+            );
417 417
     }
418 418
     // As the recordingid was not identified as imported recording link, execute actual uprotect.
419 419
     return array(
420 420
         'status' => bigbluebuttonbn_update_recordings(
421 421
             $params['id'], array('protect' => 'false')
422 422
         )
423
-      );
423
+        );
424 424
 }
425 425
 
426 426
 /**
@@ -434,7 +434,7 @@  discard block
 block discarded – undo
434 434
             'status' => bigbluebuttonbn_publish_recording_imported(
435 435
                 $recordings[$params['id']]['imported'], false
436 436
             )
437
-          );
437
+            );
438 438
     }
439 439
     // As the recordingid was not identified as imported recording link, execute unpublish on a real recording.
440 440
     // First: Unpublish imported links associated to the recording.
@@ -452,7 +452,7 @@  discard block
 block discarded – undo
452 452
         'status' => bigbluebuttonbn_publish_recordings(
453 453
             $params['id'], 'false'
454 454
         )
455
-      );
455
+        );
456 456
 }
457 457
 
458 458
 /**
@@ -466,7 +466,7 @@  discard block
 block discarded – undo
466 466
             'status' => bigbluebuttonbn_protect_recording_imported(
467 467
                 $recordings[$params['id']]['imported'], true
468 468
             )
469
-          );
469
+            );
470 470
     }
471 471
     // As the recordingid was not identified as imported recording link, execute protect on a real recording.
472 472
     // First: Protect imported links associated to the recording.
@@ -484,7 +484,7 @@  discard block
 block discarded – undo
484 484
         'status' => bigbluebuttonbn_update_recordings(
485 485
             $params['id'], array('protect' => 'true')
486 486
         )
487
-      );
487
+        );
488 488
 }
489 489
 
490 490
 /**
@@ -498,7 +498,7 @@  discard block
 block discarded – undo
498 498
             'status' => bigbluebuttonbn_delete_recording_imported(
499 499
                 $recordings[$params['id']]['imported']
500 500
             )
501
-          );
501
+            );
502 502
     }
503 503
     // As the recordingid was not identified as imported recording link, execute delete on a real recording.
504 504
     // First: Delete imported links associated to the recording.
@@ -514,7 +514,7 @@  discard block
 block discarded – undo
514 514
         'status' => bigbluebuttonbn_delete_recordings(
515 515
             $params['id']
516 516
         )
517
-      );
517
+        );
518 518
 }
519 519
 
520 520
 /**
@@ -527,7 +527,7 @@  discard block
 block discarded – undo
527 527
             'status' => bigbluebuttonbn_update_recording_imported(
528 528
                 $recordings[$params['id']]['imported'], json_decode($params['meta'], true)
529 529
             )
530
-          );
530
+            );
531 531
     }
532 532
 
533 533
     // As the recordingid was not identified as imported recording link, execute update on a real recording.
@@ -537,7 +537,7 @@  discard block
 block discarded – undo
537 537
         'status' => bigbluebuttonbn_update_recordings(
538 538
             $params['id'], json_decode($params['meta'])
539 539
         )
540
-      );
540
+        );
541 541
 }
542 542
 
543 543
 /**
@@ -682,10 +682,10 @@  discard block
 block discarded – undo
682 682
     $params['recording_import'] = ['id' => 'The recordingID must be specified.'];
683 683
     $params['recording_ready'] = [
684 684
             'signed_parameters' => 'A JWT encoded string must be included as [signed_parameters].'
685
-          ];
685
+            ];
686 686
     $params['live_session_events'] = [
687 687
             'signed_parameters' => 'A JWT encoded string must be included as [signed_parameters].'
688
-          ];
688
+            ];
689 689
     return $params;
690 690
 }
691 691
 
Please login to merge, or discard this patch.
import_view.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -77,8 +77,8 @@
 block discarded – undo
77 77
     $body .= html_writer::start_tag('br');
78 78
     $body .= html_writer::tag('input', '',
79 79
         array('type' => 'button', 'class' => 'btn btn-secondary',
80
-              'value' => get_string('view_recording_button_return', 'bigbluebuttonbn'),
81
-              'onclick' => 'window.location=\''.$CFG->wwwroot.'/mod/bigbluebuttonbn/view.php?id='.$cm->id.'\''));
80
+                'value' => get_string('view_recording_button_return', 'bigbluebuttonbn'),
81
+                'onclick' => 'window.location=\''.$CFG->wwwroot.'/mod/bigbluebuttonbn/view.php?id='.$cm->id.'\''));
82 82
     // JavaScript for locales.
83 83
     $PAGE->requires->strings_for_js(array_keys(bigbluebuttonbn_get_strings_for_js()), 'bigbluebuttonbn');
84 84
     // Require JavaScript modules.
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
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
                 'alt' => $contents,
105 105
                 'title' => $contents,
106 106
                 'src' => $jsvars['pix_icon_delete']
107
-              );
107
+                );
108 108
             $jsvars['pix_icon_delete'] = html_writer::tag('img', '', $options);
109 109
         }
110 110
         $PAGE->requires->yui_module('moodle-mod_bigbluebuttonbn-modform',
@@ -224,8 +224,8 @@  discard block
 block discarded – undo
224 224
             $this->bigbluebuttonbn_mform_add_element($mform, $field['type'], $field['name'], $field['data_type'],
225 225
                 $field['description_key'], 0, ['maxlength' => 4, 'size' => 6],
226 226
                 ['message' => get_string('mod_form_field_voicebridge_format_error', 'bigbluebuttonbn'),
227
-                 'type' => 'numeric', 'rule' => '####', 'validator' => 'server']
228
-              );
227
+                    'type' => 'numeric', 'rule' => '####', 'validator' => 'server']
228
+                );
229 229
         } else {
230 230
             $this->bigbluebuttonbn_mform_add_element($mform, $field['type'], $field['name'], $field['data_type'],
231 231
                 $field['description_key'], 0, ['maxlength' => 4, 'size' => 6]);
@@ -263,7 +263,7 @@  discard block
 block discarded – undo
263 263
      */
264 264
     private function bigbluebuttonbn_mform_add_block_room_recordings(&$mform, $cfg) {
265 265
         $field = ['type' => 'hidden', 'name' => 'recordings_html', 'data_type' => PARAM_INT,
266
-                  'description_key' => null];
266
+                    'description_key' => null];
267 267
         if ($cfg['recordings_html_editable']) {
268 268
             $field['type'] = 'checkbox';
269 269
             $field['description_key'] = 'mod_form_field_recordings_html';
@@ -271,7 +271,7 @@  discard block
 block discarded – undo
271 271
         $this->bigbluebuttonbn_mform_add_element($mform, $field['type'], $field['name'], $field['data_type'],
272 272
             $field['description_key'], $cfg['recordings_html_default']);
273 273
         $field = ['type' => 'hidden', 'name' => 'recordings_deleted', 'data_type' => PARAM_INT,
274
-                  'description_key' => null];
274
+                    'description_key' => null];
275 275
         if ($cfg['recordings_deleted_editable']) {
276 276
             $field['type'] = 'checkbox';
277 277
             $field['description_key'] = 'mod_form_field_recordings_deleted';
@@ -279,7 +279,7 @@  discard block
 block discarded – undo
279 279
         $this->bigbluebuttonbn_mform_add_element($mform, $field['type'], $field['name'], $field['data_type'],
280 280
             $field['description_key'], $cfg['recordings_deleted_default']);
281 281
         $field = ['type' => 'hidden', 'name' => 'recordings_imported', 'data_type' => PARAM_INT,
282
-                  'description_key' => null];
282
+                    'description_key' => null];
283 283
         if ($cfg['recordings_imported_editable']) {
284 284
             $field['type'] = 'checkbox';
285 285
             $field['description_key'] = 'mod_form_field_recordings_imported';
@@ -349,7 +349,7 @@  discard block
 block discarded – undo
349 349
         $htmlselectiontype = html_writer::select($participantselection['type_options'],
350 350
             'bigbluebuttonbn_participant_selection_type', $participantselection['type_selected'], array(),
351 351
             array('id' => 'bigbluebuttonbn_participant_selection_type',
352
-                  'onchange' => 'M.mod_bigbluebuttonbn.modform.participantSelectionSet(); return 0;'));
352
+                    'onchange' => 'M.mod_bigbluebuttonbn.modform.participantSelectionSet(); return 0;'));
353 353
         $htmlselectionoptions = html_writer::select($participantselection['options'], 'bigbluebuttonbn_participant_selection',
354 354
             $participantselection['selected'], array(),
355 355
             array('id' => 'bigbluebuttonbn_participant_selection', 'disabled' => 'disabled'));
@@ -357,7 +357,7 @@  discard block
 block discarded – undo
357 357
             'type' => 'button', 'class' => 'btn btn-secondary',
358 358
             'value' => get_string('mod_form_field_participant_list_action_add', 'bigbluebuttonbn'),
359 359
             'onclick' => 'M.mod_bigbluebuttonbn.modform.participantAdd(); return 0;'
360
-          ));
360
+            ));
361 361
         $htmladdparticipant = html_writer::tag('div',
362 362
             $htmlselectiontype . '&nbsp;&nbsp;' . $htmlselectionoptions . '&nbsp;&nbsp;' . $htmlselectioninput, null);
363 363
         $mform->addElement('html', "\n\n");
Please login to merge, or discard this patch.
lib.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
  * Remove this block when restored
69 69
  */
70 70
 
71
- /** @var BIGBLUEBUTTONBN_DEFAULT_SERVER_URL string of default bigbluebutton server url */
71
+    /** @var BIGBLUEBUTTONBN_DEFAULT_SERVER_URL string of default bigbluebutton server url */
72 72
 const BIGBLUEBUTTONBN_DEFAULT_SERVER_URL = 'http://test-install.blindsidenetworks.com/bigbluebutton/';
73 73
 /** @var BIGBLUEBUTTONBN_DEFAULT_SHARED_SECRET string of default bigbluebutton server shared secret */
74 74
 const BIGBLUEBUTTONBN_DEFAULT_SHARED_SECRET = '8cd8ef52e8e101574e400365b55e11a6';
@@ -345,12 +345,12 @@  discard block
 block discarded – undo
345 345
     $str  = '<div class="bigbluebuttonbn overview">'."\n";
346 346
     $str .= '  <div class="name">'.get_string('modulename', 'bigbluebuttonbn').':&nbsp;'."\n";
347 347
     $str .= '    <a '.$classes.'href="'.$CFG->wwwroot.'/mod/bigbluebuttonbn/view.php?id='.$bigbluebuttonbn->coursemodule.
348
-      '">'.$bigbluebuttonbn->name.'</a>'."\n";
348
+        '">'.$bigbluebuttonbn->name.'</a>'."\n";
349 349
     $str .= '  </div>'."\n";
350 350
     $str .= '  <div class="info">'.get_string($start, 'bigbluebuttonbn').': '.userdate($bigbluebuttonbn->openingtime).
351 351
         '</div>'."\n";
352 352
     $str .= '  <div class="info">'.get_string('ends_at', 'bigbluebuttonbn').': '.userdate($bigbluebuttonbn->closingtime)
353
-      .'</div>'."\n";
353
+        .'</div>'."\n";
354 354
     $str .= '</div>'."\n";
355 355
     return $str;
356 356
 }
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
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
  * recordings from a different activity even from a different course.
99 99
  **/
100 100
 
101
- /*
101
+    /*
102 102
  * When the value is set to 1 (checked) the bigbluebuttonbn rooms or
103 103
  * activities will have the 'import recordings' capability enabled.
104 104
  * $CFG->bigbluebuttonbn['importrecordings_enabled'] = 0;
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
  * 'Join session' button enabled
120 120
  **/
121 121
 
122
- /*
122
+    /*
123 123
  * When the value is set to 1 (checked) the bigbluebuttonbn rooms or
124 124
  * activities will have the 'wait for moderator' capability enabled by
125 125
  * default.
@@ -298,27 +298,27 @@  discard block
 block discarded – undo
298 298
  * $CFG->bigbluebuttonbn['general_warning_message'] = "Would you like to record your BigBlueButton sessions for later viewing? ";
299 299
  */
300 300
 
301
- /*
301
+    /*
302 302
  * The warning box is always shown to administrators, but it is also possible to define other roles
303 303
  * to whom the it will be shown. The roles are based on the shortnames defined by Moodle:
304 304
  *     'manager,coursecreator,editingteacher,teacher,student,guest,user,frontpage'
305 305
  * $CFG->bigbluebuttonbn['general_warning_roles'] = 'editingteacher,teacher';
306 306
  */
307 307
 
308
- /*
308
+    /*
309 309
  * As the general_warning_message is shown in a box, its type can be defined with general_warning_type
310 310
  * The default type is 'info' which is normaly rendered in blue when using a bootstrap theme.
311 311
  * All the modifiers for boxed in bootstrap can be used [info|success|warning|danger].
312 312
  * $CFG->bigbluebuttonbn['general_warning_box_type'] = 'info';
313 313
  */
314 314
 
315
- /*
315
+    /*
316 316
  * Additionally, when general_warning_button_href value is different than "", a button
317 317
  * can also be shown right after the message.
318 318
  * $CFG->bigbluebuttonbn['general_warning_button_href'] = "http://blindsidenetworks.com/";
319 319
  */
320 320
 
321
- /*
321
+    /*
322 322
  * Finally, the text and class for the button can be modified
323 323
  * $CFG->bigbluebuttonbn['general_warning_button_text'] = "Upgrade your site";
324 324
  * $CFG->bigbluebuttonbn['general_warning_button_class'] = "btn btn-primary";
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
@@ -408,7 +408,7 @@  discard block
 block discarded – undo
408 408
         return $output;
409 409
     }
410 410
     $output .= $OUTPUT->box_start('box boxalignleft adminerror alert alert-' . $type . ' alert-block fade in',
411
-      'bigbluebuttonbn_view_general_warning') . "\n";
411
+        'bigbluebuttonbn_view_general_warning') . "\n";
412 412
     $output .= '    ' . $message . "\n";
413 413
     $output .= '  <div class="singlebutton">' . "\n";
414 414
     if (!empty($href)) {
@@ -505,12 +505,12 @@  discard block
 block discarded – undo
505 505
     $recordings = bigbluebuttonbn_get_recordings(
506 506
         $bbbsession['course']->id, $bigbluebuttonbnid, $enabledfeatures['showroom'],
507 507
         $bbbsession['bigbluebuttonbn']->recordings_deleted
508
-      );
508
+        );
509 509
     if ($enabledfeatures['importrecordings']) {
510 510
         // Get recording links.
511 511
         $recordingsimported = bigbluebuttonbn_get_recordings_imported_array(
512 512
             $bbbsession['course']->id, $bigbluebuttonbnid, $enabledfeatures['showroom']
513
-          );
513
+            );
514 514
         /* Perform aritmetic addition instead of merge so the imported recordings corresponding to existent
515 515
          * recordings are not included. */
516 516
         $recordings += $recordingsimported;
@@ -524,7 +524,7 @@  discard block
 block discarded – undo
524 524
     // JavaScript variables for recordings.
525 525
     $jsvars += array(
526 526
             'recordings_html' => $bbbsession['bigbluebuttonbn']->recordings_html == '1',
527
-          );
527
+            );
528 528
     // If there are meetings with recordings load the data to the table.
529 529
     if ($bbbsession['bigbluebuttonbn']->recordings_html) {
530 530
         // Render a plain html table.
@@ -534,7 +534,7 @@  discard block
 block discarded – undo
534 534
     $jsvars += array(
535 535
             'columns' => bigbluebuttonbn_get_recording_columns($bbbsession),
536 536
             'data' => bigbluebuttonbn_get_recording_data($bbbsession, $recordings),
537
-          );
537
+            );
538 538
     // Render a YUI table.
539 539
     return html_writer::div('', '', array('id' => 'bigbluebuttonbn_yui_table'));
540 540
 }
@@ -554,10 +554,10 @@  discard block
 block discarded – undo
554 554
     }
555 555
     $button = html_writer::tag('input', '',
556 556
         array('type' => 'button',
557
-              'value' => get_string('view_recording_button_import', 'bigbluebuttonbn'),
558
-              'class' => 'btn btn-secondary',
559
-              'onclick' => 'window.location=\''.$CFG->wwwroot.'/mod/bigbluebuttonbn/import_view.php?bn='.
560
-                  $bbbsession['bigbluebuttonbn']->id.'\''));
557
+                'value' => get_string('view_recording_button_import', 'bigbluebuttonbn'),
558
+                'class' => 'btn btn-secondary',
559
+                'onclick' => 'window.location=\''.$CFG->wwwroot.'/mod/bigbluebuttonbn/import_view.php?bn='.
560
+                    $bbbsession['bigbluebuttonbn']->id.'\''));
561 561
     $output  = html_writer::start_tag('br');
562 562
     $output .= html_writer::tag('span', $button, array('id' => 'import_recording_links_button'));
563 563
     $output .= html_writer::tag('span', '', array('id' => 'import_recording_links_table'));
Please login to merge, or discard this patch.
locallib.php 1 patch
Indentation   +48 added lines, -48 removed lines patch added patch discarded remove patch
@@ -119,9 +119,9 @@  discard block
 block discarded – undo
119 119
  */
120 120
 function bigbluebuttonbn_get_join_url($meetingid, $username, $pw, $logouturl, $configtoken = null, $userid = null) {
121 121
     $data = ['meetingID' => $meetingid,
122
-              'fullName' => $username,
123
-              'password' => $pw,
124
-              'logoutURL' => $logouturl,
122
+                'fullName' => $username,
123
+                'password' => $pw,
124
+                'logoutURL' => $logouturl,
125 125
             ];
126 126
     if (!is_null($configtoken)) {
127 127
         $data['configToken'] = $configtoken;
@@ -173,23 +173,23 @@  discard block
 block discarded – undo
173 173
 function bigbluebuttonbn_get_meeting_info_array($meetingid) {
174 174
     $xml = bigbluebuttonbn_wrap_xml_load_file(
175 175
         \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('getMeetingInfo', ['meetingID' => $meetingid])
176
-      );
176
+        );
177 177
     if ($xml && $xml->returncode == 'SUCCESS' && empty($xml->messageKey)) {
178 178
         // Meeting info was returned.
179 179
         return array('returncode' => $xml->returncode,
180
-                     'meetingID' => $xml->meetingID,
181
-                     'moderatorPW' => $xml->moderatorPW,
182
-                     'attendeePW' => $xml->attendeePW,
183
-                     'hasBeenForciblyEnded' => $xml->hasBeenForciblyEnded,
184
-                     'running' => $xml->running,
185
-                     'recording' => $xml->recording,
186
-                     'startTime' => $xml->startTime,
187
-                     'endTime' => $xml->endTime,
188
-                     'participantCount' => $xml->participantCount,
189
-                     'moderatorCount' => $xml->moderatorCount,
190
-                     'attendees' => $xml->attendees,
191
-                     'metadata' => $xml->metadata,
192
-                   );
180
+                        'meetingID' => $xml->meetingID,
181
+                        'moderatorPW' => $xml->moderatorPW,
182
+                        'attendeePW' => $xml->attendeePW,
183
+                        'hasBeenForciblyEnded' => $xml->hasBeenForciblyEnded,
184
+                        'running' => $xml->running,
185
+                        'recording' => $xml->recording,
186
+                        'startTime' => $xml->startTime,
187
+                        'endTime' => $xml->endTime,
188
+                        'participantCount' => $xml->participantCount,
189
+                        'moderatorCount' => $xml->moderatorCount,
190
+                        'attendees' => $xml->attendees,
191
+                        'metadata' => $xml->metadata,
192
+                    );
193 193
     }
194 194
     if ($xml) {
195 195
         // Either failure or success without meeting info.
@@ -325,7 +325,7 @@  discard block
 block discarded – undo
325 325
 function bigbluebuttonbn_get_default_config_xml() {
326 326
     $xml = bigbluebuttonbn_wrap_xml_load_file(
327 327
         \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('getDefaultConfigXML')
328
-      );
328
+        );
329 329
     return $xml;
330 330
 }
331 331
 
@@ -426,7 +426,7 @@  discard block
 block discarded – undo
426 426
     foreach ($ids as $id) {
427 427
         $xml = bigbluebuttonbn_wrap_xml_load_file(
428 428
             \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('deleteRecordings', ['recordID' => $id])
429
-          );
429
+            );
430 430
         if ($xml && $xml->returncode != 'SUCCESS') {
431 431
             return false;
432 432
         }
@@ -445,7 +445,7 @@  discard block
 block discarded – undo
445 445
     foreach ($ids as $id) {
446 446
         $xml = bigbluebuttonbn_wrap_xml_load_file(
447 447
             \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('publishRecordings', ['recordID' => $id, 'publish' => $publish])
448
-          );
448
+            );
449 449
         if ($xml && $xml->returncode != 'SUCCESS') {
450 450
             return false;
451 451
         }
@@ -464,7 +464,7 @@  discard block
 block discarded – undo
464 464
     foreach ($ids as $id) {
465 465
         $xml = bigbluebuttonbn_wrap_xml_load_file(
466 466
             \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('updateRecordings', ['recordID' => $id] + (array) $params)
467
-          );
467
+            );
468 468
         if ($xml && $xml->returncode != 'SUCCESS') {
469 469
             return false;
470 470
         }
@@ -481,7 +481,7 @@  discard block
 block discarded – undo
481 481
 function bigbluebuttonbn_end_meeting($meetingid, $modpw) {
482 482
     $xml = bigbluebuttonbn_wrap_xml_load_file(
483 483
         \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('end', ['meetingID' => $meetingid, 'password' => $modpw])
484
-      );
484
+        );
485 485
     if ($xml) {
486 486
         // If the xml packet returned failure it displays the message to the user.
487 487
         return array('returncode' => $xml->returncode, 'message' => $xml->message, 'messageKey' => $xml->messageKey);
@@ -501,7 +501,7 @@  discard block
 block discarded – undo
501 501
      */
502 502
     $xml = bigbluebuttonbn_wrap_xml_load_file(
503 503
         \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('getMeetingInfo', ['meetingID' => $meetingid])
504
-      );
504
+        );
505 505
     return ($xml && $xml->returncode == 'SUCCESS');
506 506
 }
507 507
 
@@ -513,7 +513,7 @@  discard block
 block discarded – undo
513 513
 function bigbluebuttonbn_get_server_version() {
514 514
     $xml = bigbluebuttonbn_wrap_xml_load_file(
515 515
         \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url()
516
-      );
516
+        );
517 517
     if ($xml && $xml->returncode == 'SUCCESS') {
518 518
         return $xml->version;
519 519
     }
@@ -581,10 +581,10 @@  discard block
 block discarded – undo
581 581
 
582 582
         $options = array();
583 583
         $options['CURLOPT_HTTPHEADER'] = array(
584
-                 'Content-Type: '.$contenttype,
585
-                 'Content-Length: '.strlen($data),
586
-                 'Content-Language: en-US',
587
-               );
584
+                    'Content-Type: '.$contenttype,
585
+                    'Content-Length: '.strlen($data),
586
+                    'Content-Language: en-US',
587
+                );
588 588
 
589 589
         return $c->post($url, $data, $options);
590 590
     }
@@ -727,16 +727,16 @@  discard block
 block discarded – undo
727 727
         'all' => array(
728 728
             'name' => get_string('mod_form_field_participant_list_type_all', 'bigbluebuttonbn'),
729 729
             'children' => []
730
-          )
731
-      );
730
+            )
731
+        );
732 732
     $data['role'] = array(
733 733
         'name' => get_string('mod_form_field_participant_list_type_role', 'bigbluebuttonbn'),
734 734
         'children' => bigbluebuttonbn_get_roles_select($context)
735
-      );
735
+        );
736 736
     $data['user'] = array(
737 737
         'name' => get_string('mod_form_field_participant_list_type_user', 'bigbluebuttonbn'),
738 738
         'children' => bigbluebuttonbn_get_users_select($context)
739
-      );
739
+        );
740 740
     return $data;
741 741
 }
742 742
 
@@ -781,9 +781,9 @@  discard block
 block discarded – undo
781 781
             continue;
782 782
         }
783 783
         $participantlistarray[] = array(
784
-              'selectiontype' => 'role',
785
-              'selectionid' => $moderatordefault,
786
-              'role' => BIGBLUEBUTTONBN_ROLE_MODERATOR);
784
+                'selectiontype' => 'role',
785
+                'selectionid' => $moderatordefault,
786
+                'role' => BIGBLUEBUTTONBN_ROLE_MODERATOR);
787 787
     }
788 788
     return $participantlistarray;
789 789
 }
@@ -826,11 +826,11 @@  discard block
 block discarded – undo
826 826
             'all' => get_string('mod_form_field_participant_list_type_all', 'bigbluebuttonbn'),
827 827
             'role' => get_string('mod_form_field_participant_list_type_role', 'bigbluebuttonbn'),
828 828
             'user' => get_string('mod_form_field_participant_list_type_user', 'bigbluebuttonbn'),
829
-          ],
829
+            ],
830 830
         'type_selected' => 'all',
831 831
         'options' => ['all' => '---------------'],
832 832
         'selected' => 'all',
833
-      ];
833
+        ];
834 834
 }
835 835
 
836 836
 /**
@@ -1107,7 +1107,7 @@  discard block
 block discarded – undo
1107 1107
         $eventproperties['other'] = $options['other'];
1108 1108
     }
1109 1109
     $event = call_user_func_array('\mod_bigbluebuttonbn\event\bigbluebuttonbn_'.$eventtype.'::create',
1110
-      array($eventproperties));
1110
+        array($eventproperties));
1111 1111
     $event->trigger();
1112 1112
 }
1113 1113
 
@@ -1151,7 +1151,7 @@  discard block
 block discarded – undo
1151 1151
     // Ping again and refresh the cache.
1152 1152
     $meetinginfo = (array) bigbluebuttonbn_wrap_xml_load_file(
1153 1153
         \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('getMeetingInfo', ['meetingID' => $meetingid])
1154
-      );
1154
+        );
1155 1155
     $cache->set($meetingid, array('creation_time' => time(), 'meeting_info' => json_encode($meetinginfo)));
1156 1156
     return $meetinginfo;
1157 1157
 }
@@ -1521,8 +1521,8 @@  discard block
 block discarded – undo
1521 1521
     }
1522 1522
     $id = 'playbacks-'.$recording['recordID'];
1523 1523
     $recordingtypes = html_writer::start_tag('div', array('id' => $id, 'data-imported' => $dataimported,
1524
-          'data-meetingid' => $recording['meetingID'], 'data-recordingid' => $recording['recordID'],
1525
-          'title' => $title, $visibility => $visibility));
1524
+            'data-meetingid' => $recording['meetingID'], 'data-recordingid' => $recording['recordID'],
1525
+            'title' => $title, $visibility => $visibility));
1526 1526
     foreach ($recording['playbacks'] as $playback) {
1527 1527
         $recordingtypes .= bigbluebuttonbn_get_recording_data_row_type($recording, $bbbsession, $playback);
1528 1528
     }
@@ -1547,7 +1547,7 @@  discard block
 block discarded – undo
1547 1547
     $title = get_string('view_recording_format_'.$playback['type'], 'bigbluebuttonbn');
1548 1548
     $onclick = 'M.mod_bigbluebuttonbn.recordings.recordingPlay(this);';
1549 1549
     $href = $CFG->wwwroot . '/mod/bigbluebuttonbn/bbb_view.php?action=play&bn=' . $bbbsession['bigbluebuttonbn']->id .
1550
-      '&mid='.$recording['meetingID'] . '&rid=' . $recording['recordID'] . '&rtype=' . $playback['type'];
1550
+        '&mid='.$recording['meetingID'] . '&rid=' . $recording['recordID'] . '&rtype=' . $playback['type'];
1551 1551
     if (!isset($recording['imported']) || !isset($recording['protected']) || $recording['protected'] === 'false') {
1552 1552
         $href .= '&href='.urlencode(trim($playback['url']));
1553 1553
     }
@@ -1559,7 +1559,7 @@  discard block
 block discarded – undo
1559 1559
         'data-target' => $playback['type'],
1560 1560
         'data-href' => $href,
1561 1561
         'class' => 'btn btn-sm btn-default'
1562
-      );
1562
+        );
1563 1563
     return $OUTPUT->action_link('#', $title, null, $linkattributes) . '&#32;';
1564 1564
 }
1565 1565
 
@@ -1673,10 +1673,10 @@  discard block
 block discarded – undo
1673 1673
             'id' => $id,
1674 1674
             'onclick' => $onclick,
1675 1675
             'data-action' => $data['action']
1676
-          );
1676
+            );
1677 1677
         if (!isset($recording['imported'])) {
1678 1678
             $linkattributes['data-links'] = bigbluebuttonbn_count_recording_imported_instances(
1679
-              $recording['recordID']);
1679
+                $recording['recordID']);
1680 1680
         }
1681 1681
         if (isset($data['disabled'])) {
1682 1682
             $iconattributes['class'] .= ' fa-' . $data['disabled'];
@@ -2214,8 +2214,8 @@  discard block
 block discarded – undo
2214 2214
     $activitytime = '';
2215 2215
     if ($time) {
2216 2216
         $activitytime = calendar_day_representation($time).' '.
2217
-          get_string('mod_form_field_notification_msg_at', 'bigbluebuttonbn').' '.
2218
-          calendar_time_representation($time);
2217
+            get_string('mod_form_field_notification_msg_at', 'bigbluebuttonbn').' '.
2218
+            calendar_time_representation($time);
2219 2219
     }
2220 2220
     return $activitytime;
2221 2221
 }
@@ -2515,7 +2515,7 @@  discard block
 block discarded – undo
2515 2515
         $renderer->render_group_element('participant_moderator_default',
2516 2516
             $renderer->render_group_element_configmultiselect('participant_moderator_default',
2517 2517
                 array_keys($owner), array_merge($owner, $roles))
2518
-          );
2518
+            );
2519 2519
     }
2520 2520
 }
2521 2521
 
Please login to merge, or discard this patch.