src/Formatters/pretty.php
Method format
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function format($ast)
{
$inner = function ($innerData, $depth) use (&$inner) {
$mapper = function ($child) use ($depth, &$inner) {
Avoid too many return
statements within this method. Open
Open
return "{\n{$joined}\n}";
Avoid too many return
statements within this method. Open
Open
return array_map($mapper, $innerData);
Avoid too many return
statements within this method. Open
Open
return join("\n", $group);