src/buildAST.php
Method buildAST
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function buildAST($array1, $array2)
{
$unionArraysKeys = union(array_keys($array1), array_keys($array2));
return array_reduce($unionArraysKeys, function ($acc, $key) use ($array1, $array2) {
Method buildArray
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function buildArray($key, $type, $children, $from = null, $to = null)