Showing 8 of 8 total issues
Method iter
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function iter($tree, $depth)
{
$tab = createTab($depth * 4 - 2);
$closeTab = createTab($depth * 4 - 4);
$childDepth = $depth + 1;
Avoid too many return
statements within this method. Open
Open
return $result;
Avoid too many return
statements within this method. Open
Open
return [];
Avoid too many return
statements within this method. Open
Open
return $result;
Avoid too many return
statements within this method. Open
Open
return "{\n${resultString}\n${closeTab}}";
Avoid too many return
statements within this method. Open
Open
return "${tab} {$node['name']}: " . iter($node['children'], $childDepth);
Avoid too many return
statements within this method. Open
Open
return "{\n" . implode("\n", $result) . "\n${closeTab}}";
Avoid too many return
statements within this method. Open
Open
return ['name' => $key, 'type' => 'changed', 'oldValue' => $data1[$key], 'newValue' => $data2[$key]];