xAPI-vle/moodle-logstore_xapi

View on GitHub
src/transformer/events/tool_certificate/certificate_verified.php

Summary

Maintainability
A
1 hr
Test Coverage

Showing 1 of 1 total issue

Method certificate_verified has 42 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function certificate_verified(array $config, \stdClass $event) {
$repo = $config['repo'];
$user = $repo->read_record_by_id('user', $event->userid);
$issue = $repo->read_record_by_id('tool_certificate_issues', $event->objectid);
$course = (!is_null($issue->courseid))
Severity: Minor
Found in src/transformer/events/tool_certificate/certificate_verified.php - About 1 hr to fix

There are no issues that match your filters.

Category
Status