Completed
Push — master ( b8c79f...3470f8 )
by Jesus
01:52
created
lib.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -208,7 +208,7 @@  discard block
 block discarded – undo
208 208
 
209 209
     $logs = $DB->get_records('bigbluebuttonbn_logs',
210 210
         array('bigbluebuttonbnid' => $bigbluebuttonbn->id, 'log' => BIGBLUEBUTTONBN_LOG_EVENT_CREATE, 'meta' => "{\"record\":true}")
211
-      );
211
+        );
212 212
     $log->meta = "{\"has_recordings\":false}";
213 213
     if (!empty($logs)) {
214 214
         $log->meta = "{\"has_recordings\":true}";
@@ -233,9 +233,9 @@  discard block
 block discarded – undo
233 233
     global $DB;
234 234
 
235 235
     $completed = $DB->count_records('bigbluebuttonbn_logs', array('courseid' => $course->id,
236
-                                                              'bigbluebuttonbnid' => $bigbluebuttonbn->id,
237
-                                                              'userid' => $user->id,
238
-                                                              'log' => 'Join', ), '*');
236
+                                                                'bigbluebuttonbnid' => $bigbluebuttonbn->id,
237
+                                                                'userid' => $user->id,
238
+                                                                'log' => 'Join', ), '*');
239 239
 
240 240
     if ($completed > 0) {
241 241
         return fullname($user).' '.get_string('view_message_has_joined', 'bigbluebuttonbn').' '.
@@ -256,9 +256,9 @@  discard block
 block discarded – undo
256 256
     global $DB;
257 257
 
258 258
     $completed = $DB->count_recorda('bigbluebuttonbn_logs', array('courseid' => $course->id,
259
-                                                              'bigbluebuttonbnid' => $bigbluebuttonbn->id,
260
-                                                              'userid' => $user->id,
261
-                                                              'log' => 'Join', ), '*', IGNORE_MULTIPLE);
259
+                                                                'bigbluebuttonbnid' => $bigbluebuttonbn->id,
260
+                                                                'userid' => $user->id,
261
+                                                                'log' => 'Join', ), '*', IGNORE_MULTIPLE);
262 262
 
263 263
     return $completed > 0;
264 264
 }
@@ -331,12 +331,12 @@  discard block
 block discarded – undo
331 331
     $str = '<div class="bigbluebuttonbn overview">'."\n";
332 332
     $str .= '  <div class="name">'.get_string('modulename', 'bigbluebuttonbn').':&nbsp;'."\n";
333 333
     $str .= '    <a '.$classes.'href="'.$CFG->wwwroot.'/mod/bigbluebuttonbn/view.php?id='.$bigbluebuttonbn->coursemodule.
334
-      '">'.$bigbluebuttonbn->name.'</a>'."\n";
334
+        '">'.$bigbluebuttonbn->name.'</a>'."\n";
335 335
     $str .= '  </div>'."\n";
336 336
     $str .= '  <div class="info">'.get_string($start, 'bigbluebuttonbn').': '.userdate($bigbluebuttonbn->openingtime).
337 337
         '</div>'."\n";
338 338
     $str .= '  <div class="info">'.get_string('ends_at', 'bigbluebuttonbn').': '.userdate($bigbluebuttonbn->closingtime)
339
-      .'</div>'."\n";
339
+        .'</div>'."\n";
340 340
     $str .= '</div>'."\n";
341 341
 
342 342
     return $str;
Please login to merge, or discard this patch.
import_view.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -96,8 +96,8 @@
 block discarded – undo
96 96
     $output .= html_writer::start_tag('br');
97 97
     $output .= html_writer::tag('input', '',
98 98
         array('type' => 'button', 'class' => 'btn btn-secondary',
99
-              'value' => get_string('view_recording_button_return', 'bigbluebuttonbn'),
100
-              'onclick' => 'window.location=\''.$CFG->wwwroot.'/mod/bigbluebuttonbn/view.php?id='.$cm->id.'\''));
99
+                'value' => get_string('view_recording_button_return', 'bigbluebuttonbn'),
100
+                'onclick' => 'window.location=\''.$CFG->wwwroot.'/mod/bigbluebuttonbn/view.php?id='.$cm->id.'\''));
101 101
 
102 102
     // JavaScript for locales.
103 103
     $PAGE->requires->strings_for_js(array_keys(bigbluebuttonbn_get_strings_for_js()), 'bigbluebuttonbn');
Please login to merge, or discard this patch.
config-dist.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
  * recordings from a different activity even from a different course.
95 95
  **/
96 96
 
97
- /*
97
+    /*
98 98
  * When the value is set to 1 (checked) the bigbluebuttonbn rooms or
99 99
  * activities will have the 'import recordings' capability enabled.
100 100
  */
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
  * 'Join session' button enabled
116 116
  **/
117 117
 
118
- /*
118
+    /*
119 119
  * When the value is set to 1 (checked) the bigbluebuttonbn rooms or
120 120
  * activities will have the 'wait for moderator' capability enabled by
121 121
  * default.
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
  * 5. CONFIGURATION FOR "STATIC VOICE BRIDGE" FEATURE
150 150
  *
151 151
  **/
152
- /*
152
+    /*
153 153
  * A conference voice bridge number can be permanently assigned to a room
154 154
  * or activity.
155 155
  */
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
  * 6. CONFIGURATION FOR "PRE-UPLOAD PRESENTATION" FEATURE
160 160
  *
161 161
  **/
