xAPI-vle/moodle-logstore_xapi

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

Summary

Maintainability
A
25 mins
Test Coverage

Showing 1 of 1 total issue

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

function deep_merge_arrays($arr1, $arr2) {
// Merge the second array into the first one
foreach ($arr2 as $key => $value) {
// If the key exists in the first array and both values are arrays, recurse
if (array_key_exists($key, $arr1) && is_array($arr1[$key]) && is_array($value)) {
Severity: Minor
Found in src/transformer/utils/deep_merge_arrays.php - About 25 mins to fix

There are no issues that match your filters.

Category
Status