aboutsummaryrefslogtreecommitdiff
path: root/settings.php
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2018-10-22 01:17:12 +0300
committerValentin Popov <info@valentineus.link>2018-10-22 01:59:06 +0300
commit1352b5ee796c9a9e106cb9746b9201e8038b6210 (patch)
treec922ed9bacd8b2ac0d278cb44697ade9124b380f /settings.php
parentf3b5ab561616ce42c5ddff11b632635a1c71f88f (diff)
downloadlocal_webhooks-1352b5ee796c9a9e106cb9746b9201e8038b6210.tar.xz
local_webhooks-1352b5ee796c9a9e106cb9746b9201e8038b6210.zip
Code style fix
Signed-off-by: Valentin Popov <info@valentineus.link>
Diffstat (limited to 'settings.php')
-rw-r--r--settings.php14
1 files changed, 9 insertions, 5 deletions
diff --git a/settings.php b/settings.php
index f67daa5..e69898d 100644
--- a/settings.php
+++ b/settings.php
@@ -22,12 +22,16 @@
* @package local_webhooks
*/
-defined( "MOODLE_INTERNAL" ) || die();
+defined('MOODLE_INTERNAL') || die();
-if ( $hassiteconfig ) {
- $ADMIN->add( "server", new admin_externalpage( "local_webhooks",
- new lang_string( "pluginname", "local_webhooks" ),
- new moodle_url( "/local/webhooks/index.php" )
+/* @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')
)
);
} \ No newline at end of file