Showing 8 of 8 total issues
Method render
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function render(array $diffTree): string
{
$diffLines = array_map(
static function ($node) {
$key = $node['key'];
Method render
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function render(array $diffTree, string $parentPath = ''): string
{
$diffLines = array_map(
static function ($node) use ($parentPath) {
$key = $node['key'];
Method getDiffTree
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function getDiffTree(array $data1, array $data2): array
{
$allKeys = array_unique(array_merge(array_keys($data1), array_keys($data2)));
return array_map(
Method makeNode
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function makeNode(string $key, string $diffType, $value1, $value2, ?array $children = null)
Avoid too many return
statements within this method. Open
Open
return "{\n" . implode("\n", $diffLines) . "\n}";
Avoid too many return
statements within this method. Open
Open
return render($node['children'], $propertyPath);
Avoid too many return
statements within this method. Open
Open
return implode("\n", $diffLines);
Avoid too many return
statements within this method. Open
Open
return addIndent(INDENT_EMPTY, $out);