162
- /*
162
+    /*
163 163
  * Since version 0.8, BigBluebutton has an implementation for allowing
164 164
  * preuploading presentation. When this feature is enabled, users creating or
165 165
  * editing a room or activity can upload a PDF or Office document to the
@@ -176,7 +176,7 @@  discard block
 block discarded – undo
176 176
  * applied to each room or activity, or globally.
177 177
  **/
178 178
 
179
- /*
179
+    /*
180 180
  * The number of users allowed in a session by default when a new room or
181 181
  * conference is added. If the number is set to 0, no limit is established.
182 182
  * $CFG->bigbluebuttonbn['userlimit_default'] = 0;
@@ -197,7 +197,7 @@  discard block
 block discarded – undo
197 197
  * By default only the owner is assigned.
198 198
  **/
199 199
 
200
- /*
200
+    /*
201 201
  * The values for this parameter can be 'owner' and/or any of the roles defined in
202 202
  * Moodle (including the custom parameters). The value used will be the key for the role.
203 203
  * [owner|manager|coursecreator|editingteacher|teacher|student|guest|user|frontpage|ANY_CUSTOM_ROLE]
@@ -208,7 +208,7 @@  discard block
 block discarded – undo
208 208
  * 9. CONFIGURATION FOR "NOTIFICATION SENDING" FEATURE
209 209
  *
210 210
  **/
211
- /*
211
+    /*
212 212
  * When the value is set to 1 (checked) the 'notification sending'
213 213
  * capability can be used by the user creating or editing the room or
214 214
  * activity.
@@ -222,7 +222,7 @@  discard block
 block discarded – undo
222 222
  * 10. CONFIGURATION FOR "RECORDING READY" FEATURE
223 223
  *
224 224
  **/
225
- /*
225
+    /*
226 226
  * When the value is set to 1 (checked) the 'notify users when recording ready'
227 227
  * capability is enabled, meaning that a message will be sent to all enrolled
228 228
  * users in a course when a recording is ready
@@ -246,7 +246,7 @@  discard block
 block discarded – undo
246 246
  * 12. GENERAL CONFIGURATION FOR RECORDINGS UI
247 247
  *
248 248
  **/
249
- /*
249
+    /*
250 250
  * When the value is set to 1 (checked) the bigbluebuttonbn resources
251 251
  * will show the recodings in an html table by default.
252 252
  * $CFG->bigbluebuttonbn['recordings_html_default'] = 0;
@@ -270,13 +270,13 @@  discard block
 block discarded – undo
270 270
  * $CFG->bigbluebuttonbn['recordings_deleted_editable'] = 0;
271 271
  */
272 272
 
273
- /*
273
+    /*
274 274
   * When the value is set to 1 (checked) the bigbluebuttonbn resources for recordings
275 275
   * will show only the imported links as part of the list.
276 276
   * $CFG->bigbluebuttonbn['recordings_imported_default'] = 0;
277 277
   */
278 278
 
279
- /*
279
+    /*
280 280
   * When the value is set to 1 (checked) the 'show only imported links'
281 281
   * capability can be enabled/disabled by the user creating or editing the resource for recordings.
282 282
   * $CFG->bigbluebuttonbn['recordings_imported_editable'] = 1;
Please login to merge, or discard this patch.
mod_form.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
                 'alt' => get_string('delete'),
112 112
                 'title' => get_string('delete'),
113 113
                 'src' => $jsvars['pix_icon_delete']
114
-              );
114
+                );
115 115
 
116 116
             $jsvars['pix_icon_delete'] = html_writer::tag('img', $options);
117 117
         }
@@ -211,8 +211,8 @@  discard block
 block discarded – undo
211 211
             $this->bigbluebuttonbn_mform_add_element($mform, $field['type'], $field['name'], $field['data_type'],
212 212
                 $field['description_key'], 0, ['maxlength' => 4, 'size' => 6],
213 213
                 ['message' => get_string('mod_form_field_voicebridge_format_error', 'bigbluebuttonbn'),
214
-                 'type' => 'numeric', 'rule' => '####', 'validator' => 'server']
215
-              );
214
+                    'type' => 'numeric', 'rule' => '####', 'validator' => 'server']
215
+                );
216 216
         } else {
217 217
             $this->bigbluebuttonbn_mform_add_element($mform, $field['type'], $field['name'], $field['data_type'],
218 218
                 $field['description_key'], 0, ['maxlength' => 4, 'size' => 6]);
@@ -246,7 +246,7 @@  discard block
 block discarded – undo
246 246
 
247 247
     private function bigbluebuttonbn_mform_add_block_room_recordings($mform, $cfg) {
248 248
         $field = ['type' => 'hidden', 'name' => 'recordings_html', 'data_type' => PARAM_INT,
249
-                  'description_key' => null];
249
+                    'description_key' => null];
250 250
         if ($cfg['recordings_html_editable']) {
251 251
             $field['type'] = 'checkbox';
252 252
             $field['description_key'] = 'mod_form_field_recordings_html';
@@ -255,7 +255,7 @@  discard block
 block discarded – undo
255 255
             $field['description_key'], $cfg['recordings_html_default']);
256 256
 
257 257
         $field = ['type' => 'hidden', 'name' => 'recordings_deleted', 'data_type' => PARAM_INT,
258
-                  'description_key' => null];
258
+                    'description_key' => null];
259 259
         if ($cfg['recordings_deleted_editable']) {
260 260
             $field['type'] = 'checkbox';
261 261
             $field['description_key'] = 'mod_form_field_recordings_deleted';
@@ -264,7 +264,7 @@  discard block
 block discarded – undo
264 264
             $field['description_key'], $cfg['recordings_deleted_default']);
265 265
 
266 266
         $field = ['type' => 'hidden', 'name' => 'recordings_imported', 'data_type' => PARAM_INT,
267
-                  'description_key' => null];
267
+                    'description_key' => null];
268 268
         if ($cfg['recordings_imported_editable']) {
269 269
             $field['type'] = 'checkbox';
270 270
             $field['description_key'] = 'mod_form_field_recordings_imported';
@@ -319,7 +319,7 @@  discard block
 block discarded – undo
319 319
             html_writer::select($participantselection['type_options'], 'bigbluebuttonbn_participant_selection_type',
320 320
                 $participantselection['type_selected'], array(),
321 321
                 array('id' => 'bigbluebuttonbn_participant_selection_type',
322
-                      'onchange' => 'M.mod_bigbluebuttonbn.modform.participant_selection_set(); return 0;')).'&nbsp;&nbsp;'.
322
+                        'onchange' => 'M.mod_bigbluebuttonbn.modform.participant_selection_set(); return 0;')).'&nbsp;&nbsp;'.
323 323
             html_writer::select($participantselection['options'], 'bigbluebuttonbn_participant_selection',
324 324
                 $participantselection['selected'], array(),
325 325
                 array('id' => 'bigbluebuttonbn_participant_selection', 'disabled' => 'disabled')).'&nbsp;&nbsp;'.
Please login to merge, or discard this patch.
classes/locallib/config.php 1 patch
Indentation   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -123,25 +123,25 @@
 block discarded – undo
123 123
      */
