AlexP11223/php-project-lvl2

View on GitHub

Showing 4 of 4 total issues

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

function makeNode($state, $oldValue, $newValue, $children = [], $fields = [])
Severity: Minor
Found in src/diff.php - About 35 mins to fix

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

    function makePropertyNode($state, $name, $oldValue, $newValue, $children = [])
    Severity: Minor
    Found in src/diff.php - About 35 mins to fix

      Avoid too many return statements within this method.
      Open

                      return indent($level) . "$name: {" . PHP_EOL .
                          traverse($node['children'], $level + 1) . PHP_EOL .
                          indent($level) . '}';
      Severity: Major
      Found in src/formatters/pretty.php - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

            return implode(PHP_EOL, $lines);
        Severity: Major
        Found in src/formatters/pretty.php - About 30 mins to fix
          Severity
          Category
          Status
          Source
          Language