orion122/diff-finder

View on GitHub
src/buildAST.php

Summary

Maintainability
A
1 hr
Test Coverage

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

function buildAST($array1, $array2)
{
    $unionArraysKeys = union(array_keys($array1), array_keys($array2));

    return array_reduce($unionArraysKeys, function ($acc, $key) use ($array1, $array2) {
Severity: Minor
Found in src/buildAST.php - About 1 hr to fix

    Method buildArray has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

    function buildArray($key, $type, $children, $from = null, $to = null)
    Severity: Minor
    Found in src/buildAST.php - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status