src/renders.php
Method prettyRender
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function prettyRender($ast)
{
$spacesCount = function ($level) {
$a = '';
for ($i = 1; $i < $level; $i++) {
Avoid too many return
statements within this method. Open
Open
return $iter($ast, '');
Avoid too many return
statements within this method. Open
Open
return "Property '{$parent}{$item['key']}' was removed\n";
Avoid too many return
statements within this method. Open
Open
return (implode(PHP_EOL, $report));
Avoid too many return
statements within this method. Open
Open
return "{\n{$iter($ast, 1)}\n}\n";
Avoid too many return
statements within this method. Open
Open
return stringify($item, $spaces, '-', 'oldValue');
Avoid too many return
statements within this method. Open
Open
return (implode('', $report));
Avoid too many return
statements within this method. Open
Open
return stringify($item, $spaces, '+', 'newValue');