Completed
Push — master ( 1b8539...ab9e22 )
by Jesus
10s
created
classes/privacy/provider.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -61,11 +61,11 @@  discard block
 block discarded – undo
61 61
      */
62 62
     public static function _get_metadata(collection $collection) {
63 63
 
64
-         // The table bigbluebuttonbn stores only the room properties.
65
-         // However, there is a chance that some personal information is stored as metadata.
66
-         // This would be done in the column 'participants' where rules can be set to define BBB roles.
67
-         // It is fair to say that only the userid is stored, which is useless if user is removed.
68
-         // But if this is a concern a refactoring on the way the rules are stored will be required.
64
+            // The table bigbluebuttonbn stores only the room properties.
65
+            // However, there is a chance that some personal information is stored as metadata.
66
+            // This would be done in the column 'participants' where rules can be set to define BBB roles.
67
+            // It is fair to say that only the userid is stored, which is useless if user is removed.
68
+            // But if this is a concern a refactoring on the way the rules are stored will be required.
69 69
         $collection->add_database_table('bigbluebuttonbn', [
70 70
             'participants' => 'privacy:metadata:bigbluebuttonbn:participants',
71 71
         ], 'privacy:metadata:bigbluebuttonbn');
@@ -208,7 +208,7 @@  discard block
 block discarded – undo
208 208
                     'meetingid' => $record->meetingid,
209 209
                     'log' => $record->log,
210 210
                     'meta' => $record->meta,
211
-                  ];
211
+                    ];
212 212
                 return $carry;
213 213
             },
214 214
             function($instanceid, $data) use ($user, $instanceidstocmids) {
Please login to merge, or discard this patch.
view.php 1 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/locallib/config.php 1 patch
Indentation   +28 added lines, -28 removed lines patch added patch discarded remove patch
@@ -152,33 +152,33 @@
 block discarded – undo
152 152
      */
153 153
     public static function get_options() {
154 154
         return array(
155
-               'version_major' => self::get_moodle_version_major(),
156
-               'voicebridge_editable' => self::get('voicebridge_editable'),
157
-               'importrecordings_enabled' => self::get('importrecordings_enabled'),
158
-               'importrecordings_from_deleted_enabled' => self::get('importrecordings_from_deleted_enabled'),
159
-               'waitformoderator_default' => self::get('waitformoderator_default'),
160
-               'waitformoderator_editable' => self::get('waitformoderator_editable'),
161
-               'userlimit_default' => self::get('userlimit_default'),
162
-               'userlimit_editable' => self::get('userlimit_editable'),
163
-               'preuploadpresentation_enabled' => self::get('preuploadpresentation_enabled'),
164
-               'sendnotifications_enabled' => self::get('sendnotifications_enabled'),
165
-               'recordings_enabled' => self::get('recordings_enabled'),
166
-               'recordings_html_default' => self::get('recordings_html_default'),
167
-               'recordings_html_editable' => self::get('recordings_html_editable'),
168
-               'recordings_deleted_default' => self::get('recordings_deleted_default'),
169
-               'recordings_deleted_editable' => self::get('recordings_deleted_editable'),
170
-               'recordings_imported_default' => self::get('recordings_imported_default'),
171
-               'recordings_imported_editable' => self::get('recordings_imported_editable'),
172
-               'recordings_preview_default' => self::get('recordings_preview_default'),
173
-               'recordings_preview_editable' => self::get('recordings_preview_editable'),
174
-               'recording_default' => self::get('recording_default'),
175
-               'recording_editable' => self::get('recording_editable'),
176
-               'recording_icons_enabled' => self::get('recording_icons_enabled'),
177
-               'general_warning_message' => self::get('general_warning_message'),
178
-               'general_warning_box_type' => self::get('general_warning_box_type'),
179
-               'general_warning_button_text' => self::get('general_warning_button_text'),
180
-               'general_warning_button_href' => self::get('general_warning_button_href'),
181
-               'general_warning_button_class' => self::get('general_warning_button_class'),
182
-          );
155
+                'version_major' => self::get_moodle_version_major(),
156
+                'voicebridge_editable' => self::get('voicebridge_editable'),
157
+                'importrecordings_enabled' => self::get('importrecordings_enabled'),
158
+                'importrecordings_from_deleted_enabled' => self::get('importrecordings_from_deleted_enabled'),
159
+                'waitformoderator_default' => self::get('waitformoderator_default'),
160
+                'waitformoderator_editable' => self::get('waitformoderator_editable'),
161
+                'userlimit_default' => self::get('userlimit_default'),
162
+                'userlimit_editable' => self::get('userlimit_editable'),
163
+                'preuploadpresentation_enabled' => self::get('preuploadpresentation_enabled'),
164
+                'sendnotifications_enabled' => self::get('sendnotifications_enabled'),
165
+                'recordings_enabled' => self::get('recordings_enabled'),
166
+                'recordings_html_default' => self::get('recordings_html_default'),
167
+                'recordings_html_editable' => self::get('recordings_html_editable'),
168
+                'recordings_deleted_default' => self::get('recordings_deleted_default'),
169
+                'recordings_deleted_editable' => self::get('recordings_deleted_editable'),
170
+                'recordings_imported_default' => self::get('recordings_imported_default'),
171
+                'recordings_imported_editable' => self::get('recordings_imported_editable'),
172
+                'recordings_preview_default' => self::get('recordings_preview_default'),
173
+                'recordings_preview_editable' => self::get('recordings_preview_editable'),
174
+                'recording_default' => self::get('recording_default'),
175
+                'recording_editable' => self::get('recording_editable'),
176
+                'recording_icons_enabled' => self::get('recording_icons_enabled'),
177
+                'general_warning_message' => self::get('general_warning_message'),
178
+                'general_warning_box_type' => self::get('general_warning_box_type'),
179
+                'general_warning_button_text' => self::get('general_warning_button_text'),
180
+                'general_warning_button_href' => self::get('general_warning_button_href'),
181
+                'general_warning_button_class' => self::get('general_warning_button_class'),
182
+            );
183 183
     }
