Completed
Pull Request — v2.2-stable (#68)
by
unknown
01:59
created
config-dist.php 1 patch
Indentation   +8 added lines, -8 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.
@@ -259,13 +259,13 @@  discard block
 block discarded – undo
259 259
  * $CFG->bigbluebuttonbn['recordings_imported_editable'] = 1;
260 260
  */
261 261
 
262
- /*
262
+    /*
263 263
   * When the value is set to 1 (checked) the bigbluebuttonbn resources
264 264
   * will show the recodings with thumbnails.
265 265
   * $CFG->bigbluebuttonbn['recordings_preview_default'] = 1;
266 266
   */
267 267
 
268
-  /*
268
+    /*
269 269
    * When the value is set to 1 (checked) the 'preview ui' capability can be
270 270
    * enabled/disabled by the user creating or editing the resource.
271 271
    * $CFG->bigbluebuttonbn['recordings_preview_editable'] = 0;
@@ -310,27 +310,27 @@  discard block
 block discarded – undo
310 310
  * $CFG->bigbluebuttonbn['general_warning_message'] = "Would you like to record your BigBlueButton sessions for later viewing? ";
311 311
  */
312 312
 
313
- /*
313
+    /*
314 314
  * The warning box is always shown to administrators, but it is also possible to define other roles
315 315
  * to whom the it will be shown. The roles are based on the shortnames defined by Moodle:
316 316
  *     'manager,coursecreator,editingteacher,teacher,student,guest,user,frontpage'
317 317
  * $CFG->bigbluebuttonbn['general_warning_roles'] = 'editingteacher,teacher';
318 318
  */
319 319
 
320
- /*
320
+    /*
321 321
  * As the general_warning_message is shown in a box, its type can be defined with general_warning_type
322 322
  * The default type is 'info' which is normaly rendered in blue when using a bootstrap theme.
323 323
  * All the modifiers for boxed in bootstrap can be used [info|success|warning|danger].
324 324
  * $CFG->bigbluebuttonbn['general_warning_box_type'] = 'info';
325 325
  */
326 326
 
327
- /*
327
+    /*
328 328
  * Additionally, when general_warning_button_href value is different than "", a button
329 329
  * can also be shown right after the message.
330 330
  * $CFG->bigbluebuttonbn['general_warning_button_href'] = "http://blindsidenetworks.com/";
331 331
  */
332 332
 
333
- /*
333
+    /*
334 334
  * Finally, the text and class for the button can be modified
335 335
  * $CFG->bigbluebuttonbn['general_warning_button_text'] = "Upgrade your site";
336 336
  * $CFG->bigbluebuttonbn['general_warning_button_class'] = "btn btn-primary";
Please login to merge, or discard this patch.
index.php 1 patch
Spacing   +16 added lines, -16 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
 $a = optional_param('a', 0, PARAM_INT);
@@ -89,13 +89,13 @@  discard block
 block discarded – undo
89 89
     if ($moderator || $administrator) {
90 90
         bigbluebuttonbn_event_log(BIGBLUEBUTTON_EVENT_MEETING_ENDED, $bigbluebuttonbn, $cm);
91 91
         echo get_string('index_ending', 'bigbluebuttonbn');
92
-        $meetingid = $bigbluebuttonbn->meetingid.'-'.$course->id.'-'.$bigbluebuttonbn->id;
92
+        $meetingid = $bigbluebuttonbn->meetingid . '-' . $course->id . '-' . $bigbluebuttonbn->id;
93 93
         if ($g != '0') {
94
-            $meetingid .= '['.$g.']';
94
+            $meetingid .= '[' . $g . ']';
95 95
         }
96 96
 
97 97
         bigbluebuttonbn_end_meeting($meetingid, $bigbluebuttonbn->moderatorpass);
98
-        redirect('index.php?id='.$id);
98
+        redirect('index.php?id=' . $id);
99 99
     }
100 100
 }
101 101
 
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
         // Add a the data for the bigbluebuttonbn instance.
111 111
         $groupobj = null;
112 112
         if (groups_get_activity_groupmode($cm) > 0) {
113
-            $groupobj = (object) array('id' => 0, 'name' => get_string('allparticipants'));
113
+            $groupobj = (object)array('id' => 0, 'name' => get_string('allparticipants'));
114 114
         }
115 115
         $table->data[] = bigbluebuttonbn_index_display_room($canmoderate, $course, $bigbluebuttonbn, $groupobj);
116 116
         // Add a the data for the groups belonging to the bigbluebuttonbn instance, if any.
@@ -136,12 +136,12 @@  discard block
 block discarded – undo
136 136
  * @return array
137 137
  */
138 138
 function bigbluebuttonbn_index_display_room($moderator, $course, $bigbluebuttonbn, $groupobj = null) {
139
-    $meetingid = $bigbluebuttonbn->meetingid.'-'.$course->id.'-'.$bigbluebuttonbn->id;
139
+    $meetingid = $bigbluebuttonbn->meetingid . '-' . $course->id . '-' . $bigbluebuttonbn->id;
140 140
     $paramgroup = '';
141 141
     $groupname = '';
142 142
     if ($groupobj) {
143
-        $meetingid .= '['.$groupobj->id.']';
144
-        $paramgroup = '&group='.$groupobj->id;
143
+        $meetingid .= '[' . $groupobj->id . ']';
144
+        $paramgroup = '&group=' . $groupobj->id;
145 145
         $groupname = $groupobj->name;
146 146
     }
147 147
     $meetinginfo = bigbluebuttonbn_get_meeting_info_array($meetingid);
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
         return;
157 157
     }
158 158
     // Output Users in the meeting.
159
-    $joinurl = '<a href="view.php?id='.$bigbluebuttonbn->coursemodule.$paramgroup.'">'.format_string($bigbluebuttonbn->name).'</a>';
159
+    $joinurl = '<a href="view.php?id=' . $bigbluebuttonbn->coursemodule . $paramgroup . '">' . format_string($bigbluebuttonbn->name) . '</a>';
160 160
     $group = $groupname;
161 161
     $users = '';
162 162
     $viewerlist = '';
@@ -201,7 +201,7 @@  discard block
 block discarded – undo
201 201
         $attendeecount = 0;
202 202
         foreach ($meetinginfo['attendees']->attendee as $attendee) {
203 203
             if ($attendee->role == $role) {
204
-                $attendeelist .= ($attendeecount++ > 0 ? ', ' : '').$attendee->fullName;
204
+                $attendeelist .= ($attendeecount++ > 0 ? ', ' : '') . $attendee->fullName;
205 205
             }
206 206
         }
207 207
     }
