app/Module/ShareAnniversaryModule.php
Method share
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function share(GedcomRecord $record): string
{
if ($record instanceof Individual) {
$facts = $record->facts(static::INDIVIDUAL_EVENTS, true)
->merge($record->spouseFamilies()->map(fn (Family $family): Collection => $family->facts(static::FAMILY_EVENTS, true)));