124 124
     public static function get_options() {
125 125
         return [
126
-               'version_major' => self::get_moodle_version_major(),
127
-               'voicebridge_editable' => self::get('voicebridge_editable'),
128
-               'recording_default' => self::get('recording_default'),
129
-               'recording_editable' => self::get('recording_editable'),
130
-               'waitformoderator_default' => self::get('waitformoderator_default'),
131
-               'waitformoderator_editable' => self::get('waitformoderator_editable'),
132
-               'userlimit_default' => self::get('userlimit_default'),
133
-               'userlimit_editable' => self::get('userlimit_editable'),
134
-               'preuploadpresentation_enabled' => self::get('preuploadpresentation_enabled'),
135
-               'sendnotifications_enabled' => self::get('sendnotifications_enabled'),
136
-               'recordings_html_default' => self::get('recordings_html_default'),
137
-               'recordings_html_editable' => self::get('recordings_html_editable'),
138
-               'recordings_deleted_default' => self::get('recordings_deleted_default'),
139
-               'recordings_deleted_editable' => self::get('recordings_deleted_editable'),
140
-               'recordings_imported_default' => self::get('recordings_imported_default'),
141
-               'recordings_imported_editable' => self::get('recordings_imported_editable'),
142
-               'recording_icons_enabled' => self::get('recording_icons_enabled'),
143
-               'instance_type_enabled' => self::recordings_enabled(),
144
-               'instance_type_default' => BIGBLUEBUTTONBN_TYPE_ALL,
145
-          ];
126
+                'version_major' => self::get_moodle_version_major(),
127
+                'voicebridge_editable' => self::get('voicebridge_editable'),
128
+                'recording_default' => self::get('recording_default'),
129
+                'recording_editable' => self::get('recording_editable'),
130
+                'waitformoderator_default' => self::get('waitformoderator_default'),
131
+                'waitformoderator_editable' => self::get('waitformoderator_editable'),
132
+                'userlimit_default' => self::get('userlimit_default'),
133
+                'userlimit_editable' => self::get('userlimit_editable'),
134
+                'preuploadpresentation_enabled' => self::get('preuploadpresentation_enabled'),
135
+                'sendnotifications_enabled' => self::get('sendnotifications_enabled'),
136
+                'recordings_html_default' => self::get('recordings_html_default'),
137
+                'recordings_html_editable' => self::get('recordings_html_editable'),
138
+                'recordings_deleted_default' => self::get('recordings_deleted_default'),
139
+                'recordings_deleted_editable' => self::get('recordings_deleted_editable'),
140
+                'recordings_imported_default' => self::get('recordings_imported_default'),
141
+                'recordings_imported_editable' => self::get('recordings_imported_editable'),
142
+                'recording_icons_enabled' => self::get('recording_icons_enabled'),
143
+                'instance_type_enabled' => self::recordings_enabled(),
144
+                'instance_type_default' => BIGBLUEBUTTONBN_TYPE_ALL,
145
+            ];
146 146
     }
147 147
 }
Please login to merge, or discard this patch.
bbb_broker.php 1 patch
Indentation   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -371,19 +371,19 @@  discard block
 block discarded – undo
371 371
             return array(
372 372
                 'status' => false,
373 373
                 'message' => get_string('view_recording_publish_link_deleted', 'bigbluebuttonbn')
374
-              );
374
+                );
375 375
         }
376 376
         if ($realrecordings[$params['id']]['published'] !== 'true') {
377 377
             return array(
378 378
                 'status' => false,
379 379
                 'message' => get_string('view_recording_publish_link_not_published', 'bigbluebuttonbn')
380
-              );
380
+                );
381 381
         }
382 382
         return array(
383 383
             'status' => bigbluebuttonbn_publish_recording_imported(
384 384
                 $recordings[$params['id']]['imported'], true
385 385
             )
386
-          );
386
+            );
387 387
     }
