xAPI-vle/moodle-logstore_xapi

View on GitHub
cli/testdataseeder.php

Summary

Maintainability
A
1 hr
Test Coverage

Showing 2 of 2 total issues

Method insert_row has 29 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function insert_row($table, $rowcsv) {
global $DB;
$obj = get_object();
$strarr = explode(",", $rowcsv);
$type = logstore_xapi_get_type_from_table($table);
Severity: Minor
Found in cli/testdataseeder.php - About 1 hr to fix

Function insert_row has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
Open

function insert_row($table, $rowcsv) {
global $DB;
$obj = get_object();
$strarr = explode(",", $rowcsv);
$type = logstore_xapi_get_type_from_table($table);
Severity: Minor
Found in cli/testdataseeder.php - About 25 mins to fix
Category
Status