Mariya1316/project-lvl2-s459

View on GitHub

Showing 5 of 5 total issues

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

function genNode($key, $type, $valueBefore, $valueAfter, $children = null)
Severity: Minor
Found in src/Ast.php - About 35 mins to fix

    Avoid too many return statements within this method.
    Open

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

      Avoid too many return statements within this method.
      Open

                      return genNode($key, 'changed', $data1[$key], $data2[$key]);
      Severity: Major
      Found in src/Ast.php - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

            return "{\n" . implode("\n", $result) . "\n{$indent}}";
        Severity: Major
        Found in src/Formats/Pretty.php - About 30 mins to fix

          Avoid too many return statements within this method.
          Open

                          return "{$indent}    {$node['key']}: {$value}{$indent}";
          Severity: Major
          Found in src/Formats/Pretty.php - About 30 mins to fix
            Severity
            Category
            Status
            Source
            Language