Completed
Branch v2.2-stable (d83e60)
by Jesus
02:31
created
bbb_broker.php 2 patches
Indentation   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -437,26 +437,26 @@  discard block
 block discarded – undo
437 437
             return array(
438 438
                 'status' => false,
439 439
                 'message' => get_string('view_recording_publish_link_deleted', 'bigbluebuttonbn')
440
-              );
440
+                );
441 441
         }
442 442
         if ($realrecordings[$params['id']]['published'] !== 'true') {
443 443
             return array(
444 444
                 'status' => false,
445 445
                 'message' => get_string('view_recording_publish_link_not_published', 'bigbluebuttonbn')
446
-              );
446
+                );
447 447
         }
448 448
         return array(
449 449
             'status' => bigbluebuttonbn_publish_recording_imported(
450 450
                 $recordings[$params['id']]['imported'], true
451 451
             )
452
-          );
452
+            );
453 453
     }
454 454
     // As the recordingid was not identified as imported recording link, execute actual publish.
455 455
     return array(
456 456
         'status' => bigbluebuttonbn_publish_recordings(
457 457
             $params['id'], 'true'
458 458
         )
459
-      );
459
+        );
460 460
 }
461 461
 
462 462
 /**
@@ -477,26 +477,26 @@  discard block
 block discarded – undo
477 477
             return array(
478 478
                 'status' => false,
479 479
                 'message' => get_string('view_recording_unprotect_link_deleted', 'bigbluebuttonbn')
480
-              );
480
+                );
481 481
         }
482 482
         if ($realrecordings[$params['id']]['protected'] === 'true') {
483 483
             return array(
484 484
                 'status' => false,
485 485
                 'message' => get_string('view_recording_unprotect_link_not_unprotected', 'bigbluebuttonbn')
486
-              );
486
+                );
487 487
         }
488 488
         return array(
489 489
             'status' => bigbluebuttonbn_protect_recording_imported(
490 490
                 $recordings[$params['id']]['imported'], false
491 491
             )
492
-          );
492
+            );
493 493
     }
494 494
     // As the recordingid was not identified as imported recording link, execute actual uprotect.
495 495
     return array(
496 496
         'status' => bigbluebuttonbn_update_recordings(
497 497
             $params['id'], array('protect' => 'false')
498 498
         )
499
-      );
499
+        );
500 500
 }
501 501
 
502 502
 /**
@@ -515,7 +515,7 @@  discard block
 block discarded – undo
515 515
             'status' => bigbluebuttonbn_publish_recording_imported(
516 516
                 $recordings[$params['id']]['imported'], false
517 517
             )
518
-          );
518
+            );
519 519
     }
520 520
     // As the recordingid was not identified as imported recording link, execute unpublish on a real recording.
521 521
     // First: Unpublish imported links associated to the recording.
@@ -533,7 +533,7 @@  discard block
 block discarded – undo
533 533
         'status' => bigbluebuttonbn_publish_recordings(
534 534
             $params['id'], 'false'
535 535
         )
536
-      );
536
+        );
537 537
 }
538 538
 
539 539
 /**
@@ -552,7 +552,7 @@  discard block
 block discarded – undo
552 552
             'status' => bigbluebuttonbn_protect_recording_imported(
553 553
                 $recordings[$params['id']]['imported'], true
554 554
             )
555
-          );
555
+            );
556 556
     }
557 557
     // As the recordingid was not identified as imported recording link, execute protect on a real recording.
558 558
     // First: Protect imported links associated to the recording.
@@ -570,7 +570,7 @@  discard block
 block discarded – undo
570 570
         'status' => bigbluebuttonbn_update_recordings(
571 571
             $params['id'], array('protect' => 'true')
572 572
         )
573
-      );
573
+        );
574 574
 }
575 575
 
576 576
 /**
@@ -589,7 +589,7 @@  discard block
 block discarded – undo
589 589
             'status' => bigbluebuttonbn_delete_recording_imported(
590 590
                 $recordings[$params['id']]['imported']
591 591
             )
592
-          );
592
+            );
593 593
     }
594 594
     // As the recordingid was not identified as imported recording link, execute delete on a real recording.
595 595
     // First: Delete imported links associated to the recording.
@@ -603,7 +603,7 @@  discard block
 block discarded – undo
603 603
     // Second: Execute the actual delete.
604 604
     return array(
605 605
         'status' => bigbluebuttonbn_delete_recordings($params['id'])
606
-      );
606
+        );
607 607
 }
608 608
 
609 609
 /**
@@ -621,7 +621,7 @@  discard block
 block discarded – undo
621 621
             'status' => bigbluebuttonbn_update_recording_imported(
622 622
                 $recordings[$params['id']]['imported'], json_decode($params['meta'], true)
623 623
             )
624
-          );
624
+            );
625 625
     }
626 626
 
627 627
     // As the recordingid was not identified as imported recording link, execute update on a real recording.
@@ -631,7 +631,7 @@  discard block
 block discarded – undo
631 631
         'status' => bigbluebuttonbn_update_recordings(
632 632
             $params['id'], json_decode($params['meta'])
633 633
         )
634
-      );
634
+        );
635 635
 }
636 636
 
637 637
 /**
@@ -802,10 +802,10 @@  discard block
 block discarded – undo
802 802
     $params['recording_import'] = ['id' => 'The recordingID must be specified.'];
803 803
     $params['recording_ready'] = [
804 804
             'signed_parameters' => 'A JWT encoded string must be included as [signed_parameters].'
805
-          ];
805
+            ];
806 806
     $params['live_session_events'] = [
807 807
             'signed_parameters' => 'A JWT encoded string must be included as [signed_parameters].'
808
-          ];
808
+            ];
809 809
     return $params;
810 810
 }
811 811
 
Please login to merge, or discard this patch.
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -23,8 +23,8 @@  discard block
 block discarded – undo
23 23
  * @author    Jesus Federico  (jesus [at] blindsidenetworks [dt] com)
24 24
  */
