fisharebest/webtrees

View on GitHub
app/Module/UserWelcomeModule.php

Summary

Maintainability
A
1 hr
Test Coverage

Method getBlock has 37 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function getBlock(Tree $tree, int $block_id, string $context, array $config = []): string
    {
        $gedcomid   = $tree->getUserPreference(Auth::user(), UserInterface::PREF_TREE_ACCOUNT_XREF);
        $individual = Registry::individualFactory()->make($gedcomid, $tree);
        $links      = [];
Severity: Minor
Found in app/Module/UserWelcomeModule.php - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status