Valentina-Vasileva/php-project-lvl2

View on GitHub
src/Builder.php

Summary

Maintainability
A
1 hr
Test Coverage
A
100%

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

function createNode(string $key, string $type, $oldValue, $newValue, $children = null): array
Severity: Minor
Found in src/Builder.php - About 35 mins to fix

    Avoid too many return statements within this method.
    Open

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

      Avoid too many return statements within this method.
      Open

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

        There are no issues that match your filters.

        Category
        Status