Showing 9 of 9 total issues
Method iter
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function iter(array $node, int $depth = 1): string
{
$children = pick($node, 'value');
$space = buildIndent($depth);
Method iter
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function iter(array $array1, array $array2): array
{
$array1Keys = array_keys($array1);
$array2Keys = array_keys($array2);
$uniqueKeys = array_unique(array_merge($array1Keys, $array2Keys));
Method iter
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function iter(array $node, string $ansentry = '')
{
$children = pick($node, 'value');
$oldValue = pick($node, 'old value');
Avoid too many return
statements within this method. Open
Open
return $result;
Avoid too many return
statements within this method. Open
Open
return implode("\n", $lines);
Avoid too many return
statements within this method. Open
Open
return $result;
Avoid too many return
statements within this method. Open
Open
return "Property '$ansentry{$node['key']}' was updated. From {$formattedValue2} to {$formattedValue3}";
Avoid too many return
statements within this method. Open
Open
return [
'key' => $key,
'status' => 'saved',
'value' => $value1
];
Avoid too many return
statements within this method. Open
Open
return "$space+ {$node['key']}: $formattedValue";