Showing 9 of 9 total issues
Method buildDiff
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function buildDiff($arr1, $arr2)
{
$keys = array_merge(array_keys($arr1), array_keys($arr2));
$uniqueKeys = array_values(array_unique($keys));
Method rendPretty
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function rendPretty(array $data, $level = 0)
{
$spaces = ' ';
$offset = str_repeat($spaces, $level);
Avoid too many return
statements within this method. Open
Open
return '';
Avoid too many return
statements within this method. Open
Open
return "{$offset}{$spaces}{$key}: {$value}";
Avoid too many return
statements within this method. Open
Open
return !empty($item);
Avoid too many return
statements within this method. Open
Open
return [
'key' => $key,
'type' => 'fixed',
'valueBefore' => $arr1[$key],
];
Avoid too many return
statements within this method. Open
Open
return "{$leftBrace}{$diffString}{$rightBrace}";
Avoid too many return
statements within this method. Open
Open
return $diffString;
Avoid too many return
statements within this method. Open
Open
return $tree;