Showing 4 of 4 total issues
Method makeNode
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function makeNode($state, $oldValue, $newValue, $children = [], $fields = [])
Method makePropertyNode
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function makePropertyNode($state, $name, $oldValue, $newValue, $children = [])
Avoid too many return
statements within this method. Open
Open
return indent($level) . "$name: {" . PHP_EOL .
traverse($node['children'], $level + 1) . PHP_EOL .
indent($level) . '}';
Avoid too many return
statements within this method. Open
Open
return implode(PHP_EOL, $lines);