Showing 5 of 5 total issues
Method render
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function render(array $ast): string
{
$iter = function ($data, $level = 1) use (&$iter): string {
$mapped = array_map(function ($node) use (&$iter, $level) {
Method createAstNode
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function createAstNode($key, $type, $value = null, $newValue = null, $children = [])
Avoid too many return
statements within this method. Open
Open
return implode("\n", $mapped);
Avoid too many return
statements within this method. Open
Open
return "{\n{$stringValue}\n}";
Avoid too many return
statements within this method. Open
Open
return "{$indentChanged}+ {$key}: {$value}";