ticktick/php-project-lvl2

View on GitHub
src/Differ.php

Summary

Maintainability
A
1 hr
Test Coverage

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

function makeNode(string $name, string $type, $oldValue = null, $newValue = null, array $children = [])
Severity: Minor
Found in src/Differ.php - About 35 mins to fix

    Avoid too many return statements within this method.
    Open

            return makeNode($key, TYPE_CHANGED, $structure1->$key, $structure2->$key);
    Severity: Major
    Found in src/Differ.php - About 30 mins to fix

      Avoid too many return statements within this method.
      Open

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

        There are no issues that match your filters.

        Category
        Status