Completed
Push — master ( 1a424a...349780 )
by Jesus
02:02
created
view.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -273,11 +273,11 @@  discard block
 block discarded – undo
273 273
 
274 274
     echo $OUTPUT->box_start('generalbox boxaligncenter');
275 275
     echo '<br><div class="alert alert-warning">'.get_string('view_groups_selection_warning', 'bigbluebuttonbn').
276
-      '</div>';
276
+        '</div>';
277 277
     echo $OUTPUT->box_end();
278 278
 
279 279
     groups_print_activity_menu(
280
-      $bbbsession['cm'], $CFG->wwwroot.'/mod/bigbluebuttonbn/view.php?id='.$bbbsession['cm']->id);
280
+        $bbbsession['cm'], $CFG->wwwroot.'/mod/bigbluebuttonbn/view.php?id='.$bbbsession['cm']->id);
281 281
     echo '<br><br>';
282 282
 }
283 283
 
@@ -372,7 +372,7 @@  discard block
 block discarded – undo
372 372
     $recordings = bigbluebuttonbn_get_recordings(
373 373
         $bbbsession['course']->id, $bigbluebuttonbnid, $showroom,
374 374
         $bbbsession['bigbluebuttonbn']->recordings_deleted_activities
375
-      );
375
+        );
376 376
 
377 377
     if (empty($recordings) || array_key_exists('messageKey', $recordings)) {
378 378
         // There are no recordings to be shown.
@@ -384,7 +384,7 @@  discard block
 block discarded – undo
384 384
     // JavaScript variables for recordings.
385 385
     $jsvars += array(
386 386
             'recordings_html' => $bbbsession['bigbluebuttonbn']->recordings_html == '1',
387
-          );
387
+            );
388 388
 
389 389
     // If there are meetings with recordings load the data to the table.
390 390
     if ($bbbsession['bigbluebuttonbn']->recordings_html) {
@@ -396,7 +396,7 @@  discard block
 block discarded – undo
396 396
     $jsvars += array(
397 397
             'columns' => bigbluebuttonbn_get_recording_columns($bbbsession),
398 398
             'data' => bigbluebuttonbn_get_recording_data($bbbsession, $recordings),
399
-          );
399
+            );
400 400
 
401 401
     // Render a YUI table.
402 402
     return html_writer::div('', '', array('id' => 'bigbluebuttonbn_yui_table'));
@@ -407,10 +407,10 @@  discard block
 block discarded – undo
407 407
 
408 408
     $button = html_writer::tag('input', '',
409 409
         array('type' => 'button',
410
-              'value' => get_string('view_recording_button_import', 'bigbluebuttonbn'),
411
-              'class' => 'btn btn-secondary',
412
-              'onclick' => 'window.location=\''.$CFG->wwwroot.'/mod/bigbluebuttonbn/import_view.php?bn='.
413
-                  $bbbsession['bigbluebuttonbn']->id.'\''));
410
+                'value' => get_string('view_recording_button_import', 'bigbluebuttonbn'),
411
+                'class' => 'btn btn-secondary',
412
+                'onclick' => 'window.location=\''.$CFG->wwwroot.'/mod/bigbluebuttonbn/import_view.php?bn='.
413
+                    $bbbsession['bigbluebuttonbn']->id.'\''));
414 414
     $output = html_writer::start_tag('br');
415 415
     $output .= html_writer::tag('span', $button, array('id' => 'import_recording_links_button'));
416 416
     $output .= html_writer::tag('span', '', array('id' => 'import_recording_links_table'));
@@ -428,7 +428,7 @@  discard block
 block discarded – undo
428 428
         return '<h4>'.get_string('view_section_title_presentation', 'bigbluebuttonbn').'</h4>'.
429 429
                 ''.$OUTPUT->action_icon($bbbsession['presentation']['url'], $icon, null, array(), false).''.
430 430
                 ''.$OUTPUT->action_link($bbbsession['presentation']['url'],
431
-                      $bbbsession['presentation']['name'], null, $attributes).'<br><br>';
431
+                        $bbbsession['presentation']['name'], null, $attributes).'<br><br>';
432 432
     }
433 433
 
434 434
     return '';
