app/Module/DescendancyModule.php
public function loadSpouses(Individual $individual, $generations): string
    {
        $out = '';
        if ($individual->canShow()) {
            foreach ($individual->spouseFamilies() as $family) {
                $out .= $this->getFamilyLi($family, $individual, $generations - 1);
            }
        }
        if ($out) {
            return '<ul>' . $out . '</ul>';
        }

        return '';
    }
public function loadSpouses(Individual $individual, $generations): string
    {
        $out = '';
        if ($individual->canShow()) {
            foreach ($individual->spouseFamilies() as $family) {
                $out .= $this->getFamilyLi($family, $individual, $generations - 1);
            }
        }
        if ($out) {
            return '<ul>' . $out . '</ul>';
        }

        return '';
    }
public function loadSpouses ( Individual $ individual , $ generations ) : string { $ out = '' ; if ( $ individual -> canShow ( ) ) { foreach ( $ individual -> spouseFamilies ( ) as $ family ) { $ out .= $ this -> getFamilyLi ( $ family , $ individual , $ generations - 1 ) ; } } if ( $ out ) { return '<ul>' . $ out . '</ul>' ; } return '' ; }
Display spouses.

@param Individual $individual
@param int        $generations

@return string
Display spouses .