xAPI-vle/moodle-logstore_xapi

View on GitHub
src/transformer/utils/result/get_matching_response.php

Summary

Maintainability
A
55 mins
Test Coverage

Showing 1 of 1 total issue

Similar blocks of code found in 3 locations. Consider refactoring.
Open

$selmap = array_reduce(
explode('; ', $questionattempt->responsesummary),
function ($reduction, $selection) {
$split = explode("\n -> ", $selection);
$selectionkey = $split[0];
Severity: Major
Found in src/transformer/utils/result/get_matching_response.php and 2 other locations - About 55 mins to fix
src/transformer/events/mod_quiz/question_answered/match.php on lines 49..59
src/transformer/events/mod_quiz/question_answered/randomsamatch.php on lines 49..59
Category
Status