MT-cod/php-project-lvl2

View on GitHub
src/GenDiff.php

Summary

Maintainability
A
1 hr
Test Coverage
B
86%

Method genDiffFromArrays has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function genDiffFromArrays(array $arr1, array $arr2): array
{
    $mergedAndSortedArrays = mergeAndSortArrays($arr1, $arr2);
    return array_map(function ($nodeData) use ($arr1, $arr2) {
        if (!key_exists($nodeData['nodeKey'], $arr1) && key_exists($nodeData['nodeKey'], $arr2)) {
Severity: Minor
Found in src/GenDiff.php - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status