Completed
Push — master ( 680835...986e2d )
by Jesus
01:54
created
mod_form.php 2 patches
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',
@@ -180,8 +180,8 @@  discard block
 block discarded – undo
180 180
             $this->bigbluebuttonbn_mform_add_element($mform, $field['type'], $field['name'], $field['data_type'],
181 181
                 $field['description_key'], 0, ['maxlength' => 4, 'size' => 6],
182 182
                 ['message' => get_string('mod_form_field_voicebridge_format_error', 'bigbluebuttonbn'),
183
-                 'type' => 'numeric', 'rule' => '####', 'validator' => 'server']
184
-              );
183
+                    'type' => 'numeric', 'rule' => '####', 'validator' => 'server']
184
+                );
185 185
         } else {
186 186
             $this->bigbluebuttonbn_mform_add_element($mform, $field['type'], $field['name'], $field['data_type'],
187 187
                 $field['description_key'], 0, ['maxlength' => 4, 'size' => 6]);
@@ -212,7 +212,7 @@  discard block
 block discarded – undo
212 212
 
213 213
     private function bigbluebuttonbn_mform_add_block_room_recordings($mform, $cfg) {
214 214
         $field = ['type' => 'hidden', 'name' => 'recordings_html', 'data_type' => PARAM_INT,
215
-                  'description_key' => null];
215
+                    'description_key' => null];
216 216
         if ($cfg['recordings_html_editable']) {
217 217
             $field['type'] = 'checkbox';
218 218
             $field['description_key'] = 'mod_form_field_recordings_html';
@@ -221,7 +221,7 @@  discard block
 block discarded – undo
221 221
             $field['description_key'], $cfg['recordings_html_default']);
222 222
 
223 223
         $field = ['type' => 'hidden', 'name' => 'recordings_deleted', 'data_type' => PARAM_INT,
224
-                  'description_key' => null];
224
+                    'description_key' => null];
225 225
         if ($cfg['recordings_deleted_editable']) {
226 226
             $field['type'] = 'checkbox';
227 227
             $field['description_key'] = 'mod_form_field_recordings_deleted';
@@ -230,7 +230,7 @@  discard block
 block discarded – undo
230 230
             $field['description_key'], $cfg['recordings_deleted_default']);
231 231
 
232 232
         $field = ['type' => 'hidden', 'name' => 'recordings_imported', 'data_type' => PARAM_INT,
233
-                  'description_key' => null];
233
+                    'description_key' => null];
234 234
         if ($cfg['recordings_imported_editable']) {
235 235
             $field['type'] = 'checkbox';
236 236
             $field['description_key'] = 'mod_form_field_recordings_imported';
@@ -278,14 +278,14 @@  discard block
 block discarded – undo
278 278
         $htmlselectiontype = html_writer::select($participantselection['type_options'], 'bigbluebuttonbn_participant_selection_type',
279 279
             $participantselection['type_selected'], array(),
280 280
             array('id' => 'bigbluebuttonbn_participant_selection_type',
281
-                  'onchange' => 'M.mod_bigbluebuttonbn.modform.participant_selection_set(); return 0;'));
281
+                    'onchange' => 'M.mod_bigbluebuttonbn.modform.participant_selection_set(); return 0;'));
282 282
         $htmlselectionoptions = html_writer::select($participantselection['options'], 'bigbluebuttonbn_participant_selection',
283 283
             $participantselection['selected'], array(),
284 284
             array('id' => 'bigbluebuttonbn_participant_selection', 'disabled' => 'disabled'));
285 285
         $htmlselectioninput = html_writer::tag('input', '', array('id' => 'id_addselectionid', 'type' => 'button', 'class' => 'btn btn-secondary',
286 286
             'value' => get_string('mod_form_field_participant_list_action_add', 'bigbluebuttonbn'),
287 287
             'onclick' => 'M.mod_bigbluebuttonbn.modform.participant_add(); return 0;'
288
-          ));
288
+            ));
289 289
         $htmladdparticipant = html_writer::tag('div', $htmlselectiontype . '  ' . $htmlselectionoptions . '  ' . $htmlselectioninput, null);
290 290
         $mform->addElement('html', "\n\n");
291 291
         $mform->addElement('static', 'static_add_participant', get_string('mod_form_field_participant_add', 'bigbluebuttonbn'), $htmladdparticipant);
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -26,8 +26,8 @@  discard block
 block discarded – undo
26 26
 
27 27
 defined('MOODLE_INTERNAL') || die();
28 28
 
29
-require_once(dirname(__FILE__).'/locallib.php');
30
-require_once($CFG->dirroot.'/course/moodleform_mod.php');
29
+require_once(dirname(__FILE__) . '/locallib.php');
30
+require_once($CFG->dirroot . '/course/moodleform_mod.php');
31 31
 
32 32
 class mod_bigbluebuttonbn_mod_form extends moodleform_mod {
33 33
 
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
         $serverversion = bigbluebuttonbn_get_server_version();
38 38
         if (is_null($serverversion)) {
39 39
             print_error('general_error_unable_connect', 'bigbluebuttonbn',
40
-                $CFG->wwwroot.'/admin/settings.php?section=modsettingbigbluebuttonbn');
40
+                $CFG->wwwroot . '/admin/settings.php?section=modsettingbigbluebuttonbn');
41 41
             return;
42 42
         }
43 43
         // Context.
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
                 );
111 111
                 $defaultvalues['presentation'] = $draftitemid;
112 112
             } catch (Exception $e) {
113
-                debugging('Presentation could not be loaded: '.$e->getMessage(), DEBUG_DEVELOPER);
113
+                debugging('Presentation could not be loaded: ' . $e->getMessage(), DEBUG_DEVELOPER);
114 114
                 return null;
115 115
             }
116 116
         }
@@ -325,7 +325,7 @@  discard block
 block discarded – undo
325 325
             return;
326 326
         }
327 327
         $mform->addElement($type, $name, get_string($descriptionkey, 'bigbluebuttonbn'), $options);
328
-        if (get_string_manager()->string_exists($descriptionkey.'_help', 'bigbluebuttonbn')) {
328
+        if (get_string_manager()->string_exists($descriptionkey . '_help', 'bigbluebuttonbn')) {
329 329
             $mform->addHelpButton($name, $descriptionkey, 'bigbluebuttonbn');
330 330
         }
331 331
         if (!empty($rule)) {
Please login to merge, or discard this patch.