Showing 5 of 7 total issues
Method makePlainOutput
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function makePlainOutput(array $tree): array
{
$format = function ($tree, $ancestorPath = []) use (&$format) {
return array_map(function ($node) use (&$format, $ancestorPath) {
[
Method makePrettyOutput
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function makePrettyOutput(array $tree, int $depth = 0): string
{
$iter = function ($node) use ($depth) {
[
Method makeNode
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function makeNode($state, $key, $oldValue = null, $newValue = null, $children = null)
Avoid too many return
statements within this method. Open
Open
return implode("\n", array_map($iter, $tree));
Avoid too many return
statements within this method. Open
Open
return "{$indent} {$key}: {$formattedValue}";