Showing 6 of 6 total issues
Method makeDiff
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function makeDiff(array $firstData, array $secondData): array
{
$keys = array_unique(array_merge(array_keys($firstData), array_keys($secondData)));
return array_reduce(
Method formatToPretty
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function formatToPretty(array $data, $deep = ''): string
{
$view = array_map(
static function ($elem) use ($deep) {
switch ($elem['type']) {
Avoid too many return
statements within this method. Open
Open
return "{\n{$joined}\n{$deep}}";
Avoid too many return
statements within this method. Open
Open
return implode("\n", $view);
Avoid too many return
statements within this method. Open
Open
return formatToString(
$elem['key'],
formatToPretty($elem['children'], $deep . INDENTATION),
$deep,
' '
Avoid too many return
statements within this method. Open
Open
return "Property '{$ancestry}{$key}' was changed. From '{$oldValue}' to '{$value}'";