Showing 6 of 6 total issues
Method buildAstTree
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function buildAstTree($before, $after)
{
$keys = union(array_keys($before), array_keys($after));
$ast = array_map(
function ($key) use ($before, $after) {
Method renderTreeToPlain
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function renderTreeToPlain($ast, $pathRoot = null)
{
$mapped = array_map(
function ($node) use ($pathRoot) {
if (isset($pathRoot)) {
Avoid too many return
statements within this method. Confirmed
Confirmed
return $ast;
Avoid too many return
statements within this method. Confirmed
Confirmed
return [
'name' => $key,
'type' => 'changed',
'beforeValue' => $before[$key],
'afterValue' => $after[$key]
Avoid too many return
statements within this method. Confirmed
Confirmed
return;
Avoid too many return
statements within this method. Confirmed
Confirmed
return implode("\n", $filteredEmptyNodes);