DaaN88/php-project-lvl2

View on GitHub

Showing 3 of 3 total issues

Method getLines has 45 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function getLines(array $ast, string $indent): array
{
    return array_reduce(
        array_keys($ast),
        static function (
Severity: Minor
Found in src/Formatters/PrettyFormatter.php - About 1 hr to fix

    Method buildAst has 42 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function buildAst(array $dataBefore, array $dataAfter): array
    {
        return array_reduce(
            union(array_keys($dataBefore), array_keys($dataAfter)),
            static function (
    Severity: Minor
    Found in src/ASTBuilder.php - About 1 hr to fix

      Method getLines has 39 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      function getLines(array $ast, string $path): array
      {
          return array_reduce(
              array_keys($ast),
              static function (
      Severity: Minor
      Found in src/Formatters/PlainFormatter.php - About 1 hr to fix
        Severity
        Category
        Status
        Source
        Language