xAPI-vle/moodle-logstore_xapi

View on GitHub
src/transformer/events/mod_questionnaire/attempt_submitted.php

Summary

Maintainability
C
7 hrs
Test Coverage

Showing 2 of 2 total issues

Method attempt_submitted has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function attempt_submitted(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);
Severity: Minor
Found in src/transformer/events/mod_questionnaire/attempt_submitted.php - About 1 hr to fix

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

<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
src/transformer/events/mod_questionnaire/attempt_resumed.php on lines 1..70
src/transformer/events/mod_questionnaire/attempt_saved.php on lines 1..70

There are no issues that match your filters.

Category
Status