Completed
Push — master ( 58f2f2...86fc5a )
by Jesus
02:20
created
classes/event/bigbluebuttonbn_recording_protected.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
      */
35 35
     protected function init() {
36 36
         parent::init();
37
-        $this->description = "The user with id '$this->userid' has protected a recording with id ".
37
+        $this->description = "The user with id '$this->userid' has protected a recording with id " .
38 38
             "'$this->other' in the course id '$this->contextinstanceid'.";
39 39
     }
40 40
 
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
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
      */
35 35
     protected function init() {
36 36
         parent::init();
37
-        $this->description = "The user with id '$this->userid' has edited a recording with id ".
37
+        $this->description = "The user with id '$this->userid' has edited a recording with id " .
38 38
             "'$this->other' in the course id '$this->contextinstanceid'.";
39 39
     }
40 40
 
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
@@ -272,11 +272,11 @@  discard block
 block discarded – undo
272 272
 
273 273
     echo $OUTPUT->box_start('generalbox boxaligncenter');
274 274
     echo '<br><div class="alert alert-warning">'.get_string('view_groups_selection_warning', 'bigbluebuttonbn').
275
-      '</div>';
275
+        '</div>';
276 276
     echo $OUTPUT->box_end();
277 277
 
278 278
     groups_print_activity_menu(
279
-      $bbbsession['cm'], $CFG->wwwroot.'/mod/bigbluebuttonbn/view.php?id='.$bbbsession['cm']->id);
279
+        $bbbsession['cm'], $CFG->wwwroot.'/mod/bigbluebuttonbn/view.php?id='.$bbbsession['cm']->id);
280 280
     echo '<br><br>';
281 281
 }
282 282
 
@@ -382,7 +382,7 @@  discard block
 block discarded – undo
382 382
     // JavaScript variables for recordings.
383 383
     $jsvars += array(
384 384
             'recordings_html' => $bbbsession['bigbluebuttonbn']->recordings_html == '1',
385
-          );
385
+            );
386 386
 
387 387
     // If there are meetings with recordings load the data to the table.
388 388
     if ($bbbsession['bigbluebuttonbn']->recordings_html) {
@@ -394,7 +394,7 @@  discard block
 block discarded – undo
394 394
     $jsvars += array(
395 395
             'columns' => bigbluebuttonbn_get_recording_columns($bbbsession),
396 396
             'data' => bigbluebuttonbn_get_recording_data($bbbsession, $recordings),
397
-          );
397
+            );
398 398
 
399 399
     // Render a YUI table.
400 400
     return html_writer::div('', '', array('id' => 'bigbluebuttonbn_yui_table'));
@@ -405,10 +405,10 @@  discard block
 block discarded – undo
405 405
 
406 406
     $button = html_writer::tag('input', '',
407 407
         array('type' => 'button',
408
-              'value' => get_string('view_recording_button_import', 'bigbluebuttonbn'),
409
-              'class' => 'btn btn-secondary',
410
-              'onclick' => 'window.location=\''.$CFG->wwwroot.'/mod/bigbluebuttonbn/import_view.php?bn='.
411
-                  $bbbsession['bigbluebuttonbn']->id.'\''));
408
+                'value' => get_string('view_recording_button_import', 'bigbluebuttonbn'),
409
+                'class' => 'btn btn-secondary',
410
+                'onclick' => 'window.location=\''.$CFG->wwwroot.'/mod/bigbluebuttonbn/import_view.php?bn='.
411
+                    $bbbsession['bigbluebuttonbn']->id.'\''));
412 412
     $output = html_writer::start_tag('br');
413 413
     $output .= html_writer::tag('span', $button, array('id' => 'import_recording_links_button'));
414 414
     $output .= html_writer::tag('span', '', array('id' => 'import_recording_links_table'));
@@ -426,7 +426,7 @@  discard block
 block discarded – undo
426 426
         return '<h4>'.get_string('view_section_title_presentation', 'bigbluebuttonbn').'</h4>'.