388 388
 
389 389
     // As the recordingid was not identified as imported recording link, execute actual publish.
@@ -391,7 +391,7 @@  discard block
 block discarded – undo
391 391
         'status' => bigbluebuttonbn_publish_recordings(
392 392
             $params['id'], 'true'
393 393
         )
394
-      );
394
+        );
395 395
 }
396 396
 
397 397
 function bigbluebuttonbn_broker_recording_action_unprotect($params, $recordings) {
@@ -404,19 +404,19 @@  discard block
 block discarded – undo
404 404
             return array(
405 405
                 'status' => false,
406 406
                 'message' => get_string('view_recording_unprotect_link_deleted', 'bigbluebuttonbn')
407
-              );
407
+                );
408 408
         }
409 409
         if ($realrecordings[$params['id']]['protected'] === 'true') {
410 410
             return array(
411 411
                 'status' => false,
412 412
                 'message' => get_string('view_recording_unprotect_link_not_unprotected', 'bigbluebuttonbn')
413
-              );
413
+                );
414 414
         }
415 415
         return array(
416 416
             'status' => bigbluebuttonbn_protect_recording_imported(
417 417
                 $recordings[$params['id']]['imported'], false
418 418
             )
419
-          );
419
+            );
420 420
     }
421 421
 
422 422
     // As the recordingid was not identified as imported recording link, execute actual uprotect.
@@ -424,7 +424,7 @@  discard block
 block discarded – undo
424 424
         'status' => bigbluebuttonbn_update_recordings(
425 425
             $params['id'], array('protect' => 'false')
426 426
         )
427
-      );
427
+        );
428 428
 }
429 429
 
430 430
 function bigbluebuttonbn_broker_recording_action_unpublish($params, $recordings) {
@@ -436,7 +436,7 @@  discard block
 block discarded – undo
436 436
             'status' => bigbluebuttonbn_publish_recording_imported(
437 437
                 $recordings[$params['id']]['imported'], false
438 438
             )
439
-          );
439
+            );
440 440
     }
441 441
 
442 442
     // As the recordingid was not identified as imported recording link, execute unpublish on a real recording.
@@ -456,7 +456,7 @@  discard block
 block discarded – undo
456 456
         'status' => bigbluebuttonbn_publish_recordings(
457 457
             $params['id'], 'false'
458 458
         )
459
-      );
459
+        );
460 460
 }
461 461
 
462 462
 function bigbluebuttonbn_broker_recording_action_protect($params, $recordings) {
@@ -468,7 +468,7 @@  discard block
 block discarded – undo
468 468
             'status' => bigbluebuttonbn_protect_recording_imported(
469 469
                 $recordings[$params['id']]['imported'], true
470 470
             )
471
-          );
471
+            );
472 472
     }
473 473
 
474 474
     // As the recordingid was not identified as imported recording link, execute protect on a real recording.
@@ -488,7 +488,7 @@  discard block
 block discarded – undo
488 488
         'status' => bigbluebuttonbn_update_recordings(
489 489
             $params['id'], array('protect' => 'true')
490 490
         )
491
-      );
491
+        );
492 492
 }
493 493
 
494 494
 function bigbluebuttonbn_broker_recording_action_delete($params, $recordings) {
@@ -500,7 +500,7 @@  discard block
 block discarded – undo
500 500
             'status' => bigbluebuttonbn_delete_recording_imported(
501 501
                 $recordings[$params['id']]['imported']
502 502
             )
503
-          );
503
+            );
504 504
     }
505 505
 
506 506
     // As the recordingid was not identified as imported recording link, execute delete on a real recording.
@@ -518,7 +518,7 @@  discard block
 block discarded – undo
518 518
         'status' => bigbluebuttonbn_delete_recordings(
519 519
             $params['id']
520 520
         )
521
-      );
521
+        );
522 522
 }
523 523
 
524 524
 function bigbluebuttonbn_broker_recording_action_edit($params, $recordings) {
@@ -528,7 +528,7 @@  discard block
 block discarded – undo
528 528
             'status' => bigbluebuttonbn_update_recording_imported(
529 529
                 $recordings[$params['id']]['imported'], json_decode($params['meta'], true)
530 530
             )
531
-          );
531
+            );
532 532
     }
533 533
 
534 534
     // As the recordingid was not identified as imported recording link, execute update on a real recording.
@@ -538,7 +538,7 @@  discard block
 block discarded – undo
538 538
         'status' => bigbluebuttonbn_update_recordings(
539 539
             $params['id'], json_decode($params['meta'])
540 540
         )
541
-      );
541
+        );
542 542
 }
543 543
 
544 544
 function bigbluebuttonbn_broker_recording_ready($params, $bigbluebuttonbn) {
@@ -679,10 +679,10 @@  discard block
 block discarded – undo
679 679
     $params['recording_import'] = ['id' => 'The recordingID must be specified.'];
680 680
     $params['recording_ready'] = [
681 681
             'signed_parameters' => 'A JWT encoded string must be included as [signed_parameters].'
682
-          ];
682
+            ];
683 683
     $params['live_session_events'] = [
684 684
             'signed_parameters' => 'A JWT encoded string must be included as [signed_parameters].'
685
-          ];
685
+            ];
686 686
     return $params;
687 687
 }
688 688
 
Please login to merge, or discard this patch.
view.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -271,11 +271,11 @@  discard block
 block discarded – undo
271 271
 
272 272
     echo $OUTPUT->box_start('generalbox boxaligncenter');
