src/Renderer/RendererPretty.php
Method render
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function render(array $data, int $level = 0): string
{
$indentation = $this->renderIndentation($level);
$result = array_reduce(
Avoid too many return
statements within this method. Open
Open
return implode(
'',
[$acc, $indentation, ' + ', $item['key'], ': ', $newRenderedValue, PHP_EOL]
);
Avoid too many return
statements within this method. Open
Open
return implode('', ['{', PHP_EOL, $result, $indentation, '}',]);