molych/php-project-lvl2

View on GitHub

Showing 9 of 9 total issues

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

function createNode($name, $type, $oldValue, $newValue, $children)
Severity: Minor
Found in src/BuildAst.php - About 35 mins to fix

    Avoid too many return statements within this method.
    Open

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

      Avoid too many return statements within this method.
      Open

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

        Avoid too many return statements within this method.
        Open

                    return createNode($key, 'changed', $firstData->$key, $secondData->$key, null);
        Severity: Major
        Found in src/BuildAst.php - About 30 mins to fix

          Avoid too many return statements within this method.
          Open

                          return "$space  {$node['name']}: {\n$children\n$space  }";
          Severity: Major
          Found in src/formatters/Pretty.php - About 30 mins to fix

            Avoid too many return statements within this method.
            Open

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

              Avoid too many return statements within this method.
              Open

                          return createNode($key, 'unchanged', $firstData->$key, null, null);
              Severity: Major
              Found in src/BuildAst.php - About 30 mins to fix

                Avoid too many return statements within this method.
                Open

                                return ;
                Severity: Major
                Found in src/formatters/Plain.php - About 30 mins to fix

                  Avoid too many return statements within this method.
                  Open

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