273 273
     echo '<br><div class="alert alert-warning">'.get_string('view_groups_selection_warning', 'bigbluebuttonbn').
274
-      '</div>';
274
+        '</div>';
275 275
     echo $OUTPUT->box_end();
276 276
 
277 277
     groups_print_activity_menu(
278
-      $bbbsession['cm'], $CFG->wwwroot.'/mod/bigbluebuttonbn/view.php?id='.$bbbsession['cm']->id);
278
+        $bbbsession['cm'], $CFG->wwwroot.'/mod/bigbluebuttonbn/view.php?id='.$bbbsession['cm']->id);
279 279
     echo '<br><br>';
280 280
 }
281 281
 
@@ -380,13 +380,13 @@  discard block
 block discarded – undo
380 380
         $recordings = bigbluebuttonbn_get_recordings(
381 381
             $bbbsession['course']->id, $bigbluebuttonbnid, $showroom,
382 382
             $bbbsession['bigbluebuttonbn']->recordings_deleted
383
-          );
383
+            );
384 384
     }
385 385
 
386 386
     // Get recording links.
387 387
     $recordingsimported = bigbluebuttonbn_get_recordings_imported_array(
388 388
         $bbbsession['course']->id, $bigbluebuttonbnid, $showroom
389
-      );
389
+        );
390 390
 
391 391
     /* Perform aritmetic addition instead of merge so the imported recordings corresponding to existent
392 392
      * recordings are not included. */
@@ -402,7 +402,7 @@  discard block
 block discarded – undo
402 402
     // JavaScript variables for recordings.
403 403
     $jsvars += array(
404 404
             'recordings_html' => $bbbsession['bigbluebuttonbn']->recordings_html == '1',
405
-          );
405
+            );
406 406
 
407 407
     // If there are meetings with recordings load the data to the table.
408 408
     if ($bbbsession['bigbluebuttonbn']->recordings_html) {
@@ -414,7 +414,7 @@  discard block
 block discarded – undo
414 414
     $jsvars += array(
415 415
             'columns' => bigbluebuttonbn_get_recording_columns($bbbsession),
416 416
             'data' => bigbluebuttonbn_get_recording_data($bbbsession, $recordings),
417
-          );
417
+            );
418 418
 
419 419
     // Render a YUI table.
420 420
     return html_writer::div('', '', array('id' => 'bigbluebuttonbn_yui_table'));
@@ -425,10 +425,10 @@  discard block
 block discarded – undo
425 425
 
426 426
     $button = html_writer::tag('input', '',
427 427
         array('type' => 'button',
428
-              'value' => get_string('view_recording_button_import', 'bigbluebuttonbn'),
429
-              'class' => 'btn btn-secondary',
430
-              'onclick' => 'window.location=\''.$CFG->wwwroot.'/mod/bigbluebuttonbn/import_view.php?bn='.
431
-                  $bbbsession['bigbluebuttonbn']->id.'\''));
428
+                'value' => get_string('view_recording_button_import', 'bigbluebuttonbn'),
429
+                'class' => 'btn btn-secondary',
430
+                'onclick' => 'window.location=\''.$CFG->wwwroot.'/mod/bigbluebuttonbn/import_view.php?bn='.
431
+                    $bbbsession['bigbluebuttonbn']->id.'\''));
432 432
     $output = html_writer::start_tag('br');
433 433
     $output .= html_writer::tag('span', $button, array('id' => 'import_recording_links_button'));
434 434
     $output .= html_writer::tag('span', '', array('id' => 'import_recording_links_table'));
@@ -446,7 +446,7 @@  discard block
 block discarded – undo
446 446
         return '<h4>'.get_string('view_section_title_presentation', 'bigbluebuttonbn').'</h4>'.
447 447
                 ''.$OUTPUT->action_icon($bbbsession['presentation']['url'], $icon, null, array(), false).''.
448 448
                 ''.$OUTPUT->action_link($bbbsession['presentation']['url'],
449
-                      $bbbsession['presentation']['name'], null, $attributes).'<br><br>';
449
+                        $bbbsession['presentation']['name'], null, $attributes).'<br><br>';
450 450
     }
451 451
 
452 452
     return '';
Please login to merge, or discard this patch.
bbb_view.php 1 patch
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -196,10 +196,10 @@  discard block
 block discarded – undo
196 196
 
197 197
 function bigbluebutton_bbb_view_create_meeting_data(&$bbbsession, $bigbluebuttonbn) {
198 198
     $data = ['meetingID' => $bbbsession['meetingid'],
199
-              'name' => $bbbsession['meetingname'],
200
-              'attendeePW' => $bbbsession['viewerPW'],
201
-              'moderatorPW' => $bbbsession['modPW'],
202
-              'logoutURL' => $bbbsession['logoutURL'],
199
+                'name' => $bbbsession['meetingname'],
200
+                'attendeePW' => $bbbsession['viewerPW'],
201
+                'moderatorPW' => $bbbsession['modPW'],
202
+                'logoutURL' => $bbbsession['logoutURL'],
203 203
             ];
204 204
 
205 205
     $data['record'] = 'false';
@@ -224,7 +224,7 @@  discard block
 block discarded – undo
224 224
             '%duration%',
225 225
             (string) $durationtime,
226 226
             get_string('bbbdurationwarning', 'bigbluebuttonbn')
227
-          );
227
+            );
228 228
     }
229 229
 
230 230
     $voicebridge = intval($bbbsession['voicebridge']);
@@ -244,14 +244,14 @@  discard block
 block discarded – undo
