Showing 3 of 3 total issues
Method render
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function render($data, $depth = 0)
{
$indent = genIndent($depth, FIRST_INDENT);
$arrResult = array_reduce($data, function ($acc, $value) use ($depth, $indent) {
$status = $value['status'];
Method render
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function render($data, $path = '')
{
$arrResult = array_reduce($data, function ($acc, $value) use ($path) {
$status = $value['status'];
$name = $value['name'];
Method buildNode
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function buildNode($nodeType, $name, $oldValue, $newValue, $children = [])