aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2018-02-20 14:17:27 +0300
committerValentin Popov <info@valentineus.link>2018-02-20 14:17:27 +0300
commitb6ddc8bd40600142a08b59480132deb69c7922a5 (patch)
tree8f54e34b8a7d9614713e33e51360466ba5299749
parentf10786bfb0dff66cfeb8d9f98d042d23bc314369 (diff)
downloadlocal_webhooks-b6ddc8bd40600142a08b59480132deb69c7922a5.tar.xz
local_webhooks-b6ddc8bd40600142a08b59480132deb69c7922a5.zip
Some variables have been removed
-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);
}
/**