25 25
 
26
-require_once(dirname(dirname(dirname(__FILE__))).'/config.php');
27
-require_once(dirname(__FILE__).'/locallib.php');
26
+require_once(dirname(dirname(dirname(__FILE__))) . '/config.php');
27
+require_once(dirname(__FILE__) . '/locallib.php');
28 28
 
29 29
 use \Firebase\JWT\JWT;
30 30
 
@@ -42,13 +42,13 @@  discard block
 block discarded – undo
42 42
 require_login(0, false);
43 43
 
44 44
 if (empty($params['action'])) {
45
-    header('HTTP/1.0 400 Bad Request. Parameter ['.$params['action'].'] was not included');
45
+    header('HTTP/1.0 400 Bad Request. Parameter [' . $params['action'] . '] was not included');
46 46
     return;
47 47
 }
48 48
 
49 49
 $error = bigbluebuttonbn_broker_validate_parameters($params);
50 50
 if (!empty($error)) {
51
-    header('HTTP/1.0 400 Bad Request. '.$error);
51
+    header('HTTP/1.0 400 Bad Request. ' . $error);
52 52
     return;
53 53
 }
54 54
 
@@ -132,11 +132,11 @@  discard block
 block discarded – undo
132 132
         bigbluebuttonbn_broker_live_session_events($params, $bigbluebuttonbn, $cm);
133 133
         return;
134 134
     }
135
-    header('HTTP/1.0 400 Bad request. The action '. $a . ' doesn\'t exist');
135
+    header('HTTP/1.0 400 Bad request. The action ' . $a . ' doesn\'t exist');
136 136
     return;
137 137
 
138 138
 } catch (Exception $e) {
139
-    header('HTTP/1.0 500 Internal Server Error. '.$e->getMessage());
139
+    header('HTTP/1.0 500 Internal Server Error. ' . $e->getMessage());
140 140
     return;
141 141
 }
142 142
 
@@ -322,7 +322,7 @@  discard block
 block discarded – undo
