src/transformer/events/mod_choice/answer_created.php
Showing 1 of 1 total issue
Method answer_created
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function answer_created(array $config, \stdClass $event) { $repo = $config['repo']; $user = $repo->read_record_by_id('user', $event->userid); $course = $repo->read_record_by_id('course', $event->courseid); $answer = $repo->read_record_by_id('choice_answers', $event->objectid);
- Create a ticketCreate a ticket