@@ -235,17 +235,17 @@  discard block
 block discarded – undo
235 235
 function bigbluebuttonbn_index_display_room_actions($moderator, $course, $bigbluebuttonbn, $groupobj = null) {
236 236
     $actions = '';
237 237
     if ($moderator) {
238
-        $actions .= '<form name="form1" method="post" action="">'."\n";
239
-        $actions .= '  <INPUT type="hidden" name="id" value="'.$course->id.'">'."\n";
240
-        $actions .= '  <INPUT type="hidden" name="a" value="'.$bigbluebuttonbn->id.'">'."\n";
238
+        $actions .= '<form name="form1" method="post" action="">' . "\n";
239
+        $actions .= '  <INPUT type="hidden" name="id" value="' . $course->id . '">' . "\n";
240
+        $actions .= '  <INPUT type="hidden" name="a" value="' . $bigbluebuttonbn->id . '">' . "\n";
241 241
         if ($groupobj != null) {
242
-            $actions .= '  <INPUT type="hidden" name="g" value="'.$groupobj->id.'">'."\n";
242
+            $actions .= '  <INPUT type="hidden" name="g" value="' . $groupobj->id . '">' . "\n";
243 243
         }
244 244
         $actions .= '  <INPUT type="submit" name="submit" value="' .
245 245
             get_string('view_conference_action_end', 'bigbluebuttonbn') .
246 246
             '" class="btn btn-primary btn-sm" onclick="return confirm(\'' .
247 247
             get_string('index_confirm_end', 'bigbluebuttonbn') . '\')">' . "\n";
248
-        $actions .= '</form>'."\n";
248
+        $actions .= '</form>' . "\n";
249 249
     }
250 250
     return $actions;
251 251
 }
