Showing 11 of 11 total issues
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);
Method render
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function render($tree)
{
$iter = function ($tree, $depth = 1) use (&$iter) {
$renderedData = array_map(function ($node) use ($iter, $depth) {
$type = $node['type'];
Method render
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function render($tree)
{
$iter = function ($tree, $rootKey = '') use (&$iter) {
$renderedData = array_map(function ($node) use (&$iter, $rootKey) {
$type = $node['type'];
Avoid too many return
statements within this method. Open
Open
return "{\n" . $renderedData . "\n}";
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;
Avoid too many return
statements within this method. Open
Open
return "{$indentSmall}+ {$key}: {$value}";
Avoid too many return
statements within this method. Open
Open
return $renderedData;
Avoid too many return
statements within this method. Open
Open
return $renderedData;
Avoid too many return
statements within this method. Open
Open
return is_array($renderedData) ? implode("\n", $renderedData) : $renderedData;
Avoid too many return
statements within this method. Open
Open
return "Property '{$rootKey}{$key}' was added with value: '{$value}'";