diff --git a/classes/form/outage/edit.php b/classes/form/outage/edit.php index 10b44e2..78f7108 100644 --- a/classes/form/outage/edit.php +++ b/classes/form/outage/edit.php @@ -164,7 +164,7 @@ class edit extends moodleform { // If the default_autostart is configured in config, then force autostart to be the default value. if (array_key_exists('auth_outage', $CFG->forced_plugin_settings) - && array_key_exists('default_autostart', $CFG->forced_plugin_settings['auth_outage'])){ + && array_key_exists('default_autostart', $CFG->forced_plugin_settings['auth_outage'])) { $this->_form->setDefaults([ 'autostart' => $CFG->forced_plugin_settings['auth_outage']['default_autostart'] ]); diff --git a/tests/phpunit/local/outagelib_test.php b/tests/phpunit/local/outagelib_test.php index 9fae62d..9845386 100644 --- a/tests/phpunit/local/outagelib_test.php +++ b/tests/phpunit/local/outagelib_test.php @@ -360,6 +360,7 @@ EOT; /** * Test create maintenance php code without age * + * @param string $configkey The key of the config. * @dataProvider test_createmaintenancephpcode_withoutage_provider */ public function test_createmaintenancephpcode_withoutage($configkey) {