yarncat/php-project-lvl2

View on GitHub

Showing 2 of 2 total issues

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

function renderStylish($tree)
{
    $iter = function ($tree, $level) use (&$iter) {
        return array_map(function ($element) use ($iter, $level) {
            $indent = makeIndent($level);
Severity: Minor
Found in src/Formatters/Stylish.php - About 1 hr to fix

    Avoid too many return statements within this method.
    Open

        return boolToString($value);
    Severity: Major
    Found in src/Formatters/Stylish.php - About 30 mins to fix
      Severity
      Category
      Status
      Source
      Language