Showing 2 of 2 total issues
Method arrDiff
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function arrDiff($array1, $array2)
{
$union = Collection\union(array_keys($array1), array_keys($array2));
return array_reduce($union, function ($acc, $key) use ($array1, $array2) {
Method prettyReport
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function prettyReport($arr)
{
$iter = function ($arr, $level) use (&$iter) {
return array_map(function ($item) use ($level, $iter) {
switch ($item['type']) {