InfluxOW/php-project-lvl2

View on GitHub
src/Ast.php

Summary

Maintainability
A
1 hr
Test Coverage

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

    public static function genDiff(array $beforeData, array $afterData): array
    {
        $keys = array_unique(array_merge(array_keys($beforeData), array_keys($afterData)));

        return array_reduce($keys, static function ($acc, $key) use ($beforeData, $afterData): array {
Severity: Minor
Found in src/Ast.php - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status