@@ -28,7 +28,7 @@ |
||
28 | 28 | |
29 | 29 | global $CFG, $PAGE; |
30 | 30 | |
31 | -require_once(__DIR__.'/locallib.php'); |
|
31 | +require_once(__DIR__ . '/locallib.php'); |
|
32 | 32 | |
33 | 33 | if ($hassiteconfig) { |
34 | 34 | // Configuration for BigBlueButton. |
@@ -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 | /** |
33 | 33 | * Moodle class for mod_form. |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | $serverversion = bigbluebuttonbn_get_server_version(); |
52 | 52 | if (is_null($serverversion)) { |
53 | 53 | print_error('general_error_unable_connect', 'bigbluebuttonbn', |
54 | - $CFG->wwwroot.'/admin/settings.php?section=modsettingbigbluebuttonbn'); |
|
54 | + $CFG->wwwroot . '/admin/settings.php?section=modsettingbigbluebuttonbn'); |
|
55 | 55 | return; |
56 | 56 | } |
57 | 57 | $bigbluebuttonbn = null; |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | // If still none is allowed, fail and return. |
82 | 82 | if (empty($jsvars['instanceTypeProfiles'])) { |
83 | 83 | print_error('general_error_not_allowed_to_create_instances)', 'bigbluebuttonbn', |
84 | - $CFG->wwwroot.'/admin/settings.php?section=modsettingbigbluebuttonbn'); |
|
84 | + $CFG->wwwroot . '/admin/settings.php?section=modsettingbigbluebuttonbn'); |
|
85 | 85 | return; |
86 | 86 | } |
87 | 87 | } |
@@ -144,7 +144,7 @@ discard block |
||
144 | 144 | ); |
145 | 145 | $defaultvalues['presentation'] = $draftitemid; |
146 | 146 | } catch (Exception $e) { |
147 | - debugging('Presentation could not be loaded: '.$e->getMessage(), DEBUG_DEVELOPER); |
|
147 | + debugging('Presentation could not be loaded: ' . $e->getMessage(), DEBUG_DEVELOPER); |
|
148 | 148 | return; |
149 | 149 | } |
150 | 150 | // Completion: tick if completion attendance settings is set to 1 or more. |
@@ -295,22 +295,22 @@ discard block |
||
295 | 295 | } |
296 | 296 | } |
297 | 297 | |
298 | - $connectedUsersBlock = '<div id="fitem_id_total_connected_users" class="form-group row fitem">'. |
|
299 | - '<div class="col-md-3">'. |
|
300 | - '<span class="float-sm-right text-nowrap">'. |
|
301 | - '</span>'. |
|
302 | - '<label class="col-form-label d-inline " for="id_total_connected_users">'. |
|
303 | - 'Connected Users'. |
|
304 | - '</label>'. |
|
305 | - '</div>'. |
|
306 | - '<div class="col-md-9 form-inline felement" data-fieldtype="text">'. |
|
307 | - '<input type="text" class="form-control text-center" name="total_connected_users" id="totalUsers" value="?" size="6" readonly="readonly">'. |
|
308 | - '<div class="form-control-feedback invalid-feedback" id="id_error_total_connected_users">'. |
|
309 | - '</div>'. |
|
310 | - '<input type="checkbox" name="show_total_connected_users" class="form-check-input ml-2" id="chkShowTotalUsers" value="1" size="">'. |
|
311 | - |
|
312 | - '</label>'. |
|
313 | - '</div>'. |
|
298 | + $connectedUsersBlock = '<div id="fitem_id_total_connected_users" class="form-group row fitem">' . |
|
299 | + '<div class="col-md-3">' . |
|
300 | + '<span class="float-sm-right text-nowrap">' . |
|
301 | + '</span>' . |
|
302 | + '<label class="col-form-label d-inline " for="id_total_connected_users">' . |
|
303 | + 'Connected Users' . |
|
304 | + '</label>' . |
|
305 | + '</div>' . |
|
306 | + '<div class="col-md-9 form-inline felement" data-fieldtype="text">' . |
|
307 | + '<input type="text" class="form-control text-center" name="total_connected_users" id="totalUsers" value="?" size="6" readonly="readonly">' . |
|
308 | + '<div class="form-control-feedback invalid-feedback" id="id_error_total_connected_users">' . |
|
309 | + '</div>' . |
|
310 | + '<input type="checkbox" name="show_total_connected_users" class="form-check-input ml-2" id="chkShowTotalUsers" value="1" size="">' . |
|
311 | + |
|
312 | + '</label>' . |
|
313 | + '</div>' . |
|
314 | 314 | '</div>'; |
315 | 315 | $mform->addElement('html', $connectedUsersBlock); |
316 | 316 | |
@@ -730,7 +730,7 @@ discard block |
||
730 | 730 | return; |
731 | 731 | } |
732 | 732 | $mform->addElement($type, $name, get_string($descriptionkey, 'bigbluebuttonbn'), $options); |
733 | - if (get_string_manager()->string_exists($descriptionkey.'_help', 'bigbluebuttonbn')) { |
|
733 | + if (get_string_manager()->string_exists($descriptionkey . '_help', 'bigbluebuttonbn')) { |
|
734 | 734 | $mform->addHelpButton($name, $descriptionkey, 'bigbluebuttonbn'); |
735 | 735 | } |
736 | 736 | if (!empty($rule)) { |