AlexeyShobanov/php-project-lvl2

View on GitHub
src/formatters/Plain.php

Summary

Maintainability
A
1 hr
Test Coverage

Method renderAstForPlainFormat has 29 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function renderAstForPlainFormat($ast)
{
    $renderAst = function ($ast, $root) use (&$renderAst) {
        $textRepresentationOfNodes = array_reduce($ast, function ($acc, $node) use ($root, &$renderAst) {
            ['type' => $type, 'key' => $key, 'value' => $value, 'oldValue' => $oldValue] = $node;
Severity: Minor
Found in src/formatters/Plain.php - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status