244 244
     global $USER;
245 245
 
246 246
     $metadata = ['bbb-origin' => $bbbsession['origin'],
247
-                 'bbb-origin-version' => $bbbsession['originVersion'],
248
-                 'bbb-origin-server-name' => $bbbsession['originServerName'],
249
-                 'bbb-origin-server-common-name' => $bbbsession['originServerCommonName'],
250
-                 'bbb-origin-tag' => $bbbsession['originTag'],
251
-                 'bbb-context' => $bbbsession['course']->fullname,
252
-                 'bbb-recording-name' => $bbbsession['meetingname'],
253
-                 'bbb-recording-description' => bigbluebuttonbn_html2text($bbbsession['meetingdescription'], 64),
254
-                 'bbb-recording-tags' => bigbluebuttonbn_get_tags($bbbsession['cm']->id), // Same as $id.
247
+                    'bbb-origin-version' => $bbbsession['originVersion'],
248
+                    'bbb-origin-server-name' => $bbbsession['originServerName'],
249
+                    'bbb-origin-server-common-name' => $bbbsession['originServerCommonName'],
250
+                    'bbb-origin-tag' => $bbbsession['originTag'],
251
+                    'bbb-context' => $bbbsession['course']->fullname,
252
+                    'bbb-recording-name' => $bbbsession['meetingname'],
253
+                    'bbb-recording-description' => bigbluebuttonbn_html2text($bbbsession['meetingdescription'], 64),
254
+                    'bbb-recording-tags' => bigbluebuttonbn_get_tags($bbbsession['cm']->id), // Same as $id.
255 255
                 ];
256 256
 
257 257
     if ((boolean)\mod_bigbluebuttonbn\locallib\config::get('recordingstatus_enabled')) {
@@ -259,8 +259,8 @@  discard block
 block discarded – undo
259 259
             array(
260 260
                 'email' => array('"' . fullname($USER) . '" <' . $USER->email . '>'),
261 261
                 'context' => $bbbsession['bigbluebuttonbnURL']
262
-              )
263
-          );
262
+                )
263
+            );
264 264
     }
