AlexeyShobanov/php-project-lvl2

View on GitHub
src/Compare.php

Summary

Maintainability
A
2 hrs
Test Coverage

Method buildNode has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

function buildNode($type, $key, $value, $oldValue = null, $children = [])
Severity: Minor
Found in src/Compare.php - About 35 mins to fix

    Avoid too many return statements within this method.
    Open

        return $iter($obj1, $obj2);
    Severity: Major
    Found in src/Compare.php - About 30 mins to fix

      Avoid too many return statements within this method.
      Open

                  return buildNode('added', $key, $data2[$key]);
      Severity: Major
      Found in src/Compare.php - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

                return $resultAst;
        Severity: Major
        Found in src/Compare.php - About 30 mins to fix

          There are no issues that match your filters.

          Category
          Status