322 322
 function bigbluebuttonbn_broker_recording_info_current($recording, $params) {
323 323
     $callbackresponse['status'] = true;
324 324
     $callbackresponse['found'] = true;
325
-    $callbackresponse['published'] = (string) $recording['published'];
325
+    $callbackresponse['published'] = (string)$recording['published'];
326 326
     if (!isset($params['meta']) || empty($params['meta'])) {
327 327
         return $callbackresponse;
328 328
     }
@@ -650,8 +650,8 @@  discard block
 block discarded – undo
650 650
         $decodedparameters = JWT::decode($params['signed_parameters'],
651 651
             \mod_bigbluebuttonbn\locallib\config::get('shared_secret'), array('HS256'));
652 652
     } catch (Exception $e) {
653
-        $error = 'Caught exception: '.$e->getMessage();
654
-        header('HTTP/1.0 400 Bad Request. '.$error);
653
+        $error = 'Caught exception: ' . $e->getMessage();
654
+        header('HTTP/1.0 400 Bad Request. ' . $error);
655 655
         return;
656 656
     }
657 657
     // Validate that the bigbluebuttonbn activity corresponds to the meeting_id received.
@@ -667,8 +667,8 @@  discard block
 block discarded – undo
667 667
         bigbluebuttonbn_send_notification_recording_ready($bigbluebuttonbn);
668 668
         header('HTTP/1.0 202 Accepted');
669 669
     } catch (Exception $e) {
670
-        $error = 'Caught exception: '.$e->getMessage();
671
-        header('HTTP/1.0 503 Service Unavailable. '.$error);
670
+        $error = 'Caught exception: ' . $e->getMessage();
671
+        header('HTTP/1.0 503 Service Unavailable. ' . $error);
672 672
     }
673 673
 }
674 674
 
@@ -689,13 +689,13 @@  discard block
 block discarded – undo
689 689
     $importrecordings = $SESSION->bigbluebuttonbn_importrecordings;
690 690
     if (!isset($importrecordings[$params['id']])) {
691 691
         $error = "Recording {$params['id']} could not be found. It can not be imported";
692
-        header('HTTP/1.0 404 Not found. '.$error);
692
+        header('HTTP/1.0 404 Not found. ' . $error);
693 693
         return;
694 694
     }
695 695
     $callbackresponse = array('status' => true);
696 696
     $importrecordings[$params['id']]['imported'] = true;
697 697
     $overrides = array('meetingid' => $importrecordings[$params['id']]['meetingID']);
698
-    $meta = '{"recording":'.json_encode($importrecordings[$params['id']]).'}';
698
+    $meta = '{"recording":' . json_encode($importrecordings[$params['id']]) . '}';
699 699
     bigbluebuttonbn_logs($bbbsession, BIGBLUEBUTTONBN_LOG_EVENT_IMPORT, $overrides, $meta);
700 700
     // Moodle event logger: Create an event for recording imported.
701 701
     if (isset($bbbsession['bigbluebutton']) && isset($bbbsession['cm'])) {
@@ -721,8 +721,8 @@  discard block
 block discarded – undo
721 721
         $decodedparameters = JWT::decode($params['signed_parameters'],
722 722
             \mod_bigbluebuttonbn\locallib\config::get('shared_secret'), array('HS256'));
723 723
     } catch (Exception $e) {
724
-        $error = 'Caught exception: '.$e->getMessage();
725
-        header('HTTP/1.0 400 Bad Request. '.$error);
724
+        $error = 'Caught exception: ' . $e->getMessage();
725
+        header('HTTP/1.0 400 Bad Request. ' . $error);
726 726
         return;
727 727
     }
728 728
     // Validate that the bigbluebuttonbn activity corresponds to the meeting_id received.
@@ -763,7 +763,7 @@  discard block
 block discarded – undo
763 763
     }
764 764
     $action = strtolower($params['action']);
765 765
     if (!array_key_exists($action, $requiredparams)) {
766
-        return 'Action '.$params['action'].' can not be performed.';
766
+        return 'Action ' . $params['action'] . ' can not be performed.';
767 767
     }
768 768
     return bigbluebuttonbn_broker_validate_parameters_message($params, $requiredparams[$action]);
769 769
 }
Please login to merge, or discard this patch.
view.php 2 patches
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -434,12 +434,12 @@  discard block
 block discarded – undo