184 184
 }
Please login to merge, or discard this patch.
mod_form.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -213,8 +213,8 @@  discard block
 block discarded – undo
213 213
             $this->bigbluebuttonbn_mform_add_element($mform, $field['type'], $field['name'], $field['data_type'],
214 214
                 $field['description_key'], 0, ['maxlength' => 4, 'size' => 6],
215 215
                 ['message' => get_string('mod_form_field_voicebridge_format_error', 'bigbluebuttonbn'),
216
-                 'type' => 'numeric', 'rule' => '####', 'validator' => 'server']
217
-              );
216
+                    'type' => 'numeric', 'rule' => '####', 'validator' => 'server']
217
+                );
218 218
         } else {
219 219
             $this->bigbluebuttonbn_mform_add_element($mform, $field['type'], $field['name'], $field['data_type'],
220 220
                 $field['description_key'], 0, ['maxlength' => 4, 'size' => 6]);
@@ -252,7 +252,7 @@  discard block
 block discarded – undo
252 252
      */
253 253
     private function bigbluebuttonbn_mform_add_block_room_recordings(&$mform, $cfg) {
254 254
         $field = ['type' => 'hidden', 'name' => 'recordings_html', 'data_type' => PARAM_INT,
255
-                  'description_key' => null];
255
+                    'description_key' => null];
256 256
         if ($cfg['recordings_html_editable']) {
257 257
             $field['type'] = 'checkbox';
258 258
             $field['description_key'] = 'mod_form_field_recordings_html';
@@ -260,7 +260,7 @@  discard block
 block discarded – undo
260 260
         $this->bigbluebuttonbn_mform_add_element($mform, $field['type'], $field['name'], $field['data_type'],
261 261
             $field['description_key'], $cfg['recordings_html_default']);
262 262
         $field = ['type' => 'hidden', 'name' => 'recordings_deleted', 'data_type' => PARAM_INT,
263
-                  'description_key' => null];
263
+                    'description_key' => null];
264 264
         if ($cfg['recordings_deleted_editable']) {
265 265
             $field['type'] = 'checkbox';
266 266
             $field['description_key'] = 'mod_form_field_recordings_deleted';
@@ -268,7 +268,7 @@  discard block
 block discarded – undo
268 268
         $this->bigbluebuttonbn_mform_add_element($mform, $field['type'], $field['name'], $field['data_type'],
269 269
             $field['description_key'], $cfg['recordings_deleted_default']);
270 270
         $field = ['type' => 'hidden', 'name' => 'recordings_imported', 'data_type' => PARAM_INT,
271
-                  'description_key' => null];
271
+                    'description_key' => null];
272 272
         if ($cfg['importrecordings_enabled'] && $cfg['recordings_imported_editable']) {
273 273
             $field['type'] = 'checkbox';
274 274
             $field['description_key'] = 'mod_form_field_recordings_imported';
@@ -276,7 +276,7 @@  discard block
 block discarded – undo
276 276
         $this->bigbluebuttonbn_mform_add_element($mform, $field['type'], $field['name'], $field['data_type'],
277 277
             $field['description_key'], $cfg['recordings_imported_default']);
278 278
         $field = ['type' => 'hidden', 'name' => 'recordings_preview', 'data_type' => PARAM_INT,
279
-                  'description_key' => null];
279
+                    'description_key' => null];
280 280
         if ($cfg['recordings_preview_editable']) {
281 281
             $field['type'] = 'checkbox';
282 282
             $field['description_key'] = 'mod_form_field_recordings_preview';
@@ -347,7 +347,7 @@  discard block
 block discarded – undo
347 347
         $htmlselectiontype = html_writer::select($participantselection['type_options'],
348 348
             'bigbluebuttonbn_participant_selection_type', $participantselection['type_selected'], array(),
349 349
             array('id' => 'bigbluebuttonbn_participant_selection_type',
350
-                  'onchange' => 'M.mod_bigbluebuttonbn.modform.participantSelectionSet(); return 0;'));
350
+                    'onchange' => 'M.mod_bigbluebuttonbn.modform.participantSelectionSet(); return 0;'));
351 351
         $htmlselectionoptions = html_writer::select($participantselection['options'], 'bigbluebuttonbn_participant_selection',
352 352
             $participantselection['selected'], array(),
353 353
             array('id' => 'bigbluebuttonbn_participant_selection', 'disabled' => 'disabled'));
