KonstantinNP/php-project-lvl2

View on GitHub
src/formatters/Stylish.php

Summary

Maintainability
A
1 hr
Test Coverage
A
97%

Method generateString has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function generateString($diffTree, $deep): string
{
    $indent = INDENT_STEP * $deep - MARKER_PLACE;
    $diffTree = is_object($diffTree) ? get_object_vars($diffTree) : $diffTree;
    $result = array_map(function ($node) use ($deep, $indent) {
Severity: Minor
Found in src/formatters/Stylish.php - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status