src/transformer/utils/get_lesson_question_result.php
Showing 2 of 2 total issues
Function get_lesson_question_result
has a Cognitive Complexity of 12 (exceeds 5 allowed). Consider refactoring. Open
Open
function get_lesson_question_result(array $config, \stdClass $lesson, \stdClass $page, int $userid) { $repo = $config['repo']; $result = []; // response and success if true
- Read upRead up
- Create a ticketCreate a ticket
Method get_lesson_question_result
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function get_lesson_question_result(array $config, \stdClass $lesson, \stdClass $page, int $userid) { $repo = $config['repo']; $result = []; // response and success if true
- Create a ticketCreate a ticket