@@ -355,7 +355,7 @@  discard block
 block discarded – undo
355 355
             'type' => 'button', 'class' => 'btn btn-secondary',
356 356
             'value' => get_string('mod_form_field_participant_list_action_add', 'bigbluebuttonbn'),
357 357
             'onclick' => 'M.mod_bigbluebuttonbn.modform.participantAdd(); return 0;'
358
-          ));
358
+            ));
359 359
         $htmladdparticipant = html_writer::tag('div',
360 360
             $htmlselectiontype . '  ' . $htmlselectionoptions . '  ' . $htmlselectioninput, null);
361 361
         $mform->addElement('html', "\n\n");
Please login to merge, or discard this patch.
locallib.php 1 patch
Indentation   +47 added lines, -47 removed lines patch added patch discarded remove patch
@@ -121,9 +121,9 @@  discard block
 block discarded – undo
121 121
  */
122 122
 function bigbluebuttonbn_get_join_url($meetingid, $username, $pw, $logouturl, $configtoken = null, $userid = null) {
123 123
     $data = ['meetingID' => $meetingid,
124
-              'fullName' => $username,
125
-              'password' => $pw,
126
-              'logoutURL' => $logouturl,
124
+                'fullName' => $username,
125
+                'password' => $pw,
126
+                'logoutURL' => $logouturl,
127 127
             ];
128 128
     if (!is_null($configtoken)) {
129 129
         $data['configToken'] = $configtoken;
@@ -175,23 +175,23 @@  discard block
 block discarded – undo
175 175
 function bigbluebuttonbn_get_meeting_info_array($meetingid) {
176 176
     $xml = bigbluebuttonbn_wrap_xml_load_file(
177 177
         \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('getMeetingInfo', ['meetingID' => $meetingid])
178
-      );
178
+        );
179 179
     if ($xml && $xml->returncode == 'SUCCESS' && empty($xml->messageKey)) {
180 180
         // Meeting info was returned.
181 181
         return array('returncode' => $xml->returncode,
182
-                     'meetingID' => $xml->meetingID,
183
-                     'moderatorPW' => $xml->moderatorPW,
184
-                     'attendeePW' => $xml->attendeePW,
185
-                     'hasBeenForciblyEnded' => $xml->hasBeenForciblyEnded,
186
-                     'running' => $xml->running,
187
-                     'recording' => $xml->recording,
188
-                     'startTime' => $xml->startTime,
189
-                     'endTime' => $xml->endTime,
190
-                     'participantCount' => $xml->participantCount,
191
-                     'moderatorCount' => $xml->moderatorCount,
192
-                     'attendees' => $xml->attendees,
193
-                     'metadata' => $xml->metadata,
194
-                   );
182
+                        'meetingID' => $xml->meetingID,
183
+                        'moderatorPW' => $xml->moderatorPW,
184
+                        'attendeePW' => $xml->attendeePW,
185
+                        'hasBeenForciblyEnded' => $xml->hasBeenForciblyEnded,
186
+                        'running' => $xml->running,
187
+                        'recording' => $xml->recording,
188
+                        'startTime' => $xml->startTime,
189
+                        'endTime' => $xml->endTime,
190
+                        'participantCount' => $xml->participantCount,
191
+                        'moderatorCount' => $xml->moderatorCount,
192
+                        'attendees' => $xml->attendees,
193
+                        'metadata' => $xml->metadata,
194
+                    );
195 195
     }
196 196
     if ($xml) {
197 197
         // Either failure or success without meeting info.
@@ -327,7 +327,7 @@  discard block
 block discarded – undo
327 327
 function bigbluebuttonbn_get_default_config_xml() {
328 328
     $xml = bigbluebuttonbn_wrap_xml_load_file(
329 329
         \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('getDefaultConfigXML')
330
-      );
330
+        );
331 331
     return $xml;
332 332
 }
333 333
 
@@ -428,7 +428,7 @@  discard block
 block discarded – undo
428 428
     foreach ($ids as $id) {
429 429
         $xml = bigbluebuttonbn_wrap_xml_load_file(
430 430
             \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('deleteRecordings', ['recordID' => $id])
431
-          );
431
+            );
432 432
         if ($xml && $xml->returncode != 'SUCCESS') {
433 433
             return false;
434 434
         }
@@ -447,7 +447,7 @@  discard block
 block discarded – undo
447 447
     foreach ($ids as $id) {
448 448
         $xml = bigbluebuttonbn_wrap_xml_load_file(
449 449
             \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('publishRecordings', ['recordID' => $id, 'publish' => $publish])
450
-          );
450
+            );
451 451
         if ($xml && $xml->returncode != 'SUCCESS') {
452 452
             return false;
453 453
         }
@@ -466,7 +466,7 @@  discard block
 block discarded – undo
466 466
     foreach ($ids as $id) {
467 467
         $xml = bigbluebuttonbn_wrap_xml_load_file(
468 468
             \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('updateRecordings', ['recordID' => $id] + (array) $params)
469
-          );
469
+            );
470 470
         if ($xml && $xml->returncode != 'SUCCESS') {
471 471
             return false;
472 472
         }
@@ -483,7 +483,7 @@  discard block
 block discarded – undo
483 483
 function bigbluebuttonbn_end_meeting($meetingid, $modpw) {
484 484
     $xml = bigbluebuttonbn_wrap_xml_load_file(
485 485
         \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('end', ['meetingID' => $meetingid, 'password' => $modpw])
486
-      );
486
+        );
487 487
     if ($xml) {
488 488
         // If the xml packet returned failure it displays the message to the user.
489 489
         return array('returncode' => $xml->returncode, 'message' => $xml->message, 'messageKey' => $xml->messageKey);
@@ -500,7 +500,7 @@  discard block
 block discarded – undo
500 500
 function bigbluebuttonbn_get_server_version() {
501 501
     $xml = bigbluebuttonbn_wrap_xml_load_file(
502 502
         \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url()
503
-      );
503
+        );
504 504
     if ($xml && $xml->returncode == 'SUCCESS') {
505 505
         return $xml->version;
506 506
     }
@@ -567,10 +567,10 @@  discard block
 block discarded – undo
567 567
         }
568 568
         $options = array();
569 569
         $options['CURLOPT_HTTPHEADER'] = array(
570
-                 'Content-Type: '.$contenttype,
571
-                 'Content-Length: '.strlen($data),
572
-                 'Content-Language: en-US',
573
-               );
570
+                    'Content-Type: '.$contenttype,
571
+                    'Content-Length: '.strlen($data),
572
+                    'Content-Language: en-US',
573
+                );
574 574
 
