vkzhuk/Difference-Generator

View on GitHub

Showing 5 of 5 total issues

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 renderPlainBody($item['value'], "$parent{$item['key']}.");
    Severity: Major
    Found in src/renderPlain.php - About 30 mins 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/renderPlain.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
            Severity
            Category
            Status
            Source
            Language