@@ -13,7 +13,7 @@ |
||
13 | 13 | * You should have received a copy of the GNU General Public License |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | -declare(strict_types=1); |
|
16 | +declare(strict_types = 1); |
|
17 | 17 | |
18 | 18 | namespace Fisharebest\Webtrees\Http\Middleware; |
19 | 19 |
@@ -13,7 +13,7 @@ |
||
13 | 13 | * You should have received a copy of the GNU General Public License |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | -declare(strict_types=1); |
|
16 | +declare(strict_types = 1); |
|
17 | 17 | |
18 | 18 | namespace Fisharebest\Webtrees\Http\Middleware; |
19 | 19 |
@@ -3,9 +3,12 @@ |
||
3 | 3 | |
4 | 4 | <?php if ($summary !== ''): ?> |
5 | 5 | <span class="details_label"><?= $summary ?></span> |
6 | -<?php else: ?> |
|
6 | +<?php else { |
|
7 | + : ?> |
|
7 | 8 | <?php foreach ($facts as $fact): ?> |
8 | - <?php $record = $fact->getParent(); ?> |
|
9 | + <?php $record = $fact->getParent(); |
|
10 | +} |
|
11 | +?> |
|
9 | 12 | <a href="<?= e($record->url()) ?>" class="list_item name2"> |
10 | 13 | <?= $record->getFullName() ?> |
11 | 14 | </a> |
@@ -3,7 +3,8 @@ discard block |
||
3 | 3 | |
4 | 4 | <?php if ($summary !== ''): ?> |
5 | 5 | <span class="details_label"><?= $summary ?></span> |
6 | -<?php else: ?> |
|
6 | +<?php else { |
|
7 | + : ?> |
|
7 | 8 | <table class="table table-sm datatable wt-table-events" data-info="false" data-paging="false" |
8 | 9 | data-searching="false" data-sorting="<?= e('[[1, "asc" ]]') ?>"> |
9 | 10 | <thead> |
@@ -17,7 +18,9 @@ discard block |
||
17 | 18 | <tbody> |
18 | 19 | |
19 | 20 | <?php foreach ($facts as $fact): ?> |
20 | - <?php $record = $fact->getParent(); ?> |
|
21 | + <?php $record = $fact->getParent(); |
|
22 | +} |
|
23 | +?> |
|
21 | 24 | <tr> |
22 | 25 | <td data-sort="<?= e($record->getSortName()) ?>"> |
23 | 26 | <a href="<?= e($record->url()) ?>"> |