src/differ.php
Method makeDiff
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function makeDiff($data1, $data2)
{
$arrUniqKeys = array_unique(array_merge(array_keys($data1), array_keys($data2)));
$result = array_reduce($arrUniqKeys, function ($acc, $key) use ($data1, $data2) {
if (array_key_exists($key, $data1) && array_key_exists($key, $data2)) {
Method buildDataStructure
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function buildDataStructure($typeInfo, $nameKey, $oldValue, $newValue, $children = null)