265 265
     if ((boolean)\mod_bigbluebuttonbn\locallib\config::get('recordingready_enabled')) {
266 266
         $metadata['bn-recording-ready-url'] = $bbbsession['recordingReadyURL'];
Please login to merge, or discard this patch.
locallib.php 1 patch
Indentation   +54 added lines, -54 removed lines patch added patch discarded remove patch
@@ -98,9 +98,9 @@  discard block
 block discarded – undo
98 98
  */
99 99
 function bigbluebuttonbn_get_join_url($meetingid, $username, $pw, $logouturl, $configtoken = null, $userid = null) {
100 100
     $data = ['meetingID' => $meetingid,
101
-              'fullName' => $username,
102
-              'password' => $pw,
103
-              'logoutURL' => $logouturl,
101
+                'fullName' => $username,
102
+                'password' => $pw,
103
+                'logoutURL' => $logouturl,
104 104
             ];
105 105
 
106 106
     if (!is_null($configtoken)) {
@@ -193,24 +193,24 @@  discard block
 block discarded – undo
193 193
 function bigbluebuttonbn_get_meeting_info_array($meetingid) {
194 194
     $xml = bigbluebuttonbn_wrap_xml_load_file(
195 195
         \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('getMeetingInfo', ['meetingID' => $meetingid])
196
-      );
196
+        );
197 197
 
198 198
     if ($xml && $xml->returncode == 'SUCCESS' && empty($xml->messageKey)) {
199 199
         // Meeting info was returned.
200 200
         return array('returncode' => $xml->returncode,
201
-                     'meetingID' => $xml->meetingID,
202
-                     'moderatorPW' => $xml->moderatorPW,
203
-                     'attendeePW' => $xml->attendeePW,
204
-                     'hasBeenForciblyEnded' => $xml->hasBeenForciblyEnded,
205
-                     'running' => $xml->running,
206
-                     'recording' => $xml->recording,
207
-                     'startTime' => $xml->startTime,
208
-                     'endTime' => $xml->endTime,
209
-                     'participantCount' => $xml->participantCount,
210
-                     'moderatorCount' => $xml->moderatorCount,
211
-                     'attendees' => $xml->attendees,
212
-                     'metadata' => $xml->metadata,
213
-                   );
201
+                        'meetingID' => $xml->meetingID,
202
+                        'moderatorPW' => $xml->moderatorPW,
203
+                        'attendeePW' => $xml->attendeePW,
204
+                        'hasBeenForciblyEnded' => $xml->hasBeenForciblyEnded,
205
+                        'running' => $xml->running,
206
+                        'recording' => $xml->recording,
207
+                        'startTime' => $xml->startTime,
208
+                        'endTime' => $xml->endTime,
209
+                        'participantCount' => $xml->participantCount,
210
+                        'moderatorCount' => $xml->moderatorCount,
211
+                        'attendees' => $xml->attendees,
212
+                        'metadata' => $xml->metadata,
213
+                    );
214 214
     }
215 215
 
216 216
     if ($xml) {
@@ -274,7 +274,7 @@  discard block
 block discarded – undo
274 274
         // Do getRecordings is executed using a method GET (supported by all versions of BBB).
275 275
         $xml = bigbluebuttonbn_wrap_xml_load_file(
276 276
             \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('getRecordings', ['meetingID' => implode(',', $mids)])
277
-          );
277
+            );
278 278
         if ($xml && $xml->returncode == 'SUCCESS' && isset($xml->recordings)) {
279 279
             // If there were meetings already created.
280 280
             foreach ($xml->recordings->recording as $recording) {
@@ -340,7 +340,7 @@  discard block
 block discarded – undo
340 340
 function bigbluebuttonbn_get_default_config_xml() {
341 341
     $xml = bigbluebuttonbn_wrap_xml_load_file(
342 342
         \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('getDefaultConfigXML')
343
-      );
343
+        );
344 344
 
345 345
     return $xml;
346 346
 }
@@ -412,7 +412,7 @@  discard block
 block discarded – undo
412 412
     foreach ($ids as $id) {
413 413
         $xml = bigbluebuttonbn_wrap_xml_load_file(
414 414
             \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('deleteRecordings', ['recordID' => $id])
415
-          );
415
+            );
416 416
         if ($xml && $xml->returncode != 'SUCCESS') {
417 417
             return false;
418 418
         }
@@ -430,7 +430,7 @@  discard block
 block discarded – undo
430 430
     foreach ($ids as $id) {
431 431
         $xml = bigbluebuttonbn_wrap_xml_load_file(
432 432
             \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('publishRecordings', ['recordID' => $id, 'publish' => $publish])
433
-          );
433
+            );
434 434
         if ($xml && $xml->returncode != 'SUCCESS') {
435 435
             return false;
436 436
         }
@@ -448,7 +448,7 @@  discard block
 block discarded – undo
448 448
     foreach ($ids as $id) {
449 449
         $xml = bigbluebuttonbn_wrap_xml_load_file(
450 450
             \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('updateRecordings', ['recordID' => $id] + (array) $params)
451
-          );
451
+            );
452 452
         if ($xml && $xml->returncode != 'SUCCESS') {
453 453
             return false;
454 454
         }
@@ -464,7 +464,7 @@  discard block
 block discarded – undo
464 464
 function bigbluebuttonbn_end_meeting($meetingid, $modpw) {
465 465
     $xml = bigbluebuttonbn_wrap_xml_load_file(
466 466
         \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('end', ['meetingID' => $meetingid, 'password' => $modpw])
467
-      );
467
+        );
468 468
 
469 469
     if ($xml) {
470 470
         // If the xml packet returned failure it displays the message to the user.
@@ -481,7 +481,7 @@  discard block
 block discarded – undo
481 481
 function bigbluebuttonbn_is_meeting_running($meetingid) {
482 482
     $xml = bigbluebuttonbn_wrap_xml_load_file(
483 483
         \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('isMeetingRunning', ['meetingID' => $meetingid])
484
-      );
484
+        );
485 485
 
486 486
     if ($xml && $xml->returncode == 'SUCCESS') {
487 487
         return ($xml->running == 'true');
@@ -493,7 +493,7 @@  discard block
 block discarded – undo
493 493
 function bigbluebuttonbn_get_server_version() {
494 494
     $xml = bigbluebuttonbn_wrap_xml_load_file(
495 495
         \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url()
496
-      );
496
+        );
497 497
 
498 498
     if ($xml && $xml->returncode == 'SUCCESS') {
499 499
         return $xml->version;
@@ -554,10 +554,10 @@  discard block
 block discarded – undo
554 554
 
555 555
         $options = array();
556 556
         $options['CURLOPT_HTTPHEADER'] = array(
557
-                 'Content-Type: '.$contenttype,
558
-                 'Content-Length: '.strlen($data),
559
-                 'Content-Language: en-US',
560
-               );
557
+                    'Content-Type: '.$contenttype,
558
+                    'Content-Length: '.strlen($data),
559
+                    'Content-Language: en-US',
560
+                );
561 561
 
562 562
         return $c->post($url, $data, $options);
563 563
     }
@@ -632,13 +632,13 @@  discard block
 block discarded – undo
632 632
 
633 633
 function bigbluebuttonbn_role_unknown() {
634 634
     return array(
635
-              "id" => "0",
636
-              "name" => "",
637
-              "shortname" => "unknown",
638
-              "description" => "",
639
-              "sortorder" => "0",
640
-              "archetype" => "guest",
641
-              "localname" => "Unknown"
635
+                "id" => "0",
636
+                "name" => "",
637
+                "shortname" => "unknown",
638
+                "description" => "",
639
+                "sortorder" => "0",
640
+                "archetype" => "guest",
641
+                "localname" => "Unknown"
642 642
             );
643 643
 }
644 644
 
@@ -647,16 +647,16 @@  discard block
 block discarded – undo
647 647
         'all' => array(
648 648
             'name' => get_string('mod_form_field_participant_list_type_all', 'bigbluebuttonbn'),
649 649
             'children' => []
650
-          )
651
-      );
650
+            )
651
+        );
652 652
     $data['role'] = array(
653 653
         'name' => get_string('mod_form_field_participant_list_type_role', 'bigbluebuttonbn'),
654 654
         'children' => bigbluebuttonbn_get_roles_select($context)
655
-      );
655
+        );
656 656
     $data['user'] = array(
657 657
         'name' => get_string('mod_form_field_participant_list_type_user', 'bigbluebuttonbn'),
658 658
         'children' => bigbluebuttonbn_get_users_select($context)
659
-      );
659
+        );
660 660
     return $data;
661 661
 }
662 662
 
@@ -706,9 +706,9 @@  discard block
 block discarded – undo
706 706
             continue;
707 707
         }
