Showing 6 of 7 total issues
Method format
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function format(array $diff): string
{
$iter = function ($diff, $ancestors) use (&$iter): array {
return array_map(function ($node) use ($ancestors, $iter) {
[
Method makeNode
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function makeNode(string $key, string $type, $oldValue, $newValue, $children = null): array
Avoid too many return
statements within this method. Open
Open
return makeNode($key, 'updated', $firstData->$key, $secondData->$key);
Avoid too many return
statements within this method. Open
Open
return (string) $value;
Avoid too many return
statements within this method. Open
Open
return $buildAst;
Avoid too many return
statements within this method. Open
Open
return "{\n{$preparedValue}\n{$indent}}";