diff options
author | Valentin Popov <info@valentineus.link> | 2018-10-22 02:14:31 +0300 |
---|---|---|
committer | Valentin Popov <info@valentineus.link> | 2018-10-22 02:48:04 +0300 |
commit | 99c835a63d806874e943273dfb0afa3465fe1d92 (patch) | |
tree | 1df85c1a1d573040ac90fcabe83acbd559ee51fe /classes/task/process_events_task.php | |
parent | 14e5a16a338405b6dd7c38916ae362501e0d4ff6 (diff) | |
download | local_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/process_events_task.php')
-rw-r--r-- | classes/task/process_events_task.php | 9 |
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(); } } |