solar05/project-lvl2-s483

View on GitHub
src/Ast.php

Summary

Maintainability
A
1 hr
Test Coverage

Method makeAst has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function makeAst(array $firstData, array $secondData)
{
    $union = union(array_keys($firstData), array_keys($secondData));
    return array_reduce($union, function ($acc, $key) use ($firstData, $secondData) {
        if (array_key_exists($key, $firstData) && array_key_exists($key, $secondData)) {
Severity: Minor
Found in src/Ast.php - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status