ikijime/php-project-lvl2

View on GitHub

Showing 4 of 5 total issues

Method plain has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function plain(object $AST): string
{
    $iter = function (object $AST, string $path) use (&$iter): array {

        return array_map(function ($node) use ($iter, $path): array|string {
Severity: Minor
Found in src/formatters/Plain.php - About 1 hr to fix

    Avoid too many return statements within this method.
    Open

        return (object) $AST;
    Severity: Major
    Found in src/AST.php - About 30 mins to fix

      Avoid too many return statements within this method.
      Open

                  return makeNode('changed', $key, $value1, $value2);
      Severity: Major
      Found in src/AST.php - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

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