Showing 5 of 5 total issues
Method iter
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function iter(array $tree, int $depth): array
{
return array_map(function ($node) use ($depth) {
$prefixMinus = ' - ';
$prefixPlus = ' + ';
Avoid too many return
statements within this method. Open
Open
return "{\n{$unionLine}\n{$lastOffset} }";
Avoid too many return
statements within this method. Open
Open
return $value;
Avoid too many return
statements within this method. Open
Open
return "{$offset}{$prefixSpaces}{$item['key']}: {$innerValue}";
Avoid too many return
statements within this method. Open
Open
return "'{$value}'";