Showing 3 of 3 total issues
Method render
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function render(array $diff): string
{
$iter = function (array $diff, int $depth) use (&$iter): array {
return array_map(function ($node) use ($depth, $iter) {
[
Method render
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function render(array $diff): string
{
$iter = function ($diff, $ancestors) use (&$iter): array {
return array_map(function ($node) use ($ancestors, $iter) {
[
Method createNode
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function createNode(string $key, string $type, $oldValue, $newValue, $children = null): array