427 427
                 ''.$OUTPUT->action_icon($bbbsession['presentation']['url'], $icon, null, array(), false).''.
428 428
                 ''.$OUTPUT->action_link($bbbsession['presentation']['url'],
429
-                      $bbbsession['presentation']['name'], null, $attributes).'<br><br>';
429
+                        $bbbsession['presentation']['name'], null, $attributes).'<br><br>';
430 430
     }
431 431
 
432 432
     return '';
Please login to merge, or discard this patch.
Spacing   +34 added lines, -34 removed lines patch added patch discarded remove patch
@@ -23,8 +23,8 @@  discard block
 block discarded – undo
23 23
  * @license   http://www.gnu.org/copyleft/gpl.html GNU GPL v2 or later
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
 $id = required_param('id', PARAM_INT);
30 30
 $b = optional_param('n', 0, PARAM_INT);
@@ -59,18 +59,18 @@  discard block
 block discarded – undo
59 59
 if (is_null($serverversion)) {
60 60
     if ($bbbsession['administrator']) {
61 61
         print_error('view_error_unable_join', 'bigbluebuttonbn',
62
-            $CFG->wwwroot.'/admin/settings.php?section=modsettingbigbluebuttonbn');
62
+            $CFG->wwwroot . '/admin/settings.php?section=modsettingbigbluebuttonbn');
63 63
         exit;
64 64
     }
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
 
72 72
     print_error('view_error_unable_join_student', 'bigbluebuttonbn',
73
-        $CFG->wwwroot.'/course/view.php?id='.$bigbluebuttonbn->course);
73
+        $CFG->wwwroot . '/course/view.php?id=' . $bigbluebuttonbn->course);
74 74
     exit;
75 75
 }
76 76
 
@@ -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;
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
     $bbbsession['viewerPW'] = $bigbluebuttonbn->viewerpass;
153 153
 
154 154
     // Database info related to the activity.
155
-    $bbbsession['meetingid'] = $bbbsession['bigbluebuttonbn']->meetingid.'-'.$bbbsession['course']->id.'-'.
155
+    $bbbsession['meetingid'] = $bbbsession['bigbluebuttonbn']->meetingid . '-' . $bbbsession['course']->id . '-' .
156 156
         $bbbsession['bigbluebuttonbn']->id;
157 157
     $bbbsession['meetingname'] = $bbbsession['bigbluebuttonbn']->name;
158 158
     $bbbsession['meetingdescription'] = $bigbluebuttonbn->intro;
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
         $bbbsession['welcome'] = get_string('mod_form_field_welcome_default', 'bigbluebuttonbn');
174 174
     }
175 175
     if ($bigbluebuttonbn->record) {
176
-        $bbbsession['welcome'] .= '<br><br>'.get_string('bbbrecordwarning', 'bigbluebuttonbn');
176
+        $bbbsession['welcome'] .= '<br><br>' . get_string('bbbrecordwarning', 'bigbluebuttonbn');
177 177
     }
178 178
 
179 179
     $bbbsession['openingtime'] = $bigbluebuttonbn->openingtime;
@@ -189,7 +189,7 @@  discard block
 block discarded – undo
189 189
     $bbbsession['originServerName'] = $parsedurl['host'];
190 190
     $bbbsession['originServerUrl'] = $CFG->wwwroot;
191 191
     $bbbsession['originServerCommonName'] = '';
192
-    $bbbsession['originTag'] = 'moodle-mod_bigbluebuttonbn ('.get_config('mod_bigbluebuttonbn', 'version').')';
192
+    $bbbsession['originTag'] = 'moodle-mod_bigbluebuttonbn (' . get_config('mod_bigbluebuttonbn', 'version') . ')';
193 193
 }
194 194
 
