@@ -93,7 +93,7 @@ |
||
93 | 93 | /** @var Collection<GedcomRecord> $records */ |
94 | 94 | $records = $rows->map(function (object $row) use ($tree): ?GedcomRecord { |
95 | 95 | return $this->data_fix_service->getRecordByType($row->xref, $tree, $row->type); |
96 | - })->filter(static function (?GedcomRecord $record) use ($module, $params): bool { |
|
96 | + })->filter(static function (?GedcomRecord $record) use ($module, $params) : bool { |
|
97 | 97 | return $record instanceof GedcomRecord && !$record->isPendingDeletion() && $module->doesRecordNeedUpdate($record, $params); |
98 | 98 | }); |
99 | 99 |
@@ -267,7 +267,7 @@ |
||
267 | 267 | |
268 | 268 | $lifespans = $this->layoutIndividuals($individuals); |
269 | 269 | |
270 | - $callback = static fn (int $carry, object $item): int => max($carry, $item->row); |
|
270 | + $callback = static fn(int $carry, object $item): int => max($carry, $item->row); |
|
271 | 271 | $max_rows = array_reduce($lifespans, $callback, 0); |
272 | 272 | |
273 | 273 | $count = count($xrefs); |