Showing 9 of 9 total issues
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 $mapped;
Avoid too many return
statements within this method. Open
Open
return ['key' => $key, 'type' => 'changed', 'oldValue' => $dataBefore[$key], 'newValue' => $dataAfter[$key]];
Avoid too many return
statements within this method. Open
Open
return $diff;
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}}";
Avoid too many return
statements within this method. Open
Open
return [];