vadshevy/php-project-lvl2

View on GitHub

Showing 4 of 4 total issues

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

function buildNode($key, $beforeValue, $afterValue, $children, $type)
Severity: Minor
Found in src/differ.php - About 35 mins to fix

    Avoid too many return statements within this method.
    Open

            return implode("\n", $mapped);
    Severity: Major
    Found in src/formatters/renderPretty.php - About 30 mins to fix

      Avoid too many return statements within this method.
      Open

                          return "{$indentChanged}- {$node['key']}: {$formattedBeforeValue}";
      Severity: Major
      Found in src/formatters/renderPretty.php - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

            return "{\n{$result}\n}";
        Severity: Major
        Found in src/formatters/renderPretty.php - About 30 mins to fix
          Severity
          Category
          Status
          Source
          Language