Showing 2 of 22 total issues
Method renderPrettyDiff
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function renderPrettyDiff($tree)
{
$iter = function ($node, $level = 1) use (&$iter) {
return array_map(function ($item) use ($level, $iter) {
['key' => $key, 'type' => $type, 'oldValue' => $oldValue, 'newValue' => $newValue] = $item;
Method makeNode
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function makeNode(string $key, string $type, $oldValue, $newValue, array $children = [])