Showing 2 of 2 total issues
Method buildAst
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function buildAst($firstParsedData, $secondParsedData)
{
$firstArrayData = get_object_vars($firstParsedData);
$secondArrayData = get_object_vars($secondParsedData);
$unionKeys = union(array_keys($firstArrayData), array_keys($secondArrayData));
Method buildNode
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function buildNode($type, $key, $beforeValue, $afterValue, $children = [])