434 434
     $recordings = bigbluebuttonbn_get_recordings(
435 435
         $bbbsession['course']->id, $bigbluebuttonbnid, $enabledfeatures['showroom'],
436 436
         $bbbsession['bigbluebuttonbn']->recordings_deleted
437
-      );
437
+        );
438 438
     if ($enabledfeatures['importrecordings']) {
439 439
         // Get recording links.
440 440
         $recordingsimported = bigbluebuttonbn_get_recordings_imported_array(
441 441
             $bbbsession['course']->id, $bigbluebuttonbnid, $enabledfeatures['showroom']
442
-          );
442
+            );
443 443
         /* Perform aritmetic addition instead of merge so the imported recordings corresponding to existent
444 444
          * recordings are not included. */
445 445
         $recordings += $recordingsimported;
@@ -453,7 +453,7 @@  discard block
 block discarded – undo
453 453
     // JavaScript variables for recordings.
454 454
     $jsvars += array(
455 455
             'recordings_html' => $bbbsession['bigbluebuttonbn']->recordings_html == '1',
456
-          );
456
+            );
457 457
     // If there are meetings with recordings load the data to the table.
458 458
     if ($bbbsession['bigbluebuttonbn']->recordings_html) {
459 459
         // Render a plain html table.
@@ -463,7 +463,7 @@  discard block
 block discarded – undo
463 463
     $jsvars += array(
464 464
             'columns' => bigbluebuttonbn_get_recording_columns($bbbsession),
465 465
             'data' => bigbluebuttonbn_get_recording_data($bbbsession, $recordings),
466
-          );
466
+            );
467 467
     // Render a YUI table.
468 468
     return html_writer::div('', '', array('id' => 'bigbluebuttonbn_recordings_table'));
469 469
 }
@@ -483,10 +483,10 @@  discard block
 block discarded – undo
483 483
     }
484 484
     $button = html_writer::tag('input', '',
485 485
         array('type' => 'button',
486
-              'value' => get_string('view_recording_button_import', 'bigbluebuttonbn'),
487
-              'class' => 'btn btn-secondary',
488
-              'onclick' => 'window.location=\''.$CFG->wwwroot.'/mod/bigbluebuttonbn/import_view.php?bn='.
489
-                  $bbbsession['bigbluebuttonbn']->id.'\''));
486
+                'value' => get_string('view_recording_button_import', 'bigbluebuttonbn'),
487
+                'class' => 'btn btn-secondary',
488
+                'onclick' => 'window.location=\''.$CFG->wwwroot.'/mod/bigbluebuttonbn/import_view.php?bn='.
489
+                    $bbbsession['bigbluebuttonbn']->id.'\''));
490 490
     $output  = html_writer::empty_tag('br');
491 491
     $output .= html_writer::tag('span', $button, array('id' => 'import_recording_links_button'));
492 492
     $output .= html_writer::tag('span', '', array('id' => 'import_recording_links_table'));
@@ -565,5 +565,5 @@  discard block
 block discarded – undo
565 565
         (string)\mod_bigbluebuttonbn\locallib\config::get('general_warning_button_href'),
566 566
         (string)\mod_bigbluebuttonbn\locallib\config::get('general_warning_button_text'),
567 567
         (string)\mod_bigbluebuttonbn\locallib\config::get('general_warning_button_class')
568
-      );
568
+        );
569 569
 }
Please login to merge, or discard this patch.
Spacing   +29 added lines, -29 removed lines patch added patch discarded remove patch
@@ -24,8 +24,8 @@  discard block
 block discarded – undo
24 24
  * @author    Fred Dixon  (ffdixon [at] blindsidenetworks [dt] com)
25 25
  */
26 26
 
27
-require_once(dirname(dirname(dirname(__FILE__))).'/config.php');
28
-require_once(dirname(__FILE__).'/locallib.php');
27
+require_once(dirname(dirname(dirname(__FILE__))) . '/config.php');
28
+require_once(dirname(__FILE__) . '/locallib.php');
29 29
 
30 30
 $id = required_param('id', PARAM_INT);
31 31
 $bn = optional_param('n', 0, PARAM_INT);
@@ -60,19 +60,19 @@  discard block
 block discarded – undo
60 60
 if (is_null($serverversion)) {
61 61
     if ($bbbsession['administrator']) {
62 62
         print_error('view_error_unable_join', 'bigbluebuttonbn',
63
-            $CFG->wwwroot.'/admin/settings.php?section=modsettingbigbluebuttonbn');
63
+            $CFG->wwwroot . '/admin/settings.php?section=modsettingbigbluebuttonbn');
64 64
         exit;
65 65
     }
