Completed
Pull Request — master (#42)
by Jesus
02:06
created
mod_form.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
                 'alt' => $contents,
94 94
                 'title' => $contents,
95 95
                 'src' => $jsvars['pix_icon_delete']
96
-              );
96
+                );
97 97
             $jsvars['pix_icon_delete'] = html_writer::tag('img', '', $options);
98 98
         }
99 99
         $PAGE->requires->yui_module('moodle-mod_bigbluebuttonbn-modform',
@@ -189,8 +189,8 @@  discard block
 block discarded – undo
189 189
             $this->bigbluebuttonbn_mform_add_element($mform, $field['type'], $field['name'], $field['data_type'],
190 190
                 $field['description_key'], 0, ['maxlength' => 4, 'size' => 6],
191 191
                 ['message' => get_string('mod_form_field_voicebridge_format_error', 'bigbluebuttonbn'),
192
-                 'type' => 'numeric', 'rule' => '####', 'validator' => 'server']
193
-              );
192
+                    'type' => 'numeric', 'rule' => '####', 'validator' => 'server']
193
+                );
194 194
         } else {
195 195
             $this->bigbluebuttonbn_mform_add_element($mform, $field['type'], $field['name'], $field['data_type'],
196 196
                 $field['description_key'], 0, ['maxlength' => 4, 'size' => 6]);
@@ -224,7 +224,7 @@  discard block
 block discarded – undo
224 224
      */
225 225
     private function bigbluebuttonbn_mform_add_block_room_recordings($mform, $cfg) {
226 226
         $field = ['type' => 'hidden', 'name' => 'recordings_html', 'data_type' => PARAM_INT,
227
-                  'description_key' => null];
227
+                    'description_key' => null];
228 228
         if ($cfg['recordings_html_editable']) {
229 229
             $field['type'] = 'checkbox';
230 230
             $field['description_key'] = 'mod_form_field_recordings_html';
@@ -233,7 +233,7 @@  discard block
 block discarded – undo
233 233
             $field['description_key'], $cfg['recordings_html_default']);
234 234
 
235 235
         $field = ['type' => 'hidden', 'name' => 'recordings_deleted', 'data_type' => PARAM_INT,
236
-                  'description_key' => null];
236
+                    'description_key' => null];
237 237
         if ($cfg['recordings_deleted_editable']) {
238 238
             $field['type'] = 'checkbox';
239 239
             $field['description_key'] = 'mod_form_field_recordings_deleted';
@@ -242,7 +242,7 @@  discard block
 block discarded – undo
242 242
             $field['description_key'], $cfg['recordings_deleted_default']);
243 243
 
244 244
         $field = ['type' => 'hidden', 'name' => 'recordings_imported', 'data_type' => PARAM_INT,
245
-                  'description_key' => null];
245
+                    'description_key' => null];
246 246
         if ($cfg['recordings_imported_editable']) {
247 247
             $field['type'] = 'checkbox';
248 248
             $field['description_key'] = 'mod_form_field_recordings_imported';
@@ -299,7 +299,7 @@  discard block
 block discarded – undo
299 299
         $htmlselectiontype = html_writer::select($participantselection['type_options'],
300 300
             'bigbluebuttonbn_participant_selection_type', $participantselection['type_selected'], array(),
301 301
             array('id' => 'bigbluebuttonbn_participant_selection_type',
302
-                  'onchange' => 'M.mod_bigbluebuttonbn.modform.participantSelectionSet(); return 0;'));
302
+                    'onchange' => 'M.mod_bigbluebuttonbn.modform.participantSelectionSet(); return 0;'));
303 303
         $htmlselectionoptions = html_writer::select($participantselection['options'], 'bigbluebuttonbn_participant_selection',
304 304
             $participantselection['selected'], array(),
305 305
             array('id' => 'bigbluebuttonbn_participant_selection', 'disabled' => 'disabled'));
@@ -307,7 +307,7 @@  discard block
 block discarded – undo
307 307
             'type' => 'button', 'class' => 'btn btn-secondary',
308 308
             'value' => get_string('mod_form_field_participant_list_action_add', 'bigbluebuttonbn'),
309 309
             'onclick' => 'M.mod_bigbluebuttonbn.modform.participantAdd(); return 0;'
310
-          ));
310
+            ));
311 311
         $htmladdparticipant = html_writer::tag('div',
312 312
             $htmlselectiontype . '  ' . $htmlselectionoptions . '  ' . $htmlselectioninput, null);
313 313
         $mform->addElement('html', "\n\n");
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
@@ -198,10 +198,10 @@  discard block
 block discarded – undo
198 198
  */
