app/Module/DescendancyModule.php
public function loadChildren(Family $family, $generations): string
    {
        $out = '';
        if ($family->canShow()) {
            $children = $family->children();

            if ($children->isNotEmpty()) {
                foreach ($children as $child) {
                    $out .= $this->getPersonLi($child, $generations - 1);
                }
            } else {
                $out .= '<li class="sb_desc_none">' . I18N::translate('No children') . '</li>';
            }
        }
        if ($out) {
            return '<ul>' . $out . '</ul>';
        }

        return '';
    }
public function loadChildren(Family $family, $generations): string
    {
        $out = '';
        if ($family->canShow()) {
            $children = $family->children();

            if ($children->isNotEmpty()) {
                foreach ($children as $child) {
                    $out .= $this->getPersonLi($child, $generations - 1);
                }
            } else {
                $out .= '<li class="sb_desc_none">' . I18N::translate('No children') . '</li>';
            }
        }
        if ($out) {
            return '<ul>' . $out . '</ul>';
        }

        return '';
    }
public function loadChildren ( Family $ family , $ generations ) : string { $ out = '' ; if ( $ family -> canShow ( ) ) { $ children = $ family -> children ( ) ; if ( $ children -> isNotEmpty ( ) ) { foreach ( $ children as $ child ) { $ out .= $ this -> getPersonLi ( $ child , $ generations - 1 ) ; } } else { $ out .= '<li class="sb_desc_none">' . I18N :: translate ( 'No children' ) . '</li>' ; } } if ( $ out ) { return '<ul>' . $ out . '</ul>' ; } return '' ; }
Display descendants.

@param Family $family
@param int    $generations

@return string
Display descendants .