fisharebest/webtrees

View on GitHub
app/Module/ShareAnniversaryModule.php

Summary

Maintainability
A
1 hr
Test Coverage

Method share has 27 lines of code (exceeds 25 allowed). Consider refactoring.
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)));
Severity: Minor
Found in app/Module/ShareAnniversaryModule.php - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status