summaryrefslogtreecommitdiff
path: root/app/Http/RequestHandlers/CalendarEvents.php
diff options
context:
space:
mode:
authorGreg Roach <greg@subaqua.co.uk>2021-12-09 15:01:46 +0000
committerGreg Roach <greg@subaqua.co.uk>2021-12-16 21:31:00 +0000
commit7b6e6159b499bb9e7a60dc337cc282fe1c129886 (patch)
treeeffcd44d617ffb285517e2f9a6515f7a599c85a4 /app/Http/RequestHandlers/CalendarEvents.php
parent46d411071ea06668e1c216deaf2ce55deaaa6fdd (diff)
downloadwebtrees-7b6e6159b499bb9e7a60dc337cc282fe1c129886.tar.gz
webtrees-7b6e6159b499bb9e7a60dc337cc282fe1c129886.tar.bz2
webtrees-7b6e6159b499bb9e7a60dc337cc282fe1c129886.zip
Remove unused parameter
Diffstat (limited to 'app/Http/RequestHandlers/CalendarEvents.php')
-rw-r--r--app/Http/RequestHandlers/CalendarEvents.php12
1 files changed, 5 insertions, 7 deletions
diff --git a/app/Http/RequestHandlers/CalendarEvents.php b/app/Http/RequestHandlers/CalendarEvents.php
index 0bb80885a0..824075e9bb 100644
--- a/app/Http/RequestHandlers/CalendarEvents.php
+++ b/app/Http/RequestHandlers/CalendarEvents.php
@@ -209,7 +209,7 @@ class CalendarEvents implements RequestHandlerInterface
if (count($cal_facts[0]) > 0) {
echo '<div class="cal_day">', I18N::translate('Day not set'), '</div>';
echo '<div class="small" style="height: 180px; overflow: auto;">';
- echo $this->calendarListText($cal_facts[0], '', '', $tree);
+ echo $this->calendarListText($cal_facts[0], $tree);
echo '</div>';
$cal_facts[0] = [];
}
@@ -257,7 +257,7 @@ class CalendarEvents implements RequestHandlerInterface
}
echo '</div>';
echo '<div class="small" style="height: 180px; overflow: auto;">';
- echo $this->calendarListText($cal_facts[$d], '', '', $tree);
+ echo $this->calendarListText($cal_facts[$d], $tree);
echo '</div>';
}
echo '</td>';
@@ -275,20 +275,18 @@ class CalendarEvents implements RequestHandlerInterface
* Format a list of facts for display
*
* @param array<string> $list
- * @param string $tag1
- * @param string $tag2
* @param Tree $tree
*
* @return string
*/
- private function calendarListText(array $list, string $tag1, string $tag2, Tree $tree): string
+ private function calendarListText(array $list, Tree $tree): string
{
$html = '';
foreach ($list as $xref => $facts) {
$tmp = Registry::gedcomRecordFactory()->make((string) $xref, $tree);
- $html .= $tag1 . '<a href="' . e($tmp->url()) . '">' . $tmp->fullName() . '</a> ';
- $html .= '<div class="indent">' . $facts . '</div>' . $tag2;
+ $html .= '<a href="' . e($tmp->url()) . '">' . $tmp->fullName() . '</a> ';
+ $html .= '<div class="indent">' . $facts . '</div>';
}
return $html;