yavictor/php-project-lvl2

View on GitHub

Showing 3 of 3 total issues

Method render has 35 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function render(array $diff): string
{
    $iter = function (array $diff, int $depth) use (&$iter): array {
        return array_map(function ($node) use ($depth, $iter) {
            [
Severity: Minor
Found in src/Formatters/Stylish.php - About 1 hr to fix

    Method render has 30 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function render(array $diff): string
    {
        $iter = function ($diff, $ancestors) use (&$iter): array {
            return array_map(function ($node) use ($ancestors, $iter) {
                [
    Severity: Minor
    Found in src/Formatters/Plain.php - About 1 hr to fix

      Method createNode has 5 arguments (exceeds 4 allowed). Consider refactoring.
      Open

      function createNode(string $key, string $type, $oldValue, $newValue, $children = null): array
      Severity: Minor
      Found in src/DiffGenerator.php - About 35 mins to fix
        Severity
        Category
        Status
        Source
        Language