Completed
Pull Request — master (#174)
by
unknown
02:52
created
viewlib.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -54,8 +54,8 @@  discard block
 block discarded – undo
54 54
         $groupname = groups_get_group_name($bbbsession['group']);
55 55
     }
56 56
     // Assign group default values.
57
-    $bbbsession['meetingid'] .= '['.$bbbsession['group'].']';
58
-    $bbbsession['meetingname'] .= ' ('.$groupname.')';
57
+    $bbbsession['meetingid'] .= '[' . $bbbsession['group'] . ']';
58
+    $bbbsession['meetingname'] .= ' (' . $groupname . ')';
59 59
     if (count($groups) == 0) {
60 60
         // Only the All participants group exists.
61 61
         bigbluebuttonbn_view_message_box($bbbsession, get_string('view_groups_notenrolled_warning', 'bigbluebuttonbn'), 'info');
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
     if (has_capability('moodle/site:accessallgroups', $context)) {
66 66
         bigbluebuttonbn_view_message_box($bbbsession, get_string('view_groups_selection_warning', 'bigbluebuttonbn'));
67 67
     }
68
-    $urltoroot = $CFG->wwwroot.'/mod/bigbluebuttonbn/view.php?id='.$bbbsession['cm']->id;
68
+    $urltoroot = $CFG->wwwroot . '/mod/bigbluebuttonbn/view.php?id=' . $bbbsession['cm']->id;
69 69
     groups_print_activity_menu($bbbsession['cm'], $urltoroot);
70 70
     echo '<br><br>';
71 71
 }
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
         $recordingsdisabled = get_string('view_message_recordings_disabled', 'bigbluebuttonbn');
138 138
         $output .= bigbluebuttonbn_render_warning($recordingsdisabled, 'danger');
139 139
     }
140
-    echo $output.html_writer::empty_tag('br').html_writer::empty_tag('br').html_writer::empty_tag('br');
140
+    echo $output . html_writer::empty_tag('br') . html_writer::empty_tag('br') . html_writer::empty_tag('br');
141 141
     $PAGE->requires->yui_module('moodle-mod_bigbluebuttonbn-broker', 'M.mod_bigbluebuttonbn.broker.init', array($jsvars));
142 142
 }
143 143
 
@@ -206,12 +206,12 @@  discard block
 block discarded – undo
206 206
     // JavaScript variables for room.
207 207
     $openingtime = '';
208 208
     if ($bbbsession['openingtime']) {
209
-        $openingtime = get_string('mod_form_field_openingtime', 'bigbluebuttonbn').': '.
209
+        $openingtime = get_string('mod_form_field_openingtime', 'bigbluebuttonbn') . ': ' .
210 210
             userdate($bbbsession['openingtime']);
211 211
     }
212 212
     $closingtime = '';
213 213
     if ($bbbsession['closingtime']) {
214
-        $closingtime = get_string('mod_form_field_closingtime', 'bigbluebuttonbn').': '.
214
+        $closingtime = get_string('mod_form_field_closingtime', 'bigbluebuttonbn') . ': ' .
215 215
             userdate($bbbsession['closingtime']);
216 216
     }
217 217
     $jsvars += array(
@@ -228,7 +228,7 @@  discard block
 block discarded – undo
228 228
     $output .= $OUTPUT->box_end();
229 229
     // Action button box.
230 230
     $output .= $OUTPUT->box_start('generalbox boxaligncenter', 'bigbluebuttonbn_view_action_button_box');
231
-    $output .= '<br><br><span id="join_button"></span>&nbsp;<span id="end_button"></span>'."\n";
231
+    $output .= '<br><br><span id="join_button"></span>&nbsp;<span id="end_button"></span>' . "\n";
232 232
     $output .= $OUTPUT->box_end();
233 233
     if ($activity == 'ended') {
234 234
         $output .= bigbluebuttonbn_view_ended($bbbsession);
@@ -259,7 +259,7 @@  discard block
 block discarded – undo
259 259
         // Get recording links.
260 260
         $bigbluebuttonbnid = $bbbsession['bigbluebuttonbn']->id;
261 261
         $recordingsimported = bigbluebuttonbn_get_recordings_imported_array(
262
-            $bbbsession['course']->id, $bigbluebuttonbnid,  true
262
+            $bbbsession['course']->id, $bigbluebuttonbnid, true
263 263
         );
264 264
         /* Perform aritmetic addition instead of merge so the imported recordings corresponding to existent
265 265
          * recordings are not included. */
@@ -282,7 +282,7 @@  discard block
 block discarded – undo
282 282
     // If there are meetings with recordings load the data to the table.
283 283
     if ($bbbsession['bigbluebuttonbn']->recordings_html) {
284 284
         // Render a plain html table.
285
-        return bigbluebuttonbn_output_recording_table($bbbsession, $recordings)."\n";
285
+        return bigbluebuttonbn_output_recording_table($bbbsession, $recordings) . "\n";
286 286
     }
287 287
     // JavaScript variables for recordings with YUI.
288 288
     $jsvars += array(
@@ -319,8 +319,8 @@  discard block
 block discarded – undo
319 319
         array('type' => 'button',
320 320
             'value' => get_string('view_recording_button_import', 'bigbluebuttonbn'),
321 321
             'class' => 'btn btn-secondary',
322
-            'onclick' => 'window.location=\''.$CFG->wwwroot.'/mod/bigbluebuttonbn/import_view.php?bn='.
323
-                $bbbsession['bigbluebuttonbn']->id.'\''));
322
+            'onclick' => 'window.location=\'' . $CFG->wwwroot . '/mod/bigbluebuttonbn/import_view.php?bn=' .
323
+                $bbbsession['bigbluebuttonbn']->id . '\''));
324 324
     $output  = html_writer::empty_tag('br');
325 325
     $output .= html_writer::tag('span', $button, array('id' => 'import_recording_links_button'));
326 326
     $output .= html_writer::tag('span', '', array('id' => 'import_recording_links_table'));
@@ -339,10 +339,10 @@  discard block
 block discarded – undo
339 339
     if (!is_null($bbbsession['presentation']['url'])) {
340 340
         $attributes = array('title' => $bbbsession['presentation']['name']);
341 341
         $icon = new pix_icon($bbbsession['presentation']['icon'], $bbbsession['presentation']['mimetype_description']);
342
-        return '<h4>'.get_string('view_section_title_presentation', 'bigbluebuttonbn').'</h4>'.
343
-            $OUTPUT->action_icon($bbbsession['presentation']['url'], $icon, null, array(), false).
342
+        return '<h4>' . get_string('view_section_title_presentation', 'bigbluebuttonbn') . '</h4>' .
343
+            $OUTPUT->action_icon($bbbsession['presentation']['url'], $icon, null, array(), false) .
344 344
             $OUTPUT->action_link($bbbsession['presentation']['url'],
345
-                $bbbsession['presentation']['name'], null, $attributes).'<br><br>';
345
+                $bbbsession['presentation']['name'], null, $attributes) . '<br><br>';
346 346
     }
347 347
     return '';
348 348
 }
Please login to merge, or discard this patch.