195 195
 function bigbluebuttonbn_view_bbbsession_roles($context, $userid) {
@@ -246,10 +246,10 @@  discard block
 block discarded – undo
246 246
     $bbbsession['group'] = groups_get_activity_group($bbbsession['cm'], true);
247 247
 
248 248
     // Assign group default values.
249
-    $bbbsession['meetingid'] = $bbbsession['bigbluebuttonbn']->meetingid.'-'.$bbbsession['course']->id.'-'.
250
-        $bbbsession['bigbluebuttonbn']->id.'['.$bbbsession['group'].']';
249
+    $bbbsession['meetingid'] = $bbbsession['bigbluebuttonbn']->meetingid . '-' . $bbbsession['course']->id . '-' .
250
+        $bbbsession['bigbluebuttonbn']->id . '[' . $bbbsession['group'] . ']';
251 251
     $groupname = get_string('allparticipants');
252
-    $bbbsession['meetingname'] = $bbbsession['bigbluebuttonbn']->name.' ('.$groupname.')';
252
+    $bbbsession['meetingname'] = $bbbsession['bigbluebuttonbn']->name . ' (' . $groupname . ')';
253 253
 
254 254
     if (count($groups) == 0) {
255 255
         // Only the All participants group exists.
@@ -260,10 +260,10 @@  discard block
 block discarded – undo
260 260
         $bbbsession['group'] = array_values($groups)[0]->id;
261 261
     }
262 262
 
263
-    $bbbsession['meetingid'] = $bbbsession['bigbluebuttonbn']->meetingid.'-'.$bbbsession['course']->id.'-'.
264
-        $bbbsession['bigbluebuttonbn']->id.'['.$bbbsession['group'].']';
263
+    $bbbsession['meetingid'] = $bbbsession['bigbluebuttonbn']->meetingid . '-' . $bbbsession['course']->id . '-' .
264
+        $bbbsession['bigbluebuttonbn']->id . '[' . $bbbsession['group'] . ']';
265 265
     $groupname = groups_get_group_name($bbbsession['group']);
266
-    $bbbsession['meetingname'] = $bbbsession['bigbluebuttonbn']->name.' ('.$groupname.')';
266
+    $bbbsession['meetingname'] = $bbbsession['bigbluebuttonbn']->name . ' (' . $groupname . ')';
267 267
 
268 268
     if (count($groups) == 1) {
269 269
         // There only one group and the user has access to.
@@ -271,12 +271,12 @@  discard block
 block discarded – undo
271 271
     }
272 272
 
273 273
     echo $OUTPUT->box_start('generalbox boxaligncenter');
274
-    echo '<br><div class="alert alert-warning">'.get_string('view_groups_selection_warning', 'bigbluebuttonbn').
274
+    echo '<br><div class="alert alert-warning">' . get_string('view_groups_selection_warning', 'bigbluebuttonbn') .
275 275
       '</div>';
276 276
     echo $OUTPUT->box_end();
277 277
 
278 278
     groups_print_activity_menu(
279
-      $bbbsession['cm'], $CFG->wwwroot.'/mod/bigbluebuttonbn/view.php?id='.$bbbsession['cm']->id);
279
+      $bbbsession['cm'], $CFG->wwwroot . '/mod/bigbluebuttonbn/view.php?id=' . $bbbsession['cm']->id);
280 280
     echo '<br><br>';
281 281
 }
282 282
 
@@ -318,7 +318,7 @@  discard block
 block discarded – undo
318 318
             'M.mod_bigbluebuttonbn.recordings.init', array($jsvars));
319 319
     }
320 320
 
321
-    echo $output.html_writer::empty_tag('br').html_writer::empty_tag('br').html_writer::empty_tag('br');
321
+    echo $output . html_writer::empty_tag('br') . html_writer::empty_tag('br') . html_writer::empty_tag('br');
322 322
 
323 323
     $PAGE->requires->yui_module('moodle-mod_bigbluebuttonbn-broker', 'M.mod_bigbluebuttonbn.broker.init', array($jsvars));
324 324
 }
@@ -329,12 +329,12 @@  discard block
 block discarded – undo
329 329
     // JavaScript variables for room.
330 330
     $openingtime = '';
