src/Formatters/FormatStylish.php
Method stylishMapping
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function stylishMapping(array $resultDiffArr): array
{
$stylishResult = array_map(function ($node): array {
if (array_key_exists('diffStatus', $node)) {
switch ($node['diffStatus']) {
Avoid too many return
statements within this method. Open
Open
return $flattenedStylishResult;
Avoid too many return
statements within this method. Open
Open
return [" " . $node['nodeKey'] => $childRecurs];
Avoid too many return
statements within this method. Open
Open
return [];