src/Formatters/basicFormat.php
Method iter
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function iter($diff, $depth = 0)
{
$mapped = array_map(function ($item) use ($depth) {
$indent = str_repeat(' ', $depth);
switch ($item['type']) {
Avoid too many return
statements within this method. Open
Open
return $value;
Avoid too many return
statements within this method. Open
Open
return "{\n{$result}\n{$indent}}";
Avoid too many return
statements within this method. Open
Open
return implode("\n", $mapped);
Avoid too many return
statements within this method. Open
Open
return "{$indent} {$item['key']}: {\n{$result}\n {$indent}}";