app/Http/Controllers/CalendarController.php
private function calendarListText(array $list, string $tag1, string $tag2, Tree $tree): string
    {
        $html = '';

        foreach ($list as $id => $facts) {
            $tmp  = GedcomRecord::getInstance($id, $tree);
            $html .= $tag1 . '<a href="' . e($tmp->url()) . '">' . $tmp->fullName() . '</a> ';
            $html .= '<div class="indent">' . $facts . '</div>' . $tag2;
        }

        return $html;
    }
private function calendarListText(array $list, string $tag1, string $tag2, Tree $tree): string
    {
        $html = '';

        foreach ($list as $id => $facts) {
            $tmp  = GedcomRecord::getInstance($id, $tree);
            $html .= $tag1 . '<a href="' . e($tmp->url()) . '">' . $tmp->fullName() . '</a> ';
            $html .= '<div class="indent">' . $facts . '</div>' . $tag2;
        }

        return $html;
    }
private function calendarListText ( array $ list , string $ tag1 , string $ tag2 , Tree $ tree ) : string { $ html = '' ; foreach ( $ list as $ id => $ facts ) { $ tmp = GedcomRecord :: getInstance ( $ id , $ tree ) ; $ html .= $ tag1 . '<a href="' . e ( $ tmp -> url ( ) ) . '">' . $ tmp -> fullName ( ) . '</a> ' ; $ html .= '<div class="indent">' . $ facts . '</div>' . $ tag2 ; } return $ html ; }
Format a list of facts for display

@param Fact[] $list
@param string $tag1
@param string $tag2
@param Tree   $tree

@return string
Format a list of facts for display