Showing 1 of 1 total issue
Consider simplifying this complex logical expression. Open
Open
if (array_key_exists($key, $firstFile) && (array_key_exists($key, $secondFile)) && is_array($firstFile[$key])) {
$acc[] = makeNode($key, null, "nested", diff($firstFile[$key], $secondFile[$key]));
return $acc;
} elseif (array_key_exists($key, $firstFile) && !array_key_exists($key, $secondFile)) {
$acc[] = makeNode($key, $firstFile[$key], "removed");