MaxSmakov/project-lvl2-s189

View on GitHub

Showing 2 of 2 total issues

Method arrDiff has 40 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function arrDiff($array1, $array2)
{
    $union = Collection\union(array_keys($array1), array_keys($array2));

    return array_reduce($union, function ($acc, $key) use ($array1, $array2) {
Severity: Minor
Found in src/generateDiff.php - About 1 hr to fix

    Method prettyReport has 34 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function prettyReport($arr)
    {
        $iter = function ($arr, $level) use (&$iter) {
            return array_map(function ($item) use ($level, $iter) {
                switch ($item['type']) {
    Severity: Minor
    Found in src/reports.php - About 1 hr to fix
      Severity
      Category
      Status
      Source
      Language