diff options
| author | Greg Roach <fisharebest@webtrees.net> | 2019-12-03 15:46:03 +0000 |
|---|---|---|
| committer | Greg Roach <fisharebest@webtrees.net> | 2019-12-03 17:40:14 +0000 |
| commit | d70512ab02636ee884ef6d7907223ed02c754ff5 (patch) | |
| tree | 1b5a9a0e229b428955e9b2fad81142c62f2dc554 /resources/views/statistics/families/marriage-length.phtml | |
| parent | 69100c6d2f376ba137a90d02f7e41a8ae5929352 (diff) | |
| download | webtrees-d70512ab02636ee884ef6d7907223ed02c754ff5.tar.gz webtrees-d70512ab02636ee884ef6d7907223ed02c754ff5.tar.bz2 webtrees-d70512ab02636ee884ef6d7907223ed02c754ff5.zip | |
Apply PSR12 code style to templates
Diffstat (limited to 'resources/views/statistics/families/marriage-length.phtml')
| -rw-r--r-- | resources/views/statistics/families/marriage-length.phtml | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/resources/views/statistics/families/marriage-length.phtml b/resources/views/statistics/families/marriage-length.phtml index ceda593ea7..8cc9530e89 100644 --- a/resources/views/statistics/families/marriage-length.phtml +++ b/resources/views/statistics/families/marriage-length.phtml @@ -1,4 +1,5 @@ <?php + declare(strict_types=1); use Fisharebest\Webtrees\I18N; @@ -19,12 +20,14 @@ use Fisharebest\Webtrees\Statistics; <?php $result = $stats->topAgeOfMarriageFamily() ?> <h5 class="card-header"> <?= I18N::translate('Longest marriage') ?> - <?php if ($age): ?><?= ' - ', $age ?><?php endif; ?> + <?php if ($age) : + ?><?= ' - ', $age ?><?php + endif; ?> </h5> <div class="card-body"> - <?php if ($result): ?> + <?php if ($result) : ?> <?= $result ?> - <?php else: ?> + <?php else : ?> <?= I18N::translate('This information is not available.') ?> <?php endif; ?> </div> @@ -37,12 +40,14 @@ use Fisharebest\Webtrees\Statistics; <?php $result = $stats->minAgeOfMarriageFamily() ?> <h5 class="card-header"> <?= I18N::translate('Shortest marriage') ?> - <?php if ($age): ?><?= ' - ', $age ?><?php endif; ?> + <?php if ($age) : + ?><?= ' - ', $age ?><?php + endif; ?> </h5> <div class="card-body"> - <?php if ($result): ?> + <?php if ($result) : ?> <?= $result ?> - <?php else: ?> + <?php else : ?> <?= I18N::translate('This information is not available.') ?> <?php endif; ?> </div> |
