Showing 3 of 3 total issues
Method getDiffAst
has 69 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function getDiffAst($data1, $data2)
{
$typeMap = [
'need check in deep' => [
'getItem' => function ($key) use ($data1, $data2) {
Method renderToPretty
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function renderToPretty($ast, $isFirstCall = true)
{
$processChildren = function ($children, $name, $sign) {
$value = renderToPretty($children, NOT_FIRST_CALL);
$result = "$sign $name: " . implode(PHP_EOL, $value);
Method renderToPlain
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function renderToPlain($ast, $parents = '')
{
$neededNodes = array_filter($ast, function ($node) {
return $node['type'] != 'not changed';
});