575 575
         return $c->post($url, $data, $options);
576 576
     }
@@ -717,16 +717,16 @@  discard block
 block discarded – undo
717 717
         'all' => array(
718 718
             'name' => get_string('mod_form_field_participant_list_type_all', 'bigbluebuttonbn'),
719 719
             'children' => []
720
-          )
721
-      );
720
+            )
721
+        );
722 722
     $data['role'] = array(
723 723
         'name' => get_string('mod_form_field_participant_list_type_role', 'bigbluebuttonbn'),
724 724
         'children' => bigbluebuttonbn_get_roles_select($context)
725
-      );
725
+        );
726 726
     $data['user'] = array(
727 727
         'name' => get_string('mod_form_field_participant_list_type_user', 'bigbluebuttonbn'),
728 728
         'children' => bigbluebuttonbn_get_users_select($context)
729
-      );
729
+        );
730 730
     return $data;
731 731
 }
732 732
 
@@ -771,9 +771,9 @@  discard block
 block discarded – undo
771 771
             continue;
772 772
         }
773 773
         $participantlistarray[] = array(
774
-              'selectiontype' => 'role',
775
-              'selectionid' => $moderatordefault,
776
-              'role' => BIGBLUEBUTTONBN_ROLE_MODERATOR);
774
+                'selectiontype' => 'role',
775
+                'selectionid' => $moderatordefault,
776
+                'role' => BIGBLUEBUTTONBN_ROLE_MODERATOR);
777 777
     }
