Showing 7 of 7 total issues
Method build
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function build(object $objFirst, object $objSecond): array
{
$keyObjFirst = array_keys(get_object_vars($objFirst));
$keyObjSecond = array_keys(get_object_vars($objSecond));
$uniqueKeys = array_unique(array_merge($keyObjFirst, $keyObjSecond));
Method iter
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function iter(array $data, int $depth = 0)
{
$indent = str_repeat(' ', 4 * $depth);
$stylish = array_map(function ($unit) use ($indent, $depth) {
Avoid too many return
statements within this method. Open
Open
return "{$indent} {$name}: {\n{$children}\n{$indent} }";
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 $result;
Avoid too many return
statements within this method. Open
Open
return implode("\n", $stylish);
Avoid too many return
statements within this method. Open
Open
return;