@@ -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. |
@@ -50,7 +50,7 @@ discard block |
||
| 50 | 50 | $serverversion = bigbluebuttonbn_get_server_version(); |
| 51 | 51 | if (is_null($serverversion)) { |
| 52 | 52 | print_error('general_error_unable_connect', 'bigbluebuttonbn', |
| 53 | - $CFG->wwwroot.'/admin/settings.php?section=modsettingbigbluebuttonbn'); |
|
| 53 | + $CFG->wwwroot . '/admin/settings.php?section=modsettingbigbluebuttonbn'); |
|
| 54 | 54 | return; |
| 55 | 55 | } |
| 56 | 56 | $bigbluebuttonbn = null; |
@@ -80,7 +80,7 @@ discard block |
||
| 80 | 80 | // If still none is allowed, fail and return. |
| 81 | 81 | if (empty($jsvars['instanceTypeProfiles'])) { |
| 82 | 82 | print_error('general_error_not_allowed_to_create_instances)', 'bigbluebuttonbn', |
| 83 | - $CFG->wwwroot.'/admin/settings.php?section=modsettingbigbluebuttonbn'); |
|
| 83 | + $CFG->wwwroot . '/admin/settings.php?section=modsettingbigbluebuttonbn'); |
|
| 84 | 84 | return; |
| 85 | 85 | } |
| 86 | 86 | } |
@@ -140,7 +140,7 @@ discard block |
||
| 140 | 140 | ); |
| 141 | 141 | $defaultvalues['presentation'] = $draftitemid; |
| 142 | 142 | } catch (Exception $e) { |
| 143 | - debugging('Presentation could not be loaded: '.$e->getMessage(), DEBUG_DEVELOPER); |
|
| 143 | + debugging('Presentation could not be loaded: ' . $e->getMessage(), DEBUG_DEVELOPER); |
|
| 144 | 144 | return; |
| 145 | 145 | } |
| 146 | 146 | // Completion: tick if completion attendance settings is set to 1 or more. |
@@ -693,7 +693,7 @@ discard block |
||
| 693 | 693 | return; |
| 694 | 694 | } |
| 695 | 695 | $mform->addElement($type, $name, get_string($descriptionkey, 'bigbluebuttonbn'), $options); |
| 696 | - if (get_string_manager()->string_exists($descriptionkey.'_help', 'bigbluebuttonbn')) { |
|
| 696 | + if (get_string_manager()->string_exists($descriptionkey . '_help', 'bigbluebuttonbn')) { |
|
| 697 | 697 | $mform->addHelpButton($name, $descriptionkey, 'bigbluebuttonbn'); |
| 698 | 698 | } |
| 699 | 699 | if (!empty($rule)) { |