Showing 5 of 5 total issues
Method buildDiff
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function buildDiff(array $arr1, array $arr2): array
{
$keys = array_merge(array_keys($arr1), array_keys($arr2));
$newKeys = array_unique($keys);
$sortedKeys = sort($newKeys, fn($key1, $key2) => $key1 <=> $key2);
Method createNode
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
string $key,
string $type,
string $operation,
mixed $value,
mixed $oldType = null,
Avoid too many return
statements within this method. Open
Open
return $iter($value);
Avoid too many return
statements within this method. Open
Open
return null;
Avoid too many return
statements within this method. Open
Open
return implode("\n", array_filter($lines));