199 199
 function bigbluebutton_bbb_view_create_meeting_data(&$bbbsession) {
200 200
     $data = ['meetingID' => $bbbsession['meetingid'],
201
-              'name' => bigbluebuttonbn_html2text($bbbsession['meetingname'], 64),
202
-              'attendeePW' => $bbbsession['viewerPW'],
203
-              'moderatorPW' => $bbbsession['modPW'],
204
-              'logoutURL' => $bbbsession['logoutURL'],
201
+                'name' => bigbluebuttonbn_html2text($bbbsession['meetingname'], 64),
202
+                'attendeePW' => $bbbsession['viewerPW'],
203
+                'moderatorPW' => $bbbsession['modPW'],
204
+                'logoutURL' => $bbbsession['logoutURL'],
205 205
             ];
206 206
     $data['record'] = bigbluebutton_bbb_view_create_meeting_data_record($bbbsession['record']);
207 207
     $data['welcome'] = trim($bbbsession['welcome']);
@@ -214,7 +214,7 @@  discard block
 block discarded – undo
214 214
             '%duration%',
215 215
             (string) $durationtime,
216 216
             get_string('bbbdurationwarning', 'bigbluebuttonbn')
217
-          );
217
+            );
218 218
     }
219 219
     $voicebridge = intval($bbbsession['voicebridge']);
220 220
     if ($voicebridge > 0 && $voicebridge < 79999) {
@@ -253,22 +253,22 @@  discard block
 block discarded – undo
253 253
 function bigbluebutton_bbb_view_create_meeting_metadata(&$bbbsession) {
254 254
     global $USER;
255 255
     $metadata = ['bbb-origin' => $bbbsession['origin'],
256
-                 'bbb-origin-version' => $bbbsession['originVersion'],
257
-                 'bbb-origin-server-name' => $bbbsession['originServerName'],
258
-                 'bbb-origin-server-common-name' => $bbbsession['originServerCommonName'],
259
-                 'bbb-origin-tag' => $bbbsession['originTag'],
260
-                 'bbb-context' => $bbbsession['course']->fullname,
261
-                 'bbb-recording-name' => bigbluebuttonbn_html2text($bbbsession['meetingname'], 64),
262
-                 'bbb-recording-description' => bigbluebuttonbn_html2text($bbbsession['meetingdescription'], 64),
263
-                 'bbb-recording-tags' => bigbluebuttonbn_get_tags($bbbsession['cm']->id), // Same as $id.
256
+                    'bbb-origin-version' => $bbbsession['originVersion'],
257
+                    'bbb-origin-server-name' => $bbbsession['originServerName'],
258
+                    'bbb-origin-server-common-name' => $bbbsession['originServerCommonName'],
259
+                    'bbb-origin-tag' => $bbbsession['originTag'],
260
+                    'bbb-context' => $bbbsession['course']->fullname,
261
+                    'bbb-recording-name' => bigbluebuttonbn_html2text($bbbsession['meetingname'], 64),
262
+                    'bbb-recording-description' => bigbluebuttonbn_html2text($bbbsession['meetingdescription'], 64),
263
+                    'bbb-recording-tags' => bigbluebuttonbn_get_tags($bbbsession['cm']->id), // Same as $id.
264 264
                 ];
265 265
     if ((boolean)\mod_bigbluebuttonbn\locallib\config::get('recordingstatus_enabled')) {
266 266
         $metadata["bn-recording-status"] = json_encode(
267 267
             array(
268 268
                 'email' => array('"' . fullname($USER) . '" <' . $USER->email . '>'),
269 269
                 'context' => $bbbsession['bigbluebuttonbnURL']
270
-              )
271
-          );
270
+                )
271
+            );
272 272
     }
273 273
     if ((boolean)\mod_bigbluebuttonbn\locallib\config::get('recordingready_enabled')) {
274 274
         $metadata['bn-recording-ready-url'] = $bbbsession['recordingReadyURL'];
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
@@ -366,26 +366,26 @@  discard block
 block discarded – undo
366 366
             return array(
367 367
                 'status' => false,
368 368
                 'message' => get_string('view_recording_publish_link_deleted', 'bigbluebuttonbn')
369
-              );
369
+                );
370 370
         }
371 371
         if ($realrecordings[$params['id']]['published'] !== 'true') {
372 372
             return array(
373 373
                 'status' => false,
374 374
                 'message' => get_string('view_recording_publish_link_not_published', 'bigbluebuttonbn')
375
-              );
375
+                );
376 376
         }
377 377
         return array(
378 378
             'status' => bigbluebuttonbn_publish_recording_imported(
379 379
                 $recordings[$params['id']]['imported'], true
380 380
             )
381
-          );
381
+            );
382 382
     }
383 383
     // As the recordingid was not identified as imported recording link, execute actual publish.
