Showing 5 of 5 total issues
Method buildDiff
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function buildDiff($data1, $data2): array
{
$keys = union(array_keys(get_object_vars($data1)), array_keys(get_object_vars($data2)));
sort($keys); /* @phpstan-ignore-line */
Avoid too many return
statements within this method. Open
Open
return implode("\n", $result);
Avoid too many return
statements within this method. Open
Open
return "[complex value]";
Avoid too many return
statements within this method. Open
Open
return "{\n{$str}\n{$space}}";
Avoid too many return
statements within this method. Open
Open
return "Unknown data";