src/Formatters/Stylish.php
Method stylish
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function stylish(array $astTree, int $depth = 0)
{
$indent = buildIndent($depth, 4);
$result = array_map(function ($node) use ($depth, $indent) {
Avoid too many return
statements within this method. Open
Open
return $indent . " " . $node['key'] . ": " . $valueUnchanged . PHP_EOL;
Avoid too many return
statements within this method. Open
Open
return '{' . PHP_EOL . implode("", $result) . $indent . '}';
Avoid too many return
statements within this method. Open
Open
return '{' . PHP_EOL . implode("", $stringOfArray) . $indent . '}';