384 384
     return array(
385 385
         'status' => bigbluebuttonbn_publish_recordings(
386 386
             $params['id'], 'true'
387 387
         )
388
-      );
388
+        );
389 389
 }
390 390
 
391 391
 /**
@@ -401,26 +401,26 @@  discard block
 block discarded – undo
401 401
             return array(
402 402
                 'status' => false,
403 403
                 'message' => get_string('view_recording_unprotect_link_deleted', 'bigbluebuttonbn')
404
-              );
404
+                );
405 405
         }
406 406
         if ($realrecordings[$params['id']]['protected'] === 'true') {
407 407
             return array(
408 408
                 'status' => false,
409 409
                 'message' => get_string('view_recording_unprotect_link_not_unprotected', 'bigbluebuttonbn')
410
-              );
410
+                );
411 411
         }
412 412
         return array(
413 413
             'status' => bigbluebuttonbn_protect_recording_imported(
414 414
                 $recordings[$params['id']]['imported'], false
415 415
             )
416
-          );
416
+            );
417 417
     }
418 418
     // As the recordingid was not identified as imported recording link, execute actual uprotect.
419 419
     return array(
420 420
         'status' => bigbluebuttonbn_update_recordings(
421 421
             $params['id'], array('protect' => 'false')
422 422
         )
423
-      );
423
+        );
424 424
 }
425 425
 
426 426
 /**
@@ -434,7 +434,7 @@  discard block
 block discarded – undo
434 434
             'status' => bigbluebuttonbn_publish_recording_imported(
435 435
                 $recordings[$params['id']]['imported'], false
436 436
             )
437
-          );
437
+            );
438 438
     }
439 439
     // As the recordingid was not identified as imported recording link, execute unpublish on a real recording.
440 440
     // First: Unpublish imported links associated to the recording.
@@ -452,7 +452,7 @@  discard block
 block discarded – undo
452 452
         'status' => bigbluebuttonbn_publish_recordings(
453 453
             $params['id'], 'false'
454 454
         )
455
-      );
455
+        );
456 456
 }
457 457
 
458 458
 /**
@@ -466,7 +466,7 @@  discard block
 block discarded – undo
466 466
             'status' => bigbluebuttonbn_protect_recording_imported(
467 467
                 $recordings[$params['id']]['imported'], true
468 468
             )
469
-          );
469
+            );
470 470
     }
471 471
     // As the recordingid was not identified as imported recording link, execute protect on a real recording.
472 472
     // First: Protect imported links associated to the recording.
@@ -484,7 +484,7 @@  discard block
 block discarded – undo
484 484
         'status' => bigbluebuttonbn_update_recordings(
485 485
             $params['id'], array('protect' => 'true')
486 486
         )
487
-      );
487
+        );
488 488
 }
489 489
 
490 490
 /**
@@ -498,7 +498,7 @@  discard block
 block discarded – undo
498 498
             'status' => bigbluebuttonbn_delete_recording_imported(
499 499
                 $recordings[$params['id']]['imported']
500 500
             )
501
-          );
501
+            );
502 502
     }
503 503
     // As the recordingid was not identified as imported recording link, execute delete on a real recording.
504 504
     // First: Delete imported links associated to the recording.
@@ -514,7 +514,7 @@  discard block
 block discarded – undo
514 514
         'status' => bigbluebuttonbn_delete_recordings(
515 515
             $params['id']
516 516
         )
517
-      );
517
+        );
518 518
 }
519 519
 
520 520
 /**
@@ -527,7 +527,7 @@  discard block
 block discarded – undo
527 527
             'status' => bigbluebuttonbn_update_recording_imported(
528 528
                 $recordings[$params['id']]['imported'], json_decode($params['meta'], true)
529 529
             )
530
-          );
530
+            );
531 531
     }
532 532
 
533 533
     // As the recordingid was not identified as imported recording link, execute update on a real recording.
@@ -537,7 +537,7 @@  discard block
 block discarded – undo
537 537
         'status' => bigbluebuttonbn_update_recordings(
538 538
             $params['id'], json_decode($params['meta'])
539 539
         )
540
-      );
540
+        );
541 541
 }
542 542
 
543 543
 /**
@@ -682,10 +682,10 @@  discard block
 block discarded – undo
682 682
     $params['recording_import'] = ['id' => 'The recordingID must be specified.'];
683 683
     $params['recording_ready'] = [
684 684
             'signed_parameters' => 'A JWT encoded string must be included as [signed_parameters].'
685
-          ];
685
+            ];
686 686
     $params['live_session_events'] = [
687 687
             'signed_parameters' => 'A JWT encoded string must be included as [signed_parameters].'
688
-          ];
688
+            ];
689 689
     return $params;
690 690
 }
691 691
 
Please login to merge, or discard this patch.