src/renderer/pretty.php
Method renderPretty
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function renderPretty($data, $depth = 0)
{
$result = array_map(function ($node) use ($depth) {
['typeInfo' => $typeInfo,
Avoid too many return
statements within this method. Open
Open
return makeString($depth, 'specialEmpty', $nameKey, renderPretty($children, $depth + 1));
Avoid too many return
statements within this method. Open
Open
return '{' . PHP_EOL . $outStr . addSpace($depth) . '}';