src/Renderers/pretty.php
Method render
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function render($ast, $depth = 0)
{
$tabs = str_repeat(' ', $depth);
$composeText = array_reduce($ast, function ($acc, $item) use ($tabs, $depth) {
$key = $item['key'];
Avoid too many return
statements within this method. Open
Open
return $acc;
Avoid too many return
statements within this method. Open
Open
return implode($composeText, "\n") . "\n$tabs}";