xAPI-vle/moodle-logstore_xapi

View on GitHub
src/transformer/events/debug/debug_event.php

Summary

Maintainability
A
1 hr
Test Coverage

Showing 1 of 1 total issue

Method debug_event has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function debug_event(array $config, \stdClass $event) {
//debug
$repo = $config['repo'];
if (isset($event->objecttable) && isset($event->objectid) && ($event->action !== 'deleted' || $event->crud !== 'd')) {
$event_object = $repo->read_record_by_id($event->objecttable, $event->objectid);
Severity: Minor
Found in src/transformer/events/debug/debug_event.php - About 1 hr to fix
Category
Status