Please login to merge, or discard this patch.
classes/locallib/bigbluebutton.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
             $params .= '&' . $key . '=' . urlencode($value);
53 53
         }
54 54
         foreach ($metadata as $key => $value) {
55
-            $params .= '&' . 'meta_' . $key.'=' . urlencode($value);
55
+            $params .= '&' . 'meta_' . $key . '=' . urlencode($value);
56 56
         }
57 57
         return $baseurl . $params . '&checksum=' . sha1($action . $params . self::sanitized_secret());
58 58
     }
Please login to merge, or discard this patch.
view.php 2 patches
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.
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
         if ($bbbsession['bigbluebuttonbn']->recordings_imported) {
@@ -457,7 +457,7 @@  discard block
 block discarded – undo
457 457
     // JavaScript variables for recordings.
458 458
     $jsvars += array(
459 459
             'recordings_html' => $bbbsession['bigbluebuttonbn']->recordings_html == '1',
460
-          );
460
+            );
461 461
     // If there are meetings with recordings load the data to the table.
462 462
     if ($bbbsession['bigbluebuttonbn']->recordings_html) {
463 463
         // Render a plain html table.
@@ -467,7 +467,7 @@  discard block
 block discarded – undo
467 467
     $jsvars += array(
468 468
             'columns' => bigbluebuttonbn_get_recording_columns($bbbsession),
469 469
             'data' => bigbluebuttonbn_get_recording_data($bbbsession, $recordings),
470
-          );
470
+            );
471 471
     // Render a YUI table.
472 472
     return html_writer::div('', '', array('id' => 'bigbluebuttonbn_recordings_table'));
473 473
 }
@@ -487,10 +487,10 @@  discard block
 block discarded – undo
487 487
     }
488 488
     $button = html_writer::tag('input', '',
489 489
         array('type' => 'button',
490
-              'value' => get_string('view_recording_button_import', 'bigbluebuttonbn'),
491
-              'class' => 'btn btn-secondary',
492
-              'onclick' => 'window.location=\''.$CFG->wwwroot.'/mod/bigbluebuttonbn/import_view.php?bn='.
493
-                  $bbbsession['bigbluebuttonbn']->id.'\''));
490
+                'value' => get_string('view_recording_button_import', 'bigbluebuttonbn'),
491
+                'class' => 'btn btn-secondary',
492
+                'onclick' => 'window.location=\''.$CFG->wwwroot.'/mod/bigbluebuttonbn/import_view.php?bn='.
493
+                    $bbbsession['bigbluebuttonbn']->id.'\''));
494 494
     $output  = html_writer::empty_tag('br');
495 495
     $output .= html_writer::tag('span', $button, array('id' => 'import_recording_links_button'));
496 496
     $output .= html_writer::tag('span', '', array('id' => 'import_recording_links_table'));
@@ -569,5 +569,5 @@  discard block
 block discarded – undo
569 569
         (string)\mod_bigbluebuttonbn\locallib\config::get('general_warning_button_href'),
570 570
         (string)\mod_bigbluebuttonbn\locallib\config::get('general_warning_button_text'),
571 571
         (string)\mod_bigbluebuttonbn\locallib\config::get('general_warning_button_class')
572
-      );
572
+        );
573 573
 }
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.