Showing 6 of 6 total issues
Method renderPretty
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function renderPretty(array $array, $indent = "")
{
$openingBrace = $indent === "" ? "{\n" : "";
$result = array_reduce($array, function ($acc, $node) use ($indent) {
Method renderPlain
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function renderPlain($diff, $path = '')
{
$result = array_map(function ($node) use ($path) {
$type = getNodeType($node);
$key = getKey($node);
Method makeNode
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function makeNode($type, $key, $oldValue, $newValue, $children)
Avoid too many return
statements within this method. Open
Open
return $path === '' ? $flattenedResult . "\n" : $flattenedResult;
Avoid too many return
statements within this method. Open
Open
return;
Avoid too many return
statements within this method. Open
Open
return $sentence;