$params * @var array> $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, ['surname' => $surname] + $params) : ''; } elseif ($surname === '') { if ($surn === '') { $label = I18N::translate('No surname'); } else { $label = e($surn); } $url = $module instanceof ModuleListInterface ? $module->listUrl($tree, ['surname' => $surname] + $params) : ''; } else { $label = e($surname); $url = $module instanceof ModuleListInterface ? $module->listUrl($tree, ['surname' => $surname] + $params) : ''; } if ($totals) { $item = I18N::translate('%1$s (%2$s)', '' . $label . '', I18N::number($count)); } else { $item = '' . $label . ''; } ?>