fisharebest/webtrees

View on GitHub
app/Statistics/Google/ChartCommonSurname.php

Summary

Maintainability
A
2 hrs
Test Coverage

Method getTopNameAndCount has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private function getTopNameAndCount(array $surns): array
    {
        $max_name  = 0;
        $count_per = 0;
        $top_name  = '';
Severity: Minor
Found in app/Statistics/Google/ChartCommonSurname.php - About 1 hr to fix

    Method chartCommonSurnames has 26 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function chartCommonSurnames(
            int $tot_indi,
            array $all_surnames,
            string|null $color_from = null,
            string|null $color_to = null
    Severity: Minor
    Found in app/Statistics/Google/ChartCommonSurname.php - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status