Showing 9 of 9 total issues
Method stylish
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function stylish(array $astTree, int $depth = 0)
{
$indent = buildIndent($depth, 4);
$result = array_map(function ($node) use ($depth, $indent) {
Avoid too many return
statements within this method. Open
Open
return (string) $value;
Avoid too many return
statements within this method. Open
Open
return ['key' => $key, 'type' => 'unchanged', 'value' => $data1->$key];
Avoid too many return
statements within this method. Open
Open
return '';
Avoid too many return
statements within this method. Open
Open
return '{' . PHP_EOL . implode("", $result) . $indent . '}';
Avoid too many return
statements within this method. Open
Open
return implode("", $result);
Avoid too many return
statements within this method. Open
Open
return $indent . " " . $node['key'] . ": " . $valueUnchanged . PHP_EOL;
Avoid too many return
statements within this method. Open
Open
return '{' . PHP_EOL . implode("", $stringOfArray) . $indent . '}';
Avoid too many return
statements within this method. Open
Open
return $astTree;