Please login to merge, or discard this patch.
bbb_broker.php 1 patch
Indentation   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -414,10 +414,10 @@  discard block
 block discarded – undo
414 414
     if (bigbluebuttonbn_broker_recording_is_imported($recordings, $params['id'])) {
415 415
         // Execute unpublish or protect on imported recording link.
416 416
         return array(
417
-          'status' => bigbluebuttonbn_publish_recording_imported(
418
-              $params['id'], $bbbsession['bigbluebuttonbn']->id, false
417
+            'status' => bigbluebuttonbn_publish_recording_imported(
418
+                $params['id'], $bbbsession['bigbluebuttonbn']->id, false
419 419
             )
420
-          );
420
+            );
421 421
     }
422 422
 
423 423
     // As the recordingid was not identified as imported recording link, execute unpublish on a real recording.
@@ -437,26 +437,26 @@  discard block
 block discarded – undo
437 437
     }
438 438
     // Second: Execute the real unpublish.
439 439
     return array(
440
-      'status' => bigbluebuttonbn_publish_recordings($params['id'], 'false')
441
-      );
440
+        'status' => bigbluebuttonbn_publish_recordings($params['id'], 'false')
441
+        );
442 442
 }
443 443
 
444 444
 function bigbluebuttonbn_broker_recording_action_edit($bbbsession, $params, $recordings) {
445 445
     if (bigbluebuttonbn_broker_recording_is_imported($recordings, $params['id'])) {
446 446
         // Execute update on imported recording link.
447 447
         return array(
448
-          'status' => bigbluebuttonbn_update_recording_imported(
449
-              $params['id'], $bbbsession['bigbluebuttonbn']->id, json_decode($params['meta'], true)
448
+            'status' => bigbluebuttonbn_update_recording_imported(
449
+                $params['id'], $bbbsession['bigbluebuttonbn']->id, json_decode($params['meta'], true)
450 450
             )
451
-          );
451
+            );
452 452
     }
453 453
 
454 454
     // As the recordingid was not identified as imported recording link, execute update on a real recording.
455 455
     // (No need to update imported links as the update only affects the actual recording).
456 456
     // Execute update on actual recording.
457 457
     return array(
458
-      'status' => bigbluebuttonbn_update_recordings($params['id'], json_decode($params['meta']))
459
-      );
458
+        'status' => bigbluebuttonbn_update_recordings($params['id'], json_decode($params['meta']))
459
+        );
460 460
 }
461 461
 
462 462
 function bigbluebuttonbn_broker_recording_action_delete($bbbsession, $params, $recordings) {
@@ -465,10 +465,10 @@  discard block
 block discarded – undo
465 465
     if (bigbluebuttonbn_broker_recording_is_imported($recordings, $params['id'])) {
466 466
         // Execute delete on imported recording link.
467 467
         return array(
468
-          'status' => bigbluebuttonbn_delete_recording_imported(
469
-              $recordings[$params['id']]['imported']
468
+            'status' => bigbluebuttonbn_delete_recording_imported(
469
+                $recordings[$params['id']]['imported']
470 470
             )
471
-          );
471
+            );
472 472
     }
473 473
 
474 474
     // As the recordingid was not identified as imported recording link, execute delete on a real recording.
@@ -483,8 +483,8 @@  discard block
 block discarded – undo
483 483
     }
484 484
     // Execute the actual delete.
485 485
     return array(
486
-      'status' => bigbluebuttonbn_delete_recordings($params['id'])
487
-      );
486
+        'status' => bigbluebuttonbn_delete_recordings($params['id'])
487
+        );
488 488
 }
489 489
 
490 490
 function bigbluebuttonbn_broker_recording_ready($params, $bigbluebuttonbn) {
@@ -625,10 +625,10 @@  discard block
 block discarded – undo
625 625
     $params['recording_import'] = ['id' => 'The recordingID must be specified.'];
626 626
     $params['recording_ready'] = [
627 627
             'signed_parameters' => 'A JWT encoded string must be included as [signed_parameters].'
628
-          ];
628
+            ];
629 629
     $params['live_session_events'] = [
630 630
             'signed_parameters' => 'A JWT encoded string must be included as [signed_parameters].'
631
-          ];
631
+            ];
632 632
     return $params;
633 633
 }
634 634
 
Please login to merge, or discard this patch.