aboutsummaryrefslogtreecommitdiff
path: root/classes/event_observer.php
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2018-10-22 01:17:12 +0300
committerValentin Popov <info@valentineus.link>2018-10-22 01:59:06 +0300
commit1352b5ee796c9a9e106cb9746b9201e8038b6210 (patch)
treec922ed9bacd8b2ac0d278cb44697ade9124b380f /classes/event_observer.php
parentf3b5ab561616ce42c5ddff11b632635a1c71f88f (diff)
downloadlocal_webhooks-1352b5ee796c9a9e106cb9746b9201e8038b6210.tar.xz
local_webhooks-1352b5ee796c9a9e106cb9746b9201e8038b6210.zip
Code style fix
Signed-off-by: Valentin Popov <info@valentineus.link>
Diffstat (limited to 'classes/event_observer.php')
-rw-r--r--classes/event_observer.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/classes/event_observer.php b/classes/event_observer.php
index 9ab4a35..983552a 100644
--- a/classes/event_observer.php
+++ b/classes/event_observer.php
@@ -24,7 +24,7 @@
namespace local_webhooks;
-defined( "MOODLE_INTERNAL" ) || die();
+defined('MOODLE_INTERNAL') || die();
/**
* Defines event handlers.
@@ -40,9 +40,9 @@ class event_observer {
*
* @param object $event
*/
- public static function observe_all( $event ) {
+ public static function observe_all($event) {
$task = new \local_webhooks\task\process_events_task();
- $task->set_custom_data( $event->get_data() );
- \core\task\manager::queue_adhoc_task( $task );
+ $task->set_custom_data($event->get_data());
+ \core\task\manager::queue_adhoc_task($task);
}
} \ No newline at end of file