66 66
     if ($bbbsession['moderator']) {
67 67
         print_error('view_error_unable_join_teacher', 'bigbluebuttonbn',
68
-            $CFG->wwwroot.'/course/view.php?id='.$bigbluebuttonbn->course);
68
+            $CFG->wwwroot . '/course/view.php?id=' . $bigbluebuttonbn->course);
69 69
         exit;
70 70
     }
71 71
     print_error('view_error_unable_join_student', 'bigbluebuttonbn',
72
-        $CFG->wwwroot.'/course/view.php?id='.$bigbluebuttonbn->course);
72
+        $CFG->wwwroot . '/course/view.php?id=' . $bigbluebuttonbn->course);
73 73
     exit;
74 74
 }
75
-$bbbsession['serverversion'] = (string) $serverversion;
75
+$bbbsession['serverversion'] = (string)$serverversion;
76 76
 
77 77
 // Mark viewed by user (if required).
78 78
 $completion = new completion_info($course);
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
 
81 81
 // Print the page header.
82 82
 $PAGE->set_context($context);
83
-$PAGE->set_url($CFG->wwwroot.'/mod/bigbluebuttonbn/view.php', array('id' => $cm->id));
83
+$PAGE->set_url($CFG->wwwroot . '/mod/bigbluebuttonbn/view.php', array('id' => $cm->id));
84 84
 $PAGE->set_title(format_string($bigbluebuttonbn->name));
85 85
 $PAGE->set_cacheable(false);
86 86
 $PAGE->set_heading($course->fullname);
@@ -90,11 +90,11 @@  discard block
 block discarded – undo
90 90
 if (!has_capability('moodle/category:manage', $context) && !has_capability('mod/bigbluebuttonbn:join', $context)) {
91 91
     echo $OUTPUT->header();
92 92
     if (isguestuser()) {
93
-        echo $OUTPUT->confirm('<p>'.get_string('view_noguests', 'bigbluebuttonbn').'</p>'.get_string('liketologin'),
94
-            get_login_url(), $CFG->wwwroot.'/course/view.php?id='.$course->id);
93
+        echo $OUTPUT->confirm('<p>' . get_string('view_noguests', 'bigbluebuttonbn') . '</p>' . get_string('liketologin'),
94
+            get_login_url(), $CFG->wwwroot . '/course/view.php?id=' . $course->id);
95 95
     } else {
96
-        echo $OUTPUT->confirm('<p>'.get_string('view_nojoin', 'bigbluebuttonbn').'</p>'.get_string('liketologin'),
97
-            get_login_url(), $CFG->wwwroot.'/course/view.php?id='.$course->id);
96
+        echo $OUTPUT->confirm('<p>' . get_string('view_nojoin', 'bigbluebuttonbn') . '</p>' . get_string('liketologin'),
97
+            get_login_url(), $CFG->wwwroot . '/course/view.php?id=' . $course->id);
98 98
     }
99 99
     echo $OUTPUT->footer();
100 100
     exit;
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
 
103 103
 // Operation URLs.
104 104
 $bbbsession['bigbluebuttonbnURL'] = $CFG->wwwroot . '/mod/bigbluebuttonbn/view.php?id=' . $bbbsession['cm']->id;
105
-$bbbsession['logoutURL'] = $CFG->wwwroot . '/mod/bigbluebuttonbn/bbb_view.php?action=logout&id='.$id .
105
+$bbbsession['logoutURL'] = $CFG->wwwroot . '/mod/bigbluebuttonbn/bbb_view.php?action=logout&id=' . $id .
106 106
     '&bn=' . $bbbsession['bigbluebuttonbn']->id;
107 107
 $bbbsession['recordingReadyURL'] = $CFG->wwwroot . '/mod/bigbluebuttonbn/bbb_broker.php?action=recording_' .
108 108
     'ready&bigbluebuttonbn=' . $bbbsession['bigbluebuttonbn']->id;
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
 echo $OUTPUT->footer();
123 123
 
124 124
 // Shows version as a comment.
125
-echo '<!-- '.$bbbsession['originTag'].' -->'."\n";
125
+echo '<!-- ' . $bbbsession['originTag'] . ' -->' . "\n";
126 126
 
127 127
 // Initialize session variable used across views.
128 128
 $SESSION->bigbluebuttonbn_bbbsession = $bbbsession;
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
     $bbbsession['modPW'] = $bbbsession['bigbluebuttonbn']->moderatorpass;
152 152
     $bbbsession['viewerPW'] = $bbbsession['bigbluebuttonbn']->viewerpass;
153 153
     // Database info related to the activity.
154
-    $bbbsession['meetingid'] = $bbbsession['bigbluebuttonbn']->meetingid.'-'.$bbbsession['course']->id.'-'.
154
+    $bbbsession['meetingid'] = $bbbsession['bigbluebuttonbn']->meetingid . '-' . $bbbsession['course']->id . '-' .
155 155
         $bbbsession['bigbluebuttonbn']->id;
156 156
     $bbbsession['meetingname'] = $bbbsession['bigbluebuttonbn']->name;
157 157
     $bbbsession['meetingdescription'] = $bbbsession['bigbluebuttonbn']->intro;
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
         $bbbsession['welcome'] = get_string('mod_form_field_welcome_default', 'bigbluebuttonbn');
172 172
     }
