src/Differ.php
Method buildDiff
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
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)));