app/Module/DescendancyModule.php
public function getPersonLi(Individual $person, $generations = 0): string
    {
        $icon     = $generations > 0 ? 'icon-minus' : 'icon-plus';
        $lifespan = $person->canShow() ? '(' . $person->getLifeSpan() . ')' : '';
        $spouses  = $generations > 0 ? $this->loadSpouses($person, 0) : '';

        return
            '<li class="sb_desc_indi_li">' .
            '<a class="sb_desc_indi" href="' . e(route('module', [
                'module' => $this->name(),
                'action' => 'Descendants',
                'ged'    => $person->tree()->name(),
                'xref'   => $person->xref(),
            ])) . '">' .
            '<i class="plusminus ' . $icon . '"></i>' .
            $person->getSexImage() . $person->fullName() . $lifespan .
            '</a>' .
            '<a href="' . e($person->url()) . '" title="' . strip_tags($person->fullName()) . '">' . view('icons/individual') . '</a>' .
            '<div>' . $spouses . '</div>' .
            '</li>';
    }
public function getPersonLi(Individual $person, $generations = 0): string
    {
        $icon     = $generations > 0 ? 'icon-minus' : 'icon-plus';
        $lifespan = $person->canShow() ? '(' . $person->getLifeSpan() . ')' : '';
        $spouses  = $generations > 0 ? $this->loadSpouses($person, 0) : '';

        return
            '<li class="sb_desc_indi_li">' .
            '<a class="sb_desc_indi" href="' . e(route('module', [
                'module' => $this->name(),
                'action' => 'Descendants',
                'ged'    => $person->tree()->name(),
                'xref'   => $person->xref(),
            ])) . '">' .
            '<i class="plusminus ' . $icon . '"></i>' .
            $person->getSexImage() . $person->fullName() . $lifespan .
            '</a>' .
            '<a href="' . e($person->url()) . '" title="' . strip_tags($person->fullName()) . '">' . view('icons/individual') . '</a>' .
            '<div>' . $spouses . '</div>' .
            '</li>';
    }
public function getPersonLi ( Individual $ person , $ generations = 0 ) : string { $ icon = $ generations > 0 ? 'icon-minus' : 'icon-plus' ; $ lifespan = $ person -> canShow ( ) ? '(' . $ person -> getLifeSpan ( ) . ')' : '' ; $ spouses = $ generations > 0 ? $ this -> loadSpouses ( $ person , 0 ) : '' ; return '<li class="sb_desc_indi_li">' . '<a class="sb_desc_indi" href="' . e ( route ( 'module' , [ 'module' => $ this -> name ( ) , 'action' => 'Descendants' , 'ged' => $ person -> tree ( ) -> name ( ) , 'xref' => $ person -> xref ( ) , ] ) ) . '">' . '<i class="plusminus ' . $ icon . '"></i>' . $ person -> getSexImage ( ) . $ person -> fullName ( ) . $ lifespan . '</a>' . '<a href="' . e ( $ person -> url ( ) ) . '" title="' . strip_tags ( $ person -> fullName ( ) ) . '">' . view ( 'icons/individual' ) . '</a>' . '<div>' . $ spouses . '</div>' . '</li>' ; }
Format an individual in a list.

@param Individual $person
@param int        $generations

@return string
Format an individual in a list .