fisharebest/webtrees

View on GitHub
app/Statistics/Service/CountryService.php

Summary

Maintainability
F
3 days
Test Coverage

Method getAllCountries has 253 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function getAllCountries(): array
    {
        return [
            /* I18N: Name of a country or state */
            '???' => I18N::translate('Unknown'),
Severity: Major
Found in app/Statistics/Service/CountryService.php - About 1 day to fix

    Method iso3166 has 246 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function iso3166(): array
        {
            return [
                'GBR' => 'GB', // Must come before ENG, NIR, SCT and WLS
                'ABW' => 'AW',
    Severity: Major
    Found in app/Statistics/Service/CountryService.php - About 1 day to fix

      File CountryService.php has 518 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/Service/CountryService.php - About 1 day to fix

        There are no issues that match your filters.

        Category
        Status