molych/php-project-lvl2

View on GitHub
src/BuildAst.php

Summary

Maintainability
A
2 hrs
Test Coverage
A
100%

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

function createNode($name, $type, $oldValue, $newValue, $children)
Severity: Minor
Found in src/BuildAst.php - About 35 mins to fix

    Avoid too many return statements within this method.
    Open

                return createNode($key, 'unchanged', $firstData->$key, null, null);
    Severity: Major
    Found in src/BuildAst.php - About 30 mins to fix

      Avoid too many return statements within this method.
      Open

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

        Avoid too many return statements within this method.
        Open

                    return createNode($key, 'changed', $firstData->$key, $secondData->$key, null);
        Severity: Major
        Found in src/BuildAst.php - About 30 mins to fix

          There are no issues that match your filters.

          Category
          Status