aboutsummaryrefslogtreecommitdiff
path: root/classes/event_observer.php
diff options
context:
space:
mode:
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