@@ -111,7 +111,7 @@ discard block |
||
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 |
||
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]); |
@@ -254,7 +254,7 @@ discard block |
||
254 | 254 | $field['description_key'], $cfg['recordings_html_default']); |
255 | 255 | |
256 | 256 | $field = ['type' => 'hidden', 'name' => 'recordings_deleted_activities', 'data_type' => PARAM_INT, |
257 | - 'description_key' => null]; |
|
257 | + 'description_key' => null]; |
|
258 | 258 | if ($cfg['recordings_deleted_activities_editable']) { |
259 | 259 | $field['type'] = 'checkbox'; |
260 | 260 | $field['description_key'] = 'mod_form_field_recordings_deleted_activities'; |
@@ -309,7 +309,7 @@ discard block |
||
309 | 309 | html_writer::select($participantselection['type_options'], 'bigbluebuttonbn_participant_selection_type', |
310 | 310 | $participantselection['type_selected'], array(), |
311 | 311 | array('id' => 'bigbluebuttonbn_participant_selection_type', |
312 | - 'onchange' => 'M.mod_bigbluebuttonbn.modform.participant_selection_set(); return 0;')).' '. |
|
312 | + 'onchange' => 'M.mod_bigbluebuttonbn.modform.participant_selection_set(); return 0;')).' '. |
|
313 | 313 | html_writer::select($participantselection['options'], 'bigbluebuttonbn_participant_selection', |
314 | 314 | $participantselection['selected'], array(), |
315 | 315 | array('id' => 'bigbluebuttonbn_participant_selection', 'disabled' => 'disabled')).' '. |
@@ -26,8 +26,8 @@ discard block |
||
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 | |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | $serverversion = bigbluebuttonbn_get_server_version(); |
39 | 39 | if (is_null($serverversion)) { |
40 | 40 | print_error('general_error_unable_connect', 'bigbluebuttonbn', |
41 | - $CFG->wwwroot.'/admin/settings.php?section=modsettingbigbluebuttonbn'); |
|
41 | + $CFG->wwwroot . '/admin/settings.php?section=modsettingbigbluebuttonbn'); |
|
42 | 42 | } |
43 | 43 | |
44 | 44 | $bigbluebuttonbn = null; |
@@ -309,10 +309,10 @@ discard block |
||
309 | 309 | html_writer::select($participantselection['type_options'], 'bigbluebuttonbn_participant_selection_type', |
310 | 310 | $participantselection['type_selected'], array(), |
311 | 311 | array('id' => 'bigbluebuttonbn_participant_selection_type', |
312 | - 'onchange' => 'M.mod_bigbluebuttonbn.modform.participant_selection_set(); return 0;')).' '. |
|
312 | + 'onchange' => 'M.mod_bigbluebuttonbn.modform.participant_selection_set(); return 0;')) . ' ' . |
|
313 | 313 | html_writer::select($participantselection['options'], 'bigbluebuttonbn_participant_selection', |
314 | 314 | $participantselection['selected'], array(), |
315 | - array('id' => 'bigbluebuttonbn_participant_selection', 'disabled' => 'disabled')).' '. |
|
315 | + array('id' => 'bigbluebuttonbn_participant_selection', 'disabled' => 'disabled')) . ' ' . |
|
316 | 316 | html_writer::tag('input', '', array('id' => 'id_addselectionid', 'type' => 'button', 'class' => 'btn btn-secondary', |
317 | 317 | 'value' => get_string('mod_form_field_participant_list_action_add', 'bigbluebuttonbn'), |
318 | 318 | 'onclick' => 'M.mod_bigbluebuttonbn.modform.participant_add(); return 0;' |
@@ -332,7 +332,7 @@ discard block |
||
332 | 332 | // Render elements for participant list. |
333 | 333 | $htmllist = html_writer::tag('div', |
334 | 334 | html_writer::label(get_string('mod_form_field_participant_list', 'bigbluebuttonbn'), |
335 | - 'bigbluebuttonbn_participant_list'). |
|
335 | + 'bigbluebuttonbn_participant_list') . |
|
336 | 336 | html_writer::table($table) |
337 | 337 | ); |
338 | 338 | |
@@ -365,7 +365,7 @@ discard block |
||
365 | 365 | } |
366 | 366 | |
367 | 367 | $mform->addElement($type, $name, get_string($descriptionkey, 'bigbluebuttonbn'), $options); |
368 | - if (get_string_manager()->string_exists($descriptionkey.'_help', 'bigbluebuttonbn')) { |
|
368 | + if (get_string_manager()->string_exists($descriptionkey . '_help', 'bigbluebuttonbn')) { |
|
369 | 369 | $mform->addHelpButton($name, $descriptionkey, 'bigbluebuttonbn'); |
370 | 370 | } |
371 | 371 | if (!empty($rule)) { |