Showing 2 of 2 total issues
Method findDiff
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function findDiff(array $firstFile, array $secondFile): array
{
$uniqueKeys = array_unique(array_merge(array_keys($firstFile), array_keys($secondFile)));
$sortedUniqueKeys = sort($uniqueKeys, fn (string $left, string $right) => strcmp($left, $right));
Avoid too many return
statements within this method. Open
Open
return "'{$value}'";