src/gendiff.php
Method getAst
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function getAst($config1, $config2)
{
$config1 = get_object_vars($config1);
$config2 = get_object_vars($config2);
Avoid too many return
statements within this method. Open
Open
return ['key' => $key,
'oldValue' => $config1[$key],
'newValue' => $config2[$key],
'type' => 'changed'];
Avoid too many return
statements within this method. Open
Open
return $diffTree;