DmitriySmolin/php-project-48

View on GitHub
src/Differ.php

Summary

Maintainability
A
1 hr
Test Coverage
A
97%

Method buildDiff has 39 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function buildDiff(object $firstObj, object $secondObj): array
{
    $getKeys = fn($obj) => array_keys(get_object_vars($obj));

    $keys = array_unique(array_merge($getKeys($firstObj), $getKeys($secondObj)));
Severity: Minor
Found in src/Differ.php - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status