From b6ddc8bd40600142a08b59480132deb69c7922a5 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Tue, 20 Feb 2018 15:17:27 +0400 Subject: Some variables have been removed --- externallib.php | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'externallib.php') diff --git a/externallib.php b/externallib.php index 0c5cc3d..9f0b877 100644 --- a/externallib.php +++ b/externallib.php @@ -64,8 +64,7 @@ class local_webhooks_external extends external_api { $context = context_system::instance(); self::validate_context($context); - $result = local_webhooks_change_status($parameters["serviceid"]); - return $result; + return local_webhooks_change_status($parameters["serviceid"]); } /** @@ -535,8 +534,7 @@ class local_webhooks_external extends external_api { $context = context_system::instance(); self::validate_context($context); - $result = local_webhooks_delete_record($parameters["serviceid"]); - return $result; + return local_webhooks_delete_record($parameters["serviceid"]); } /** @@ -571,8 +569,7 @@ class local_webhooks_external extends external_api { $context = context_system::instance(); self::validate_context($context); - $result = local_webhooks_delete_all_records(); - return $result; + return local_webhooks_delete_all_records(); } /** @@ -607,8 +604,7 @@ class local_webhooks_external extends external_api { $context = context_system::instance(); self::validate_context($context); - $result = local_webhooks_create_backup(); - return $result; + return local_webhooks_create_backup(); } /** -- cgit v1.2.3