xAPI-vle/moodle-logstore_xapi

View on GitHub
src/transformer/repos/TestRepository.php

Summary

Maintainability
A
55 mins
Test Coverage

Showing 1 of 1 total issue

Function read_records has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
Open

public function read_records(string $type, array $query, string $sort = '') {
$records = $this->testdata->$type;
$matchingrecords = [];
 
foreach ($records as $record) {
Severity: Minor
Found in src/transformer/repos/TestRepository.php - About 55 mins to fix
Category
Status