src/Formatters/Pretty.php
Method formatLines
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function formatLines(array $tree, int $depth = 1): array
{
$formatNode = function ($node) use ($depth) {
$type = $node['type'];
$key = $node['name'];
Avoid too many return
statements within this method. Open
Open
return array_map($formatNode, $tree);
Avoid too many return
statements within this method. Open
Open
return "{$indent}{$key}: {\n{$formattedValue}\n{$indent}}";