173 173
     if ($bbbsession['bigbluebuttonbn']->record) {
174
-        $bbbsession['welcome'] .= '<br><br>'.get_string('bbbrecordwarning', 'bigbluebuttonbn');
174
+        $bbbsession['welcome'] .= '<br><br>' . get_string('bbbrecordwarning', 'bigbluebuttonbn');
175 175
     }
176 176
     $bbbsession['openingtime'] = $bbbsession['bigbluebuttonbn']->openingtime;
177 177
     $bbbsession['closingtime'] = $bbbsession['bigbluebuttonbn']->closingtime;
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
     $bbbsession['originServerName'] = $parsedurl['host'];
185 185
     $bbbsession['originServerUrl'] = $CFG->wwwroot;
186 186
     $bbbsession['originServerCommonName'] = '';
187
-    $bbbsession['originTag'] = 'moodle-mod_bigbluebuttonbn ('.get_config('mod_bigbluebuttonbn', 'version').')';
187
+    $bbbsession['originTag'] = 'moodle-mod_bigbluebuttonbn (' . get_config('mod_bigbluebuttonbn', 'version') . ')';
188 188
     $bbbsession['bnserver'] = bigbluebuttonbn_is_bn_server();
189 189
 }
190 190
 
@@ -239,8 +239,8 @@  discard block
 block discarded – undo
239 239
         $groupname = groups_get_group_name($bbbsession['group']);
240 240
     }
241 241
     // Assign group default values.
242
-    $bbbsession['meetingid'] .= '['.$bbbsession['group'].']';
243
-    $bbbsession['meetingname'] .= ' ('.$groupname.')';
242
+    $bbbsession['meetingid'] .= '[' . $bbbsession['group'] . ']';
243
+    $bbbsession['meetingname'] .= ' (' . $groupname . ')';
244 244
     if (count($groups) == 0) {
245 245
         // Only the All participants group exists.
246 246
         bigbluebuttonbn_view_message_box($bbbsession, get_string('view_groups_notenrolled_warning', 'bigbluebuttonbn'), 'info');
@@ -250,7 +250,7 @@  discard block
 block discarded – undo
250 250
     if (has_capability('moodle/site:accessallgroups', $context)) {
251 251
         bigbluebuttonbn_view_message_box($bbbsession, get_string('view_groups_selection_warning', 'bigbluebuttonbn'));
252 252
     }
253
-    $urltoroot = $CFG->wwwroot.'/mod/bigbluebuttonbn/view.php?id='.$bbbsession['cm']->id;
253
+    $urltoroot = $CFG->wwwroot . '/mod/bigbluebuttonbn/view.php?id=' . $bbbsession['cm']->id;
254 254
     groups_print_activity_menu($bbbsession['cm'], $urltoroot);
255 255
     echo '<br><br>';
256 256
 }
@@ -317,7 +317,7 @@  discard block
 block discarded – undo
317 317
         $recordingsdisabled = get_string('view_message_recordings_disabled', 'bigbluebuttonbn');
