fisharebest/webtrees

View on GitHub
app/Statistics.php

Summary

Maintainability
F
1 wk
Test Coverage

Statistics has 287 functions (exceeds 20 allowed). Consider refactoring.
Open

class Statistics implements
    GedcomRepositoryInterface,
    IndividualRepositoryInterface,
    EventRepositoryInterface,
    MediaRepositoryInterface,
Severity: Major
Found in app/Statistics.php - About 5 days to fix

    File Statistics.php has 1344 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    <?php
    
    /**
     * webtrees: online genealogy
     * Copyright (C) 2022 webtrees development team
    Severity: Major
    Found in app/Statistics.php - About 3 days to fix

      Method __construct has 6 arguments (exceeds 4 allowed). Consider refactoring.
      Open

              CenturyService $century_service,
              ColorService $color_service,
              CountryService $country_service,
              ModuleService $module_service,
              Tree $tree,
      Severity: Minor
      Found in app/Statistics.php - About 45 mins to fix

        Avoid too many return statements within this method.
        Open

                    return $ex->getMessage();
        Severity: Major
        Found in app/Statistics.php - About 30 mins to fix

          Avoid too many return statements within this method.
          Open

                      return '<dl>' . $examples->implode('') . '</dl>';
          Severity: Major
          Found in app/Statistics.php - About 30 mins to fix

            There are no issues that match your filters.

            Category
            Status