778 778
     return $participantlistarray;
779 779
 }
@@ -816,11 +816,11 @@  discard block
 block discarded – undo
816 816
             'all' => get_string('mod_form_field_participant_list_type_all', 'bigbluebuttonbn'),
817 817
             'role' => get_string('mod_form_field_participant_list_type_role', 'bigbluebuttonbn'),
818 818
             'user' => get_string('mod_form_field_participant_list_type_user', 'bigbluebuttonbn'),
819
-          ],
819
+            ],
820 820
         'type_selected' => 'all',
821 821
         'options' => ['all' => '---------------'],
822 822
         'selected' => 'all',
823
-      ];
823
+        ];
824 824
 }
825 825
 
826 826
 /**
@@ -1100,7 +1100,7 @@  discard block
 block discarded – undo
1100 1100
     // Ping again and refresh the cache.
1101 1101
     $meetinginfo = (array) bigbluebuttonbn_wrap_xml_load_file(
1102 1102
         \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('getMeetingInfo', ['meetingID' => $meetingid])
1103
-      );
1103
+        );
1104 1104
     $cache->set($meetingid, array('creation_time' => time(), 'meeting_info' => json_encode($meetinginfo)));
1105 1105
     return $meetinginfo;
1106 1106
 }
@@ -1512,8 +1512,8 @@  discard block
 block discarded – undo
1512 1512
     }
1513 1513
     $id = 'playbacks-'.$recording['recordID'];
1514 1514
     $recordingtypes = html_writer::start_tag('div', array('id' => $id, 'data-imported' => $dataimported,
1515
-          'data-meetingid' => $recording['meetingID'], 'data-recordingid' => $recording['recordID'],
1516
-          'title' => $title, $visibility => $visibility));
1515
+            'data-meetingid' => $recording['meetingID'], 'data-recordingid' => $recording['recordID'],
1516
+            'title' => $title, $visibility => $visibility));
1517 1517
     foreach ($recording['playbacks'] as $playback) {
1518 1518
         $recordingtypes .= bigbluebuttonbn_get_recording_data_row_type($recording, $bbbsession, $playback);
1519 1519
     }
@@ -1537,7 +1537,7 @@  discard block
 block discarded – undo
1537 1537
     }
1538 1538
     $text = get_string('view_recording_format_'.$playback['type'], 'bigbluebuttonbn');
1539 1539
     $href = $CFG->wwwroot . '/mod/bigbluebuttonbn/bbb_view.php?action=play&bn=' . $bbbsession['bigbluebuttonbn']->id .
1540
-      '&mid='.$recording['meetingID'] . '&rid=' . $recording['recordID'] . '&rtype=' . $playback['type'];
1540
+        '&mid='.$recording['meetingID'] . '&rid=' . $recording['recordID'] . '&rtype=' . $playback['type'];
1541 1541
     if (!isset($recording['imported']) || !isset($recording['protected']) || $recording['protected'] === 'false') {
1542 1542
         $href .= '&href='.urlencode(trim($playback['url']));
1543 1543
     }
@@ -1548,7 +1548,7 @@  discard block
 block discarded – undo
1548 1548
         'data-action' => 'play',
1549 1549
         'data-target' => $playback['type'],
1550 1550
         'data-href' => $href,
1551
-      );
1551
+        );
1552 1552
     if (!bigbluebuttonbn_validate_resource(trim($playback['url']))) {
1553 1553
         $linkattributes['class'] = 'btn btn-sm btn-warning';
1554 1554
         $linkattributes['title'] = get_string('view_recording_format_errror_unreachable', 'bigbluebuttonbn');
@@ -1684,10 +1684,10 @@  discard block
 block discarded – undo
1684 1684
             'id' => $id,
1685 1685
             'onclick' => $onclick,
1686 1686
             'data-action' => $data['action']
1687
-          );
1687
+            );
1688 1688
         if (!isset($recording['imported'])) {
1689 1689
             $linkattributes['data-links'] = bigbluebuttonbn_count_recording_imported_instances(
1690
-              $recording['recordID']);
1690
+                $recording['recordID']);
1691 1691
         }
1692 1692
         if (isset($data['disabled'])) {
1693 1693
             $iconattributes['class'] .= ' fa-' . $data['disabled'];
@@ -2228,8 +2228,8 @@  discard block
 block discarded – undo
2228 2228
     $activitytime = '';
2229 2229
     if ($time) {
2230 2230
         $activitytime = calendar_day_representation($time).' '.
2231
-          get_string('mod_form_field_notification_msg_at', 'bigbluebuttonbn').' '.
2232
-          calendar_time_representation($time);
2231
+            get_string('mod_form_field_notification_msg_at', 'bigbluebuttonbn').' '.
2232
+            calendar_time_representation($time);
2233 2233
     }
2234 2234
     return $activitytime;
2235 2235
 }
@@ -2529,7 +2529,7 @@  discard block
 block discarded – undo
2529 2529
         $renderer->render_group_element('participant_moderator_default',
2530 2530
             $renderer->render_group_element_configmultiselect('participant_moderator_default',
2531 2531
                 array_keys($owner), array_merge($owner, $roles))
2532
-          );
2532
+            );
2533 2533
     }
2534 2534
 }
2535 2535
 
@@ -2633,7 +2633,7 @@  discard block
 block discarded – undo
2633 2633
         return $output;
2634 2634
     }
2635 2635
     $output .= $OUTPUT->box_start('box boxalignleft adminerror alert alert-' . $type . ' alert-block fade in',
2636
-      'bigbluebuttonbn_view_general_warning') . "\n";
2636
+        'bigbluebuttonbn_view_general_warning') . "\n";
2637 2637
     $output .= '    ' . $message . "\n";
2638 2638
     $output .= '  <div class="singlebutton pull-right">' . "\n";
2639 2639
     if (!empty($href)) {
Please login to merge, or discard this patch.