vkzhuk/Difference-Generator

View on GitHub
src/renderDiff.php

Summary

Maintainability
A
2 hrs
Test Coverage

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

function doRenderMethodForTree($method, $firstParam, $secondParam)
{
    $notUpdate = function ($item, $level) {
        return generateDepth($level - 1) . "    {$item['key']}: " . castValue($item['value'], $level) . PHP_EOL;
    };
Severity: Minor
Found in src/renderDiff.php - About 1 hr to fix

    Avoid too many return statements within this method.
    Open

            return implode('', $internalArray);
    Severity: Major
    Found in src/renderDiff.php - About 30 mins to fix

      Avoid too many return statements within this method.
      Open

          return $actionTypes[$method]($firstParam, $secondParam);
      Severity: Major
      Found in src/renderDiff.php - About 30 mins to fix

        There are no issues that match your filters.

        Category
        Status