src/Formatters/Stylish.php
Method iter
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function iter(array $data, int $depth = 0)
{
$indent = str_repeat(' ', 4 * $depth);
$stylish = array_map(function ($unit) use ($indent, $depth) {
Avoid too many return
statements within this method. Open
Open
return implode("\n", $stylish);
Avoid too many return
statements within this method. Open
Open
return "{\n{$result}\n{$indent}}";
Avoid too many return
statements within this method. Open
Open
return "{$indent} {$name}: {\n{$children}\n{$indent} }";