summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--externallib.php12
-rw-r--r--lib.php3
2 files changed, 5 insertions, 10 deletions
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();
}
/**
diff --git a/lib.php b/lib.php
index 331ffbd..fb2325c 100644
--- a/lib.php
+++ b/lib.php
@@ -116,8 +116,7 @@ function local_webhooks_get_list_records($limitfrom = 0, $limitnum = 0) {
* @return array
*/
function local_webhooks_get_list_events() {
- $eventlist = report_eventlist_list_generator::get_all_events_list(true);
- return $eventlist;
+ return report_eventlist_list_generator::get_all_events_list(true);
}
/**