Some more formatting

This commit is contained in:
Michael 2021-05-08 19:26:57 +00:00
parent cce0d0c21b
commit 4b4298b0f8

View file

@ -79,6 +79,7 @@ class Context extends BaseApi
{ {
if (!empty($parents[$id])) { if (!empty($parents[$id])) {
$list[] = $parents[$id]; $list[] = $parents[$id];
$list = self::getParents($parents[$id], $parents, $list); $list = self::getParents($parents[$id], $parents, $list);
} }
return $list; return $list;
@ -89,6 +90,7 @@ class Context extends BaseApi
if (!empty($children[$id])) { if (!empty($children[$id])) {
foreach ($children[$id] as $child) { foreach ($children[$id] as $child) {
$list[] = $child; $list[] = $child;
$list = self::getChildren($child, $children, $list); $list = self::getChildren($child, $children, $list);
} }
} }