From d8f3a9f3edf66fad0af84a703e39e45911f37d85 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Fri, 2 Nov 2018 00:36:09 +0400 Subject: Formatting code and eliminating possible errors Signed-off-by: Valentin Popov --- settings.php | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'settings.php') diff --git a/settings.php b/settings.php index 9a79c13..4da9dba 100644 --- a/settings.php +++ b/settings.php @@ -24,9 +24,14 @@ defined('MOODLE_INTERNAL') || die(); +/** @var \admin_root $ADMIN */ + if ($hassiteconfig) { - $ADMIN->add("server", new admin_externalpage("local_webhooks", - new lang_string("pluginname", "local_webhooks"), - new moodle_url("/local/webhooks/index.php") - )); + $ADMIN->add( + 'server', new admin_externalpage( + 'local_webhooks', + new lang_string('pluginname', 'local_webhooks'), + new moodle_url('/local/webhooks/index.php') + ) + ); } \ No newline at end of file -- cgit v1.2.3