src/transformer/utils/get_activity/definition/question.php
Showing 6 of 6 total issues
Method get_multichoice_definition
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function get_multichoice_definition( array $config, \stdClass $question, string $lang, ?string $interactiontype = 'choice',
- Create a ticketCreate a ticket
Method get_multichoice_definition
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
array $config, \stdClass $question, string $lang, ?string $interactiontype = 'choice', ?string $rightanswer = null
- Create a ticketCreate a ticket
Avoid too many return
statements within this method. Open
Open
return get_numerical_definition($config, $question, $lang);
- Create a ticketCreate a ticket
Avoid too many return
statements within this method. Open
Open
return get_multichoice_definition( $config, $question, $lang, 'choice' );
- Create a ticketCreate a ticket
Avoid too many return
statements within this method. Open
Open
return get_shortanswer_definition($config, $question, $lang);
- Create a ticketCreate a ticket