331 331
     if ($bbbsession['openingtime']) {
332
-        $openingtime = get_string('mod_form_field_openingtime', 'bigbluebuttonbn').': '.
332
+        $openingtime = get_string('mod_form_field_openingtime', 'bigbluebuttonbn') . ': ' .
333 333
             userdate($bbbsession['openingtime']);
334 334
     }
335 335
     $closingtime = '';
336 336
     if ($bbbsession['closingtime']) {
337
-        $closingtime = get_string('mod_form_field_closingtime', 'bigbluebuttonbn').': '.
337
+        $closingtime = get_string('mod_form_field_closingtime', 'bigbluebuttonbn') . ': ' .
338 338
             userdate($bbbsession['closingtime']);
339 339
     }
340 340
     $jsvars += array(
@@ -351,7 +351,7 @@  discard block
 block discarded – undo
351 351
     $output .= $OUTPUT->box_end();
352 352
 
353 353
     $output .= $OUTPUT->box_start('generalbox boxaligncenter', 'bigbluebuttonbn_view_action_button_box');
354
-    $output .= '<br><br><span id="join_button"></span>&nbsp;<span id="end_button"></span>'."\n";
354
+    $output .= '<br><br><span id="join_button"></span>&nbsp;<span id="end_button"></span>' . "\n";
355 355
     $output .= $OUTPUT->box_end();
356 356
 
357 357
     if ($activity == 'ended') {
@@ -387,7 +387,7 @@  discard block
 block discarded – undo
387 387
     // If there are meetings with recordings load the data to the table.
388 388
     if ($bbbsession['bigbluebuttonbn']->recordings_html) {
389 389
         // Render a plain html table.
390
-        return bigbluebutton_output_recording_table($bbbsession, $recordings)."\n";
390
+        return bigbluebutton_output_recording_table($bbbsession, $recordings) . "\n";
391 391
     }
392 392
 
393 393
     // JavaScript variables for recordings with YUI.
@@ -407,8 +407,8 @@  discard block
 block discarded – undo
407 407
         array('type' => 'button',
408 408
               'value' => get_string('view_recording_button_import', 'bigbluebuttonbn'),
409 409
               'class' => 'btn btn-secondary',
410
-              'onclick' => 'window.location=\''.$CFG->wwwroot.'/mod/bigbluebuttonbn/import_view.php?bn='.
411
-                  $bbbsession['bigbluebuttonbn']->id.'\''));
410
+              'onclick' => 'window.location=\'' . $CFG->wwwroot . '/mod/bigbluebuttonbn/import_view.php?bn=' .
411
+                  $bbbsession['bigbluebuttonbn']->id . '\''));
412 412
     $output = html_writer::start_tag('br');
413 413
     $output .= html_writer::tag('span', $button, array('id' => 'import_recording_links_button'));
414 414
     $output .= html_writer::tag('span', '', array('id' => 'import_recording_links_table'));
@@ -423,10 +423,10 @@  discard block
 block discarded – undo
423 423
         $attributes = array('title' => $bbbsession['presentation']['name']);
424 424
         $icon = new pix_icon($bbbsession['presentation']['icon'], $bbbsession['presentation']['mimetype_description']);
425 425
 
426
-        return '<h4>'.get_string('view_section_title_presentation', 'bigbluebuttonbn').'</h4>'.
427
-                ''.$OUTPUT->action_icon($bbbsession['presentation']['url'], $icon, null, array(), false).''.
428
-                ''.$OUTPUT->action_link($bbbsession['presentation']['url'],
429
-                      $bbbsession['presentation']['name'], null, $attributes).'<br><br>';
426
+        return '<h4>' . get_string('view_section_title_presentation', 'bigbluebuttonbn') . '</h4>' .
427
+                '' . $OUTPUT->action_icon($bbbsession['presentation']['url'], $icon, null, array(), false) . '' .
428
+                '' . $OUTPUT->action_link($bbbsession['presentation']['url'],
429
+                      $bbbsession['presentation']['name'], null, $attributes) . '<br><br>';
430 430
     }
431 431
 
432 432
     return '';
Please login to merge, or discard this patch.