app/Statistics/Service/CountryService.php
Method getAllCountries
has 255 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getAllCountries(): array
{
return [
/* I18N: Name of a country or state */
'???' => I18N::translate('Unknown'),
Method iso3166
has 246 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function iso3166(): array
{
return [
'GBR' => 'GB', // Must come before ENG, NIR, SCT and WLS
'ABW' => 'AW',
File CountryService.php
has 520 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* webtrees: online genealogy
* Copyright (C) 2023 webtrees development team