Code style fix

Signed-off-by: Valentin Popov <info@valentineus.link>
This commit is contained in:
2018-10-22 02:17:12 +04:00
parent f3b5ab5616
commit 1352b5ee79
13 changed files with 250 additions and 206 deletions

View File

@ -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);
}
}