708 708
         $participantlistarray[] = array(
709
-              'selectiontype' => 'role',
710
-              'selectionid' => $moderatordefault,
711
-              'role' => BIGBLUEBUTTONBN_ROLE_MODERATOR);
709
+                'selectiontype' => 'role',
710
+                'selectionid' => $moderatordefault,
711
+                'role' => BIGBLUEBUTTONBN_ROLE_MODERATOR);
712 712
     }
713 713
     return $participantlistarray;
714 714
 }
@@ -719,11 +719,11 @@  discard block
 block discarded – undo
719 719
             'all' => get_string('mod_form_field_participant_list_type_all', 'bigbluebuttonbn'),
720 720
             'role' => get_string('mod_form_field_participant_list_type_role', 'bigbluebuttonbn'),
721 721
             'user' => get_string('mod_form_field_participant_list_type_user', 'bigbluebuttonbn'),
722
-          ],
722
+            ],
723 723
         'type_selected' => 'all',
724 724
         'options' => ['all' => '---------------'],
725 725
         'selected' => 'all',
726
-      ];
726
+        ];
727 727
 }
728 728
 
729 729
 function bigbluebuttonbn_is_moderator($context, $participants, $userid = null, $userroles = null) {
@@ -916,7 +916,7 @@  discard block
 block discarded – undo
916 916
         $eventproperties['other'] = $options['other'];
917 917
     }
918 918
     $event = call_user_func_array('\mod_bigbluebuttonbn\event\bigbluebuttonbn_'.$eventtype.'::create',
919
-      array($eventproperties));
919
+        array($eventproperties));
920 920
     $event->trigger();
921 921
 }
922 922
 
@@ -961,7 +961,7 @@  discard block
 block discarded – undo
961 961
     // Ping again and refresh the cache.
962 962
     $meetinginfo = (array) bigbluebuttonbn_wrap_xml_load_file(
963 963
         \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('getMeetingInfo', ['meetingID' => $meetingid])
964
-      );
964
+        );
965 965
     $cache->set($meetingid, array('creation_time' => time(), 'meeting_info' => json_encode($meetinginfo)));
966 966
     return $meetinginfo;
967 967
 }
@@ -1197,8 +1197,8 @@  discard block
 block discarded – undo
1197 1197
     }
1198 1198
     $id = 'playbacks-'.$recording['recordID'];
1199 1199
     $recordingtypes = html_writer::start_tag('div', array('id' => $id, 'data-imported' => $dataimported,
1200
-          'data-meetingid' => $recording['meetingID'], 'data-recordingid' => $recording['recordID'],
1201
-          'title' => $title, $visibility => $visibility));
1200
+            'data-meetingid' => $recording['meetingID'], 'data-recordingid' => $recording['recordID'],
1201
+            'title' => $title, $visibility => $visibility));
1202 1202
     foreach ($recording['playbacks'] as $playback) {
1203 1203
         $recordingtypes .= bigbluebuttonbn_get_recording_data_row_type($recording, $bigbluebuttonbnid,
1204 1204
             $playback).'&#32;';
@@ -1212,7 +1212,7 @@  discard block
 block discarded – undo
1212 1212
     $title = get_string('view_recording_format_'.$playback['type'], 'bigbluebuttonbn');
1213 1213
     $onclick = 'M.mod_bigbluebuttonbn.recordings.recording_play(this);';
1214 1214
     $href = $CFG->wwwroot.'/mod/bigbluebuttonbn/bbb_view.php?action=playback&bn='.$bigbluebuttonbnid.
1215
-      '&mid='.$recording['meetingID'].'&rid='.$recording['recordID'].'&rtype='.$playback['type'];
1215
+        '&mid='.$recording['meetingID'].'&rid='.$recording['recordID'].'&rtype='.$playback['type'];
1216 1216
     if (!isset($recording['imported']) || !isset($recording['protected']) || $recording['protected'] === 'false') {
1217 1217
         $href .= '&href='.urlencode($playback['url']);
1218 1218
     }
@@ -1314,7 +1314,7 @@  discard block
 block discarded – undo
1314 1314
             'onclick' => $onclick,
1315 1315
             'data-action' => $data['action'],
1316 1316
             'data-links' => bigbluebuttonbn_get_count_recording_imported_instances($recording['recordID'])
1317
-          );
1317
+            );
1318 1318
         return $OUTPUT->action_icon('#', $icon, null, $linkattributes, false);
1319 1319
     }
1320 1320
 
@@ -1431,7 +1431,7 @@  discard block
 block discarded – undo
1431 1431
         $texthead . $rowdata->activity . $texttail, $texthead . $rowdata->description . $texttail,
1432 1432
         $rowdata->preview, $texthead . $rowdata->date_formatted . $texttail,
1433 1433
         $rowdata->duration_formatted
1434
-      );
1434
+        );
1435 1435
     if ($bbbsession['managerecordings']) {
1436 1436
         $row->cells[] = $rowdata->actionbar;
1437 1437
     }
@@ -1696,8 +1696,8 @@  discard block
 block discarded – undo
1696 1696
     $activitytime = '';
1697 1697
     if ($time) {
1698 1698
         $activitytime = calendar_day_representation($time).' '.
1699
-          get_string('mod_form_field_notification_msg_at', 'bigbluebuttonbn').' '.
1700
-          calendar_time_representation($time);
1699
+            get_string('mod_form_field_notification_msg_at', 'bigbluebuttonbn').' '.
1700
+            calendar_time_representation($time);
1701 1701
     }
1702 1702
 
1703 1703
     return $activitytime;
Please login to merge, or discard this patch.