diff options
| author | Greg Roach <greg@subaqua.co.uk> | 2025-02-17 22:17:07 +0000 |
|---|---|---|
| committer | Greg Roach <greg@subaqua.co.uk> | 2025-02-19 10:07:54 +0000 |
| commit | 063e5bfcde5bb7ea21d13dce1b6ad10e52b00c24 (patch) | |
| tree | 85c7ea6af6b79764880f7d49f2cf7e417808eaed /resources/views/statistics/families/top10-list-grand.phtml | |
| parent | 67310607fd01ff3b0380e628afce6d7844afc00a (diff) | |
| download | webtrees-063e5bfcde5bb7ea21d13dce1b6ad10e52b00c24.tar.gz webtrees-063e5bfcde5bb7ea21d13dce1b6ad10e52b00c24.tar.bz2 webtrees-063e5bfcde5bb7ea21d13dce1b6ad10e52b00c24.zip | |
PHPdoc and PHPstan issues
Diffstat (limited to 'resources/views/statistics/families/top10-list-grand.phtml')
| -rw-r--r-- | resources/views/statistics/families/top10-list-grand.phtml | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/resources/views/statistics/families/top10-list-grand.phtml b/resources/views/statistics/families/top10-list-grand.phtml index 0cb87aa2e7..426b5574e5 100644 --- a/resources/views/statistics/families/top10-list-grand.phtml +++ b/resources/views/statistics/families/top10-list-grand.phtml @@ -2,15 +2,20 @@ declare(strict_types=1); +use Fisharebest\Webtrees\Family; use Fisharebest\Webtrees\I18N; /** - * @var array<array> $records + * @var array<array{family:Family,count:int}> $records */ ?> -<?php if ($records) : ?> +<?php if ($records === []) : ?> + <div class="card-body"> + <?= I18N::translate('This information is not available.') ?> + </div> +<?php else : ?> <ul class="list-group list-group-flush"> <?php foreach ($records as $record) : ?> <?php $family = $record['family']; ?> @@ -22,8 +27,4 @@ use Fisharebest\Webtrees\I18N; </li> <?php endforeach; ?> </ul> -<?php else : ?> - <div class="card-body"> - <?= I18N::translate('This information is not available.') ?> - </div> <?php endif; ?> |