318 318
         $output .= bigbluebuttonbn_render_warning($recordingsdisabled, 'danger');
319 319
     }
320
-    echo $output.html_writer::empty_tag('br').html_writer::empty_tag('br').html_writer::empty_tag('br');
320
+    echo $output . html_writer::empty_tag('br') . html_writer::empty_tag('br') . html_writer::empty_tag('br');
321 321
     $PAGE->requires->yui_module('moodle-mod_bigbluebuttonbn-broker', 'M.mod_bigbluebuttonbn.broker.init', array($jsvars));
322 322
 }
323 323
 
@@ -386,12 +386,12 @@  discard block
 block discarded – undo
386 386
     // JavaScript variables for room.
387 387
     $openingtime = '';
388 388
     if ($bbbsession['openingtime']) {
389
-        $openingtime = get_string('mod_form_field_openingtime', 'bigbluebuttonbn').': '.
389
+        $openingtime = get_string('mod_form_field_openingtime', 'bigbluebuttonbn') . ': ' .
390 390
             userdate($bbbsession['openingtime']);
391 391
     }
392 392
     $closingtime = '';
393 393
     if ($bbbsession['closingtime']) {
394
-        $closingtime = get_string('mod_form_field_closingtime', 'bigbluebuttonbn').': '.
394
+        $closingtime = get_string('mod_form_field_closingtime', 'bigbluebuttonbn') . ': ' .
395 395
             userdate($bbbsession['closingtime']);
396 396
     }
397 397
     $jsvars += array(
@@ -408,7 +408,7 @@  discard block
 block discarded – undo
408 408
     $output .= $OUTPUT->box_end();
409 409
     // Action button box.
410 410
     $output .= $OUTPUT->box_start('generalbox boxaligncenter', 'bigbluebuttonbn_view_action_button_box');
411
-    $output .= '<br><br><span id="join_button"></span>&nbsp;<span id="end_button"></span>'."\n";
411
+    $output .= '<br><br><span id="join_button"></span>&nbsp;<span id="end_button"></span>' . "\n";
412 412
     $output .= $OUTPUT->box_end();
413 413
     if ($activity == 'ended') {
414 414
         $output .= bigbluebuttonbn_view_ended($bbbsession);
@@ -457,7 +457,7 @@  discard block
 block discarded – undo
457 457
     // If there are meetings with recordings load the data to the table.
458 458
     if ($bbbsession['bigbluebuttonbn']->recordings_html) {
459 459
         // Render a plain html table.
460
-        return bigbluebuttonbn_output_recording_table($bbbsession, $recordings)."\n";
460
+        return bigbluebuttonbn_output_recording_table($bbbsession, $recordings) . "\n";
461 461
     }
462 462
     // JavaScript variables for recordings with YUI.
463 463
     $jsvars += array(
@@ -485,8 +485,8 @@  discard block
 block discarded – undo
485 485
         array('type' => 'button',
486 486
               'value' => get_string('view_recording_button_import', 'bigbluebuttonbn'),
487 487
               'class' => 'btn btn-secondary',
488
-              'onclick' => 'window.location=\''.$CFG->wwwroot.'/mod/bigbluebuttonbn/import_view.php?bn='.
489
-                  $bbbsession['bigbluebuttonbn']->id.'\''));
488
+              'onclick' => 'window.location=\'' . $CFG->wwwroot . '/mod/bigbluebuttonbn/import_view.php?bn=' .
489
+                  $bbbsession['bigbluebuttonbn']->id . '\''));
490 490
     $output  = html_writer::empty_tag('br');
491 491
     $output .= html_writer::tag('span', $button, array('id' => 'import_recording_links_button'));
492 492
     $output .= html_writer::tag('span', '', array('id' => 'import_recording_links_table'));
@@ -505,10 +505,10 @@  discard block
 block discarded – undo
