fisharebest/webtrees

View on GitHub
app/Module/DescendancyChartModule.php

Summary

Maintainability
A
2 hrs
Test Coverage

Method handle has 59 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function handle(ServerRequestInterface $request): ResponseInterface
    {
        $tree        = Validator::attributes($request)->tree();
        $user        = Validator::attributes($request)->user();
        $xref        = Validator::attributes($request)->isXref()->string('xref');
Severity: Major
Found in app/Module/DescendancyChartModule.php - About 2 hrs to fix

    Avoid too many return statements within this method.
    Open

            return $this->viewResponse('modules/descendancy_chart/page', [
                'ajax_url'            => $ajax_url,
                'style'               => $style,
                'styles'              => $this->styles(),
                'default_generations' => self::DEFAULT_GENERATIONS,
    Severity: Major
    Found in app/Module/DescendancyChartModule.php - About 30 mins to fix

      There are no issues that match your filters.

      Category
      Status