trencher/php-project-lvl2

View on GitHub

Showing 1 of 1 total issue

Consider simplifying this complex logical expression.
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");
Severity: Major
Found in src/genDiff.php - About 40 mins to fix
    Severity
    Category
    Status
    Source
    Language