kulikov98/project-lvl2-s459

View on GitHub

Showing 5 of 5 total issues

Method genDiffAST has 38 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function genDiffAST(array $beforeData, array $afterData) : array
{
    $keys = union(
        array_keys($beforeData),
        array_keys($afterData)
Severity: Minor
Found in src/Ast.php - About 1 hr to fix

    Avoid too many return statements within this method.
    Open

        return implode(PHP_EOL, $res);
    Severity: Major
    Found in src/renderers/Text.php - About 30 mins to fix

      Avoid too many return statements within this method.
      Open

                      return "{$indent}  {$item['name']}: {" . PHP_EOL . "{$nested}" . PHP_EOL . "{$indent}  }";
      Severity: Major
      Found in src/renderers/Text.php - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

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

          Avoid too many return statements within this method.
          Open

                      return $ast;
          Severity: Major
          Found in src/Ast.php - About 30 mins to fix
            Severity
            Category
            Status
            Source
            Language