> $surnames
* @var bool $totals
* @var Tree $tree
*/
$maximum = max(array_map(static fn (array $x): int => max($x), $surnames));
$minimum = min(array_map(static fn (array $x): int => min($x), $surnames));
?>
$surns) : ?>
$count) : ?>
listUrl($tree, ['alpha' => '@']) : '';
} elseif ($surname === '') {
if ($surn === '') {
$label = I18N::translate('No surname');
} else {
$label = e($surn);
}
$url = $module instanceof ModuleListInterface ? $module->listUrl($tree, ['alpha' => ',']) : '';
} else {
$label = e($surname);
$url = $module instanceof ModuleListInterface ? $module->listUrl($tree, ['surname' => $surn]) : '';
}
if ($totals) {
$item = I18N::translate('%1$s (%2$s)', '
' . $label . '', I18N::number($count));
} else {
$item = '
' . $label . '';
}
?>