505 505
     if (!is_null($bbbsession['presentation']['url'])) {
506 506
         $attributes = array('title' => $bbbsession['presentation']['name']);
507 507
         $icon = new pix_icon($bbbsession['presentation']['icon'], $bbbsession['presentation']['mimetype_description']);
508
-        return '<h4>'.get_string('view_section_title_presentation', 'bigbluebuttonbn').'</h4>'.
509
-                $OUTPUT->action_icon($bbbsession['presentation']['url'], $icon, null, array(), false).
508
+        return '<h4>' . get_string('view_section_title_presentation', 'bigbluebuttonbn') . '</h4>' .
509
+                $OUTPUT->action_icon($bbbsession['presentation']['url'], $icon, null, array(), false) .
510 510
                 $OUTPUT->action_link($bbbsession['presentation']['url'],
511
-                $bbbsession['presentation']['name'], null, $attributes).'<br><br>';
511
+                $bbbsession['presentation']['name'], null, $attributes) . '<br><br>';
512 512
     }
513 513
     return '';
514 514
 }
Please login to merge, or discard this patch.
classes/event/bigbluebuttonbn_recording_deleted.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
      */
41 41
     protected function init() {
42 42
         parent::init();
43
-        $this->description = "The user with id '##userid' has deleted a recording with id ".
43
+        $this->description = "The user with id '##userid' has deleted a recording with id " .
44 44
             "'##other' from the course id '##contextinstanceid'.";
45 45
     }
46 46
 
Please login to merge, or discard this patch.
classes/event/bigbluebuttonbn_meeting_ended.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,8 +40,8 @@
 block discarded – undo
40 40
      */
41 41
     protected function init() {
42 42
         parent::init();
43
-        $this->description = "A bigbluebutton meeting for the bigbluebuttonbn activity with id ".
44
-            "'##objectid' for the course id '##contextinstanceid' has been forcibly ".
43
+        $this->description = "A bigbluebutton meeting for the bigbluebuttonbn activity with id " .
44
+            "'##objectid' for the course id '##contextinstanceid' has been forcibly " .
45 45
             "ended by the user with id '##userid'.";
46 46
     }
47 47
 
Please login to merge, or discard this patch.
classes/event/bigbluebuttonbn_recording_edited.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
      */
41 41
     protected function init() {
42 42
         parent::init();
43
-        $this->description = "The user with id '##userid' has edited a recording with id ".
43
+        $this->description = "The user with id '##userid' has edited a recording with id " .
44 44
             "'##other' in the course id '##contextinstanceid'.";
45 45
     }
46 46
 
Please login to merge, or discard this patch.
classes/event/bigbluebuttonbn_recording_published.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
      */
41 41
     protected function init() {
42 42
         parent::init();
43
-        $this->description = "The user with id '##userid' has published a recording with id ".
43
+        $this->description = "The user with id '##userid' has published a recording with id " .
44 44
             "'##other' in the course id '##contextinstanceid'.";
45 45
     }
46 46
 
Please login to merge, or discard this patch.
classes/event/bigbluebuttonbn_meeting_left.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,8 +40,8 @@
 block discarded – undo
40 40
      */
41 41
     protected function init() {
42 42
         parent::init();
43
-        $this->description = "The user with id '##userid' has left a bigbluebutton meeting for ".
44
-            "the bigbluebuttonbn activity with id '##objectid' for the course id ".
43
+        $this->description = "The user with id '##userid' has left a bigbluebutton meeting for " .
44
+            "the bigbluebuttonbn activity with id '##objectid' for the course id " .
45 45
             "'##contextinstanceid'.";
46 46
     }
47 47
 
Please login to merge, or discard this patch.
classes/event/bigbluebuttonbn_meeting_created.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
      */
41 41
     protected function init() {
42 42
         parent::init();
43
-        $this->description = "The user with id '##userid' created a bigbluebutton meeting for".
43
+        $this->description = "The user with id '##userid' created a bigbluebutton meeting for" .
44 44
             "the bigbluebuttonbn activity with id '##objectid' for the course id '##contextinstanceid'.";
45 45
     }
46 46
 
Please login to merge, or discard this patch.
classes/event/bigbluebuttonbn_recording_imported.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
      */
41 41
     protected function init() {
42 42
         parent::init();
43
-        $this->description = "The user with id '##userid' has imported a recording with id ".
43
+        $this->description = "The user with id '##userid' has imported a recording with id " .
44 44
             "'##other' in the course id '##contextinstanceid'.";
45 45
     }
46 46
 
Please login to merge, or discard this patch.