rentery/php-project-lvl2

View on GitHub
src/gendiff.php

Summary

Maintainability
A
2 hrs
Test Coverage

Method getAst has 35 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function getAst($config1, $config2)
{
    $config1 = get_object_vars($config1);
    $config2 = get_object_vars($config2);

Severity: Minor
Found in src/gendiff.php - About 1 hr to fix

    Avoid too many return statements within this method.
    Open

                return ['key' => $key,
                        'oldValue' => $config1[$key],
                        'newValue' => $config2[$key],
                        'type' => 'changed'];
    Severity: Major
    Found in src/gendiff.php - About 30 mins to fix

      Avoid too many return statements within this method.
      Open

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

        There are no issues that match your filters.

        Category
        Status