@@ -440,26 +440,26 @@ discard block |
||
440 | 440 | return array( |
441 | 441 | 'status' => false, |
442 | 442 | 'message' => get_string('view_recording_publish_link_deleted', 'bigbluebuttonbn') |
443 | - ); |
|
443 | + ); |
|
444 | 444 | } |
445 | 445 | if ($realrecordings[$params['id']]['published'] !== 'true') { |
446 | 446 | return array( |
447 | 447 | 'status' => false, |
448 | 448 | 'message' => get_string('view_recording_publish_link_not_published', 'bigbluebuttonbn') |
449 | - ); |
|
449 | + ); |
|
450 | 450 | } |
451 | 451 | return array( |
452 | 452 | 'status' => bigbluebuttonbn_publish_recording_imported( |
453 | 453 | $recordings[$params['id']]['imported'], true |
454 | 454 | ) |
455 | - ); |
|
455 | + ); |
|
456 | 456 | } |
457 | 457 | // As the recordingid was not identified as imported recording link, execute actual publish. |
458 | 458 | return array( |
459 | 459 | 'status' => bigbluebuttonbn_publish_recordings( |
460 | 460 | $params['id'], 'true' |
461 | 461 | ) |
462 | - ); |
|
462 | + ); |
|
463 | 463 | } |
464 | 464 | |
465 | 465 | /** |
@@ -480,26 +480,26 @@ discard block |
||
480 | 480 | return array( |
481 | 481 | 'status' => false, |
482 | 482 | 'message' => get_string('view_recording_unprotect_link_deleted', 'bigbluebuttonbn') |
483 | - ); |
|
483 | + ); |
|
484 | 484 | } |
485 | 485 | if ($realrecordings[$params['id']]['protected'] === 'true') { |
486 | 486 | return array( |
487 | 487 | 'status' => false, |
488 | 488 | 'message' => get_string('view_recording_unprotect_link_not_unprotected', 'bigbluebuttonbn') |
489 | - ); |
|
489 | + ); |
|
490 | 490 | } |
491 | 491 | return array( |
492 | 492 | 'status' => bigbluebuttonbn_protect_recording_imported( |
493 | 493 | $recordings[$params['id']]['imported'], false |
494 | 494 | ) |
495 | - ); |
|
495 | + ); |
|
496 | 496 | } |
497 | 497 | // As the recordingid was not identified as imported recording link, execute actual uprotect. |
498 | 498 | return array( |
499 | 499 | 'status' => bigbluebuttonbn_update_recordings( |
500 | 500 | $params['id'], array('protect' => 'false') |
501 | 501 | ) |
502 | - ); |
|
502 | + ); |
|
503 | 503 | } |
504 | 504 | |
505 | 505 | /** |
@@ -518,7 +518,7 @@ discard block |
||
518 | 518 | 'status' => bigbluebuttonbn_publish_recording_imported( |
519 | 519 | $recordings[$params['id']]['imported'], false |
520 | 520 | ) |
521 | - ); |
|
521 | + ); |
|
522 | 522 | } |
523 | 523 | // As the recordingid was not identified as imported recording link, execute unpublish on a real recording. |
524 | 524 | // First: Unpublish imported links associated to the recording. |
@@ -536,7 +536,7 @@ discard block |
||
536 | 536 | 'status' => bigbluebuttonbn_publish_recordings( |
537 | 537 | $params['id'], 'false' |
538 | 538 | ) |
539 | - ); |
|
539 | + ); |
|
540 | 540 | } |
541 | 541 | |
542 | 542 | /** |
@@ -555,7 +555,7 @@ discard block |
||
555 | 555 | 'status' => bigbluebuttonbn_protect_recording_imported( |
556 | 556 | $recordings[$params['id']]['imported'], true |
557 | 557 | ) |
558 | - ); |
|
558 | + ); |
|
559 | 559 | } |
560 | 560 | // As the recordingid was not identified as imported recording link, execute protect on a real recording. |
561 | 561 | // First: Protect imported links associated to the recording. |
@@ -573,7 +573,7 @@ discard block |
||
573 | 573 | 'status' => bigbluebuttonbn_update_recordings( |
574 | 574 | $params['id'], array('protect' => 'true') |
575 | 575 | ) |
576 | - ); |
|
576 | + ); |
|
577 | 577 | } |
578 | 578 | |
579 | 579 | /** |
@@ -592,7 +592,7 @@ discard block |
||
592 | 592 | 'status' => bigbluebuttonbn_delete_recording_imported( |
593 | 593 | $recordings[$params['id']]['imported'] |
594 | 594 | ) |
595 | - ); |
|
595 | + ); |
|
596 | 596 | } |
597 | 597 | // As the recordingid was not identified as imported recording link, execute delete on a real recording. |
598 | 598 | // First: Delete imported links associated to the recording. |
@@ -606,7 +606,7 @@ discard block |
||
606 | 606 | // Second: Execute the actual delete. |
607 | 607 | return array( |
608 | 608 | 'status' => bigbluebuttonbn_delete_recordings($params['id']) |
609 | - ); |
|
609 | + ); |
|
610 | 610 | } |
611 | 611 | |
612 | 612 | /** |
@@ -624,7 +624,7 @@ discard block |
||
624 | 624 | 'status' => bigbluebuttonbn_update_recording_imported( |
625 | 625 | $recordings[$params['id']]['imported'], json_decode($params['meta'], true) |
626 | 626 | ) |
627 | - ); |
|
627 | + ); |
|
628 | 628 | } |
629 | 629 | |
630 | 630 | // As the recordingid was not identified as imported recording link, execute update on a real recording. |
@@ -634,7 +634,7 @@ discard block |
||
634 | 634 | 'status' => bigbluebuttonbn_update_recordings( |
635 | 635 | $params['id'], json_decode($params['meta']) |
636 | 636 | ) |
637 | - ); |
|
637 | + ); |
|
638 | 638 | } |
639 | 639 | |
640 | 640 | /** |
@@ -800,11 +800,11 @@ discard block |
||
800 | 800 | $params['recording_ready'] = [ |
801 | 801 | 'bigbluebuttonbn' => 'An id for the bigbluebuttonbn instance should be included.', |
802 | 802 | 'signed_parameters' => 'A JWT encoded string must be included as [signed_parameters].' |
803 | - ]; |
|
803 | + ]; |
|
804 | 804 | $params['live_session_events'] = [ |
805 | 805 | 'bigbluebuttonbn' => 'An id for the bigbluebuttonbn instance should be included.', |
806 | 806 | 'signed_parameters' => 'A JWT encoded string must be included as [signed_parameters].' |
807 | - ]; |
|
807 | + ]; |
|
808 | 808 | return $params; |
809 | 809 | } |
810 | 810 | |
@@ -815,9 +815,9 @@ discard block |
||
815 | 815 | */ |
816 | 816 | function bigbluebuttonbn_broker_required_parameters_default($id) { |
817 | 817 | return [ |
818 | - 'id' => "The {$id} must be specified.", |
|
819 | - 'callback' => 'This call must include a javascript callback.' |
|
820 | - ]; |
|
818 | + 'id' => "The {$id} must be specified.", |
|
819 | + 'callback' => 'This call must include a javascript callback.' |
|
820 | + ]; |
|
821 | 821 | } |
822 | 822 | |
823 | 823 | /** |