xAPI-vle/moodle-logstore_xapi

View on GitHub
src/transformer/utils/get_user.php

Summary

Maintainability
A
1 hr
Test Coverage

Showing 2 of 2 total issues

Method get_user has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function get_user(array $config, \stdClass $user) {
 
$actor = array();
 
// Name
Severity: Minor
Found in src/transformer/utils/get_user.php - About 1 hr to fix

Function get_user has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
Open

function get_user(array $config, \stdClass $user) {
 
$actor = array();
 
// Name
Severity: Minor
Found in src/transformer/utils/get_user.php - About 35 mins to fix

There are no issues that match your filters.

Category
Status