aboutsummaryrefslogtreecommitdiff
path: root/classes/task
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2018-10-22 02:14:31 +0300
committerValentin Popov <info@valentineus.link>2018-10-22 02:48:04 +0300
commit99c835a63d806874e943273dfb0afa3465fe1d92 (patch)
tree1df85c1a1d573040ac90fcabe83acbd559ee51fe /classes/task
parent14e5a16a338405b6dd7c38916ae362501e0d4ff6 (diff)
downloadlocal_webhooks-99c835a63d806874e943273dfb0afa3465fe1d92.tar.xz
local_webhooks-99c835a63d806874e943273dfb0afa3465fe1d92.zip
Correction of implicit style errors
Signed-off-by: Valentin Popov <info@valentineus.link>
Diffstat (limited to 'classes/task')
-rw-r--r--classes/task/process_events_task.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/classes/task/process_events_task.php b/classes/task/process_events_task.php
index 02e54a2..46f5ea5 100644
--- a/classes/task/process_events_task.php
+++ b/classes/task/process_events_task.php
@@ -24,11 +24,11 @@
namespace local_webhooks\task;
+defined('MOODLE_INTERNAL') || die();
+
global $CFG;
-require_once $CFG->dirroot . '/local/webhooks/lib.php';
-
-defined('MOODLE_INTERNAL') || die();
+require_once($CFG->dirroot . '/local/webhooks/lib.php');
/**
* Class process_events_task
@@ -60,7 +60,8 @@ class process_events_task extends \core\task\adhoc_task {
$curl->setHeader(array('Content-Type: ' . $service->header));
$curl->post($service->point, json_encode($event));
- // TODO: Mark the log
+ // TODO: Mark the log.
+
$curl->getResponse();
}
}