mvaload/difference-calculator

View on GitHub
src/format/pretty.php

Summary

Maintainability
A
2 hrs
Test Coverage

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

function rendPretty(array $data, $level = 0)
{
    $spaces = '    ';
    $offset = str_repeat($spaces, $level);

Severity: Minor
Found in src/format/pretty.php - About 1 hr to fix

    Avoid too many return statements within this method.
    Open

                    return "{$offset}{$spaces}{$key}: {$value}";
    Severity: Major
    Found in src/format/pretty.php - About 30 mins to fix

      Avoid too many return statements within this method.
      Open

          return "{$leftBrace}{$diffString}{$rightBrace}";
      Severity: Major
      Found in src/format/pretty.php - About 30 mins to fix

        There are no issues that match your filters.

        Category
        Status