Showing 8 of 8 total issues
Method formatLines
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function formatLines(array $tree, int $depth = 1): array
{
$formatNode = function ($node) use ($depth) {
$type = $node['type'];
$key = $node['name'];
Method makeNode
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function makeNode(string $name, string $type, $oldValue = null, $newValue = null, array $children = [])
Avoid too many return
statements within this method. Open
Open
return array_map($formatNode, $tree);
Avoid too many return
statements within this method. Open
Open
return array_map($formatNode, $tree);
Avoid too many return
statements within this method. Open
Open
return "{$indent}{$key}: {\n{$formattedValue}\n{$indent}}";
Avoid too many return
statements within this method. Open
Open
return makeNode($key, TYPE_CHANGED, $structure1->$key, $structure2->$key);
Avoid too many return
statements within this method. Open
Open
return implode("\n", $formattedValues);
Avoid too many return
statements within this method. Open
Open
return $tree;