summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorGreg Roach <greg@subaqua.co.uk>2024-11-22 23:58:56 +0000
committerGreg Roach <greg@subaqua.co.uk>2024-11-22 23:58:56 +0000
commite873f434551745f888937263ff89e80db3b0f785 (patch)
treec2ccdc2f7e9eb84a336dedcb75f4953fd46a6745 /app
parent95a8620a270e22e753770d980faee3cdf53d5566 (diff)
downloadwebtrees-e873f434551745f888937263ff89e80db3b0f785.tar.gz
webtrees-e873f434551745f888937263ff89e80db3b0f785.tar.bz2
webtrees-e873f434551745f888937263ff89e80db3b0f785.zip
PHP 8.3 allows class constants to have type hints
Diffstat (limited to 'app')
-rw-r--r--app/Auth.php8
-rw-r--r--app/Census/AbstractCensusColumnCondition.php22
-rw-r--r--app/Census/CensusColumnConditionCanada.php20
-rw-r--r--app/Census/CensusColumnConditionCanadaMarriedSingle.php20
-rw-r--r--app/Census/CensusColumnConditionCanadaMarriedWidowed.php20
-rw-r--r--app/Census/CensusColumnConditionCanadaWidowed.php20
-rw-r--r--app/Census/CensusColumnConditionCanadaWidowedFemale.php20
-rw-r--r--app/Census/CensusColumnConditionCanadaWidowedMale.php20
-rw-r--r--app/Census/CensusColumnConditionDanish.php16
-rw-r--r--app/Census/CensusColumnConditionEnglish.php16
-rw-r--r--app/Census/CensusColumnConditionFrenchFemme.php20
-rw-r--r--app/Census/CensusColumnConditionFrenchFille.php20
-rw-r--r--app/Census/CensusColumnConditionFrenchGarcon.php20
-rw-r--r--app/Census/CensusColumnConditionFrenchHomme.php20
-rw-r--r--app/Census/CensusColumnConditionFrenchVeuf.php20
-rw-r--r--app/Census/CensusColumnConditionFrenchVeuve.php20
-rw-r--r--app/Census/CensusColumnConditionUs.php20
-rw-r--r--app/Census/CensusColumnNationality.php2
-rw-r--r--app/Census/CensusColumnRelationToHead.php2
-rw-r--r--app/Census/CensusColumnRelationToHeadEnglish.php2
-rw-r--r--app/Census/CensusColumnRelationToHeadGerman.php2
-rw-r--r--app/Census/CensusColumnSexF.php6
-rw-r--r--app/Census/CensusColumnSexM.php6
-rw-r--r--app/Census/CensusColumnSexMF.php4
-rw-r--r--app/Census/CensusColumnSexMK.php2
-rw-r--r--app/Census/CensusColumnSexMZ.php2
-rw-r--r--app/Cli/Commands/CompilePoFiles.php2
-rw-r--r--app/Cli/Console.php2
-rw-r--r--app/CommonMark/CensusTableExtension.php6
-rw-r--r--app/Contracts/SurnameTraditionFactoryInterface.php18
-rw-r--r--app/Contracts/UserInterface.php44
-rw-r--r--app/DB.php16
-rw-r--r--app/Date/AbstractCalendarDate.php6
-rw-r--r--app/Date/AbstractGregorianJulianDate.php6
-rw-r--r--app/Date/FrenchDate.php6
-rw-r--r--app/Date/GregorianDate.php2
-rw-r--r--app/Date/HijriDate.php6
-rw-r--r--app/Date/JalaliDate.php6
-rw-r--r--app/Date/JewishDate.php6
-rw-r--r--app/Date/JulianDate.php2
-rw-r--r--app/Date/RomanDate.php2
-rw-r--r--app/Elements/AbstractElement.php10
-rw-r--r--app/Elements/AbstractExternalLink.php2
-rw-r--r--app/Elements/AddressCity.php2
-rw-r--r--app/Elements/AddressCountry.php2
-rw-r--r--app/Elements/AddressEmail.php2
-rw-r--r--app/Elements/AddressFax.php2
-rw-r--r--app/Elements/AddressLine.php4
-rw-r--r--app/Elements/AddressLine1.php2
-rw-r--r--app/Elements/AddressLine2.php2
-rw-r--r--app/Elements/AddressLine3.php2
-rw-r--r--app/Elements/AddressPostalCode.php2
-rw-r--r--app/Elements/AddressState.php2
-rw-r--r--app/Elements/AddressWebPage.php4
-rw-r--r--app/Elements/Adoption.php2
-rw-r--r--app/Elements/AdultChristening.php2
-rw-r--r--app/Elements/AgeAtEvent.php4
-rw-r--r--app/Elements/AncestralFileNumber.php4
-rw-r--r--app/Elements/Annulment.php2
-rw-r--r--app/Elements/ApprovedSystemId.php2
-rw-r--r--app/Elements/AttributeDescriptor.php2
-rw-r--r--app/Elements/AutomatedRecordId.php2
-rw-r--r--app/Elements/Baptism.php2
-rw-r--r--app/Elements/BarMitzvah.php2
-rw-r--r--app/Elements/BasMitzvah.php2
-rw-r--r--app/Elements/Birth.php2
-rw-r--r--app/Elements/Blessing.php2
-rw-r--r--app/Elements/Burial.php2
-rw-r--r--app/Elements/CasteName.php4
-rw-r--r--app/Elements/CauseOfEvent.php2
-rw-r--r--app/Elements/Census.php2
-rw-r--r--app/Elements/Change.php2
-rw-r--r--app/Elements/ChangeDate.php2
-rw-r--r--app/Elements/ChildLinkageStatus.php6
-rw-r--r--app/Elements/Christening.php2
-rw-r--r--app/Elements/Confirmation.php2
-rw-r--r--app/Elements/Coordinates.php2
-rw-r--r--app/Elements/CopyrightFile.php2
-rw-r--r--app/Elements/CopyrightSourceData.php2
-rw-r--r--app/Elements/CountOfChildren.php2
-rw-r--r--app/Elements/CountOfChildrenFam.php2
-rw-r--r--app/Elements/CountOfMarriages.php2
-rw-r--r--app/Elements/Creation.php2
-rw-r--r--app/Elements/Cremation.php2
-rw-r--r--app/Elements/CustomEvent.php2
-rw-r--r--app/Elements/CustomFact.php2
-rw-r--r--app/Elements/CustomFamilyEvent.php2
-rw-r--r--app/Elements/CustomIndividualEvent.php2
-rw-r--r--app/Elements/DateValueExact.php2
-rw-r--r--app/Elements/Death.php2
-rw-r--r--app/Elements/Divorce.php2
-rw-r--r--app/Elements/DivorceFiled.php2
-rw-r--r--app/Elements/Emigration.php2
-rw-r--r--app/Elements/Engagement.php2
-rw-r--r--app/Elements/EventAttributeType.php2
-rw-r--r--app/Elements/EventOrFactClassification.php2
-rw-r--r--app/Elements/EventTypeCitedFrom.php10
-rw-r--r--app/Elements/EventsRecorded.php4
-rw-r--r--app/Elements/FamilyCensus.php2
-rw-r--r--app/Elements/FamilyEvent.php4
-rw-r--r--app/Elements/FamilyFact.php4
-rw-r--r--app/Elements/FamilyNonEvent.php2
-rw-r--r--app/Elements/FamilyRecord.php2
-rw-r--r--app/Elements/FamilySearchFamilyTreeId.php4
-rw-r--r--app/Elements/FamilyStatusText.php2
-rw-r--r--app/Elements/FileName.php2
-rw-r--r--app/Elements/FirstCommunion.php2
-rw-r--r--app/Elements/Form.php2
-rw-r--r--app/Elements/GenerationsOfAncestors.php2
-rw-r--r--app/Elements/GenerationsOfDescendants.php2
-rw-r--r--app/Elements/GovIdentifier.php4
-rw-r--r--app/Elements/Graduation.php2
-rw-r--r--app/Elements/HeaderRecord.php2
-rw-r--r--app/Elements/Immigration.php2
-rw-r--r--app/Elements/IndividualEvent.php4
-rw-r--r--app/Elements/IndividualFact.php4
-rw-r--r--app/Elements/IndividualNonEvent.php2
-rw-r--r--app/Elements/IndividualRecord.php2
-rw-r--r--app/Elements/LdsBaptism.php2
-rw-r--r--app/Elements/LdsChildSealing.php2
-rw-r--r--app/Elements/LdsConfirmation.php2
-rw-r--r--app/Elements/LdsEndowment.php2
-rw-r--r--app/Elements/LdsEndowmentDateStatus.php2
-rw-r--r--app/Elements/LdsInitiatory.php2
-rw-r--r--app/Elements/LdsOrdinanceStatus.php2
-rw-r--r--app/Elements/LdsSpouseSealing.php2
-rw-r--r--app/Elements/LocationRecord.php2
-rw-r--r--app/Elements/MaidenheadLocator.php4
-rw-r--r--app/Elements/Marriage.php2
-rw-r--r--app/Elements/MarriageBanns.php2
-rw-r--r--app/Elements/MarriageContract.php2
-rw-r--r--app/Elements/MarriageLicence.php2
-rw-r--r--app/Elements/MarriageSettlement.php2
-rw-r--r--app/Elements/MarriageType.php8
-rw-r--r--app/Elements/MediaRecord.php2
-rw-r--r--app/Elements/MultimediaFileReference.php2
-rw-r--r--app/Elements/MultimediaFormat.php4
-rw-r--r--app/Elements/NameOfBusiness.php2
-rw-r--r--app/Elements/NameOfFamilyFile.php2
-rw-r--r--app/Elements/NameOfProduct.php2
-rw-r--r--app/Elements/NameOfRepository.php2
-rw-r--r--app/Elements/NameOfSourceData.php2
-rw-r--r--app/Elements/NamePersonal.php8
-rw-r--r--app/Elements/NamePhoneticVariation.php2
-rw-r--r--app/Elements/NamePieceGiven.php2
-rw-r--r--app/Elements/NamePieceNickname.php2
-rw-r--r--app/Elements/NamePiecePrefix.php2
-rw-r--r--app/Elements/NamePieceSuffix.php2
-rw-r--r--app/Elements/NamePieceSurname.php2
-rw-r--r--app/Elements/NamePieceSurnamePrefix.php2
-rw-r--r--app/Elements/NameRomanizedVariation.php2
-rw-r--r--app/Elements/NameType.php18
-rw-r--r--app/Elements/NationalIdNumber.php4
-rw-r--r--app/Elements/NationalOrTribalOrigin.php4
-rw-r--r--app/Elements/Naturalization.php2
-rw-r--r--app/Elements/NobilityTypeTitle.php4
-rw-r--r--app/Elements/NoteRecord.php2
-rw-r--r--app/Elements/Occupation.php2
-rw-r--r--app/Elements/Ordination.php2
-rw-r--r--app/Elements/PafUid.php2
-rw-r--r--app/Elements/PedigreeLinkageType.php12
-rw-r--r--app/Elements/PermanentRecordFileNumber.php2
-rw-r--r--app/Elements/PhoneNumber.php2
-rw-r--r--app/Elements/PhoneticType.php2
-rw-r--r--app/Elements/PhysicalDescription.php2
-rw-r--r--app/Elements/PlaceHierarchy.php2
-rw-r--r--app/Elements/PlaceName.php2
-rw-r--r--app/Elements/Possessions.php2
-rw-r--r--app/Elements/Probate.php2
-rw-r--r--app/Elements/ReceivingSystemName.php2
-rw-r--r--app/Elements/RelationIsDescriptor.php2
-rw-r--r--app/Elements/ReligiousAffiliation.php4
-rw-r--r--app/Elements/RepositoryRecord.php2
-rw-r--r--app/Elements/ResearchTask.php2
-rw-r--r--app/Elements/ResidenceWithValue.php2
-rw-r--r--app/Elements/ResponsibleAgency.php2
-rw-r--r--app/Elements/RestrictionNotice.php18
-rw-r--r--app/Elements/Retirement.php2
-rw-r--r--app/Elements/RoleInEvent.php2
-rw-r--r--app/Elements/RomanizedType.php2
-rw-r--r--app/Elements/ScholasticAchievement.php2
-rw-r--r--app/Elements/SocialSecurityNumber.php4
-rw-r--r--app/Elements/SourceCallNumber.php4
-rw-r--r--app/Elements/SourceData.php2
-rw-r--r--app/Elements/SourceFiledByEntry.php2
-rw-r--r--app/Elements/SourceMediaType.php38
-rw-r--r--app/Elements/SourceRecord.php2
-rw-r--r--app/Elements/SubmissionRecord.php2
-rw-r--r--app/Elements/SubmitterName.php2
-rw-r--r--app/Elements/SubmitterRecord.php2
-rw-r--r--app/Elements/SubmitterRegisteredRfn.php2
-rw-r--r--app/Elements/TimeValue.php2
-rw-r--r--app/Elements/TransmissionDate.php2
-rw-r--r--app/Elements/Uid.php2
-rw-r--r--app/Elements/UserReferenceNumber.php2
-rw-r--r--app/Elements/UserReferenceType.php2
-rw-r--r--app/Elements/VersionNumber.php2
-rw-r--r--app/Elements/Will.php2
-rw-r--r--app/Elements/XrefAssociate.php2
-rw-r--r--app/Elements/XrefRepository.php2
-rw-r--r--app/Elements/XrefSource.php2
-rw-r--r--app/Encodings/ANSEL.php10
-rw-r--r--app/Encodings/ASCII.php6
-rw-r--r--app/Encodings/AbstractEncoding.php4
-rw-r--r--app/Encodings/AbstractUTF16Encoding.php2
-rw-r--r--app/Encodings/CP437.php4
-rw-r--r--app/Encodings/CP850.php4
-rw-r--r--app/Encodings/EncodingInterface.php2
-rw-r--r--app/Encodings/ISO88591.php4
-rw-r--r--app/Encodings/ISO88592.php4
-rw-r--r--app/Encodings/MacRoman.php4
-rw-r--r--app/Encodings/UTF16BE.php6
-rw-r--r--app/Encodings/UTF16LE.php6
-rw-r--r--app/Encodings/UTF8.php1542
-rw-r--r--app/Encodings/Windows1250.php4
-rw-r--r--app/Encodings/Windows1251.php4
-rw-r--r--app/Encodings/Windows1252.php4
-rw-r--r--app/Fact.php2
-rw-r--r--app/Factories/CacheFactory.php6
-rw-r--r--app/Factories/FamilyFactory.php2
-rw-r--r--app/Factories/FilesystemFactory.php2
-rw-r--r--app/Factories/HeaderFactory.php2
-rw-r--r--app/Factories/ImageFactory.php10
-rw-r--r--app/Factories/IndividualFactory.php2
-rw-r--r--app/Factories/LocationFactory.php2
-rw-r--r--app/Factories/MarkdownFactory.php6
-rw-r--r--app/Factories/MediaFactory.php2
-rw-r--r--app/Factories/NoteFactory.php2
-rw-r--r--app/Factories/RepositoryFactory.php2
-rw-r--r--app/Factories/SharedNoteFactory.php2
-rw-r--r--app/Factories/SourceFactory.php2
-rw-r--r--app/Factories/SubmissionFactory.php2
-rw-r--r--app/Factories/SubmitterFactory.php2
-rw-r--r--app/Family.php4
-rw-r--r--app/FlashMessages.php2
-rw-r--r--app/Gedcom.php56
-rw-r--r--app/GedcomRecord.php4
-rw-r--r--app/Header.php4
-rw-r--r--app/Http/Middleware/BadBotBlocker.php22
-rw-r--r--app/Http/Middleware/CheckCsrf.php2
-rw-r--r--app/Http/Middleware/CompressResponse.php2
-rw-r--r--app/Http/Middleware/DoHousekeeping.php14
-rw-r--r--app/Http/Middleware/EmitResponse.php2
-rw-r--r--app/Http/Middleware/SecurityHeaders.php2
-rw-r--r--app/Http/Middleware/UseSession.php2
-rw-r--r--app/Http/Middleware/UseTransaction.php2
-rw-r--r--app/Http/RequestHandlers/AbstractAutocompleteHandler.php4
-rw-r--r--app/Http/RequestHandlers/AbstractTomSelectHandler.php2
-rw-r--r--app/Http/RequestHandlers/AddSpouseToIndividualPage.php2
-rw-r--r--app/Http/RequestHandlers/DataFixUpdateAll.php2
-rw-r--r--app/Http/RequestHandlers/DeletePath.php2
-rw-r--r--app/Http/RequestHandlers/GedcomRecordPage.php2
-rw-r--r--app/Http/RequestHandlers/HelpText.php22
-rw-r--r--app/Http/RequestHandlers/PasswordRequestAction.php8
-rw-r--r--app/Http/RequestHandlers/PendingChanges.php2
-rw-r--r--app/Http/RequestHandlers/RedirectAncestryPhp.php2
-rw-r--r--app/Http/RequestHandlers/RedirectDescendencyPhp.php2
-rw-r--r--app/Http/RequestHandlers/RedirectPedigreePhp.php2
-rw-r--r--app/Http/RequestHandlers/RobotsTxt.php2
-rw-r--r--app/Http/RequestHandlers/SearchAdvancedPage.php4
-rw-r--r--app/Http/RequestHandlers/SetupWizard.php8
-rw-r--r--app/Http/RequestHandlers/UpgradeWizardPage.php14
-rw-r--r--app/Http/RequestHandlers/UpgradeWizardStep.php22
-rw-r--r--app/Http/RequestHandlers/UploadMediaPage.php2
-rw-r--r--app/I18N.php16
-rw-r--r--app/Individual.php8
-rw-r--r--app/Location.php4
-rw-r--r--app/Log.php12
-rw-r--r--app/Media.php4
-rw-r--r--app/MediaFile.php2
-rw-r--r--app/Mime.php4
-rw-r--r--app/Module/AncestorsChartModule.php18
-rw-r--r--app/Module/BranchesListModule.php2
-rw-r--r--app/Module/CkeditorModule.php2
-rw-r--r--app/Module/ClippingsCartModule.php18
-rw-r--r--app/Module/ColorsTheme.php2
-rw-r--r--app/Module/CompactTreeChartModule.php2
-rw-r--r--app/Module/DescendancyChartModule.php18
-rw-r--r--app/Module/FamilyBookChartModule.php16
-rw-r--r--app/Module/FamilyTreeStatisticsModule.php2
-rw-r--r--app/Module/FanChartModule.php32
-rw-r--r--app/Module/FixNameTags.php2
-rw-r--r--app/Module/FixSearchAndReplace.php2
-rw-r--r--app/Module/HitCountFooterModule.php2
-rw-r--r--app/Module/HourglassChartModule.php12
-rw-r--r--app/Module/IndividualMetadataModule.php2
-rw-r--r--app/Module/LanguageEnglishGreatBritain.php2
-rw-r--r--app/Module/LanguageEnglishUnitedStates.php6
-rw-r--r--app/Module/LanguageFrench.php4
-rw-r--r--app/Module/LanguageSlovakian.php4
-rw-r--r--app/Module/LifespansChartModule.php14
-rw-r--r--app/Module/LocationListModule.php2
-rw-r--r--app/Module/MediaListModule.php2
-rw-r--r--app/Module/ModuleBlockInterface.php14
-rw-r--r--app/Module/NoteListModule.php2
-rw-r--r--app/Module/OnThisDayModule.php14
-rw-r--r--app/Module/PedigreeChartModule.php22
-rw-r--r--app/Module/PedigreeMapModule.php12
-rw-r--r--app/Module/PlaceHierarchyListModule.php2
-rw-r--r--app/Module/PlacesModule.php6
-rw-r--r--app/Module/RecentChangesModule.php22
-rw-r--r--app/Module/RelationshipsChartModule.php10
-rw-r--r--app/Module/RepositoryListModule.php2
-rw-r--r--app/Module/ResearchTaskModule.php12
-rw-r--r--app/Module/ShareAnniversaryModule.php6
-rw-r--r--app/Module/SiteMapModule.php6
-rw-r--r--app/Module/SlideShowModule.php10
-rw-r--r--app/Module/SourceListModule.php2
-rw-r--r--app/Module/StatisticsChartModule.php40
-rw-r--r--app/Module/SubmitterListModule.php2
-rw-r--r--app/Module/TimelineChartModule.php14
-rw-r--r--app/Module/TopGivenNamesModule.php4
-rw-r--r--app/Module/TopPageViewsModule.php4
-rw-r--r--app/Module/TopSurnamesModule.php4
-rw-r--r--app/Module/UpcomingAnniversariesModule.php28
-rw-r--r--app/Module/YahrzeitModule.php12
-rw-r--r--app/Note.php4
-rw-r--r--app/Relationship.php32
-rw-r--r--app/Report/AbstractRenderer.php8
-rw-r--r--app/Report/PdfRenderer.php8
-rw-r--r--app/Report/ReportBaseElement.php2
-rw-r--r--app/Report/RightToLeftSupport.php38
-rw-r--r--app/Repository.php4
-rw-r--r--app/Schema/Migration42.php2
-rw-r--r--app/Schema/SeedDefaultResnTable.php2
-rw-r--r--app/Services/CalendarService.php2
-rw-r--r--app/Services/CaptchaService.php2
-rw-r--r--app/Services/ClipboardService.php2
-rw-r--r--app/Services/GedcomExportService.php2
-rw-r--r--app/Services/GedcomService.php4
-rw-r--r--app/Services/HousekeepingService.php2
-rw-r--r--app/Services/MapDataService.php4
-rw-r--r--app/Services/MediaFileService.php2
-rw-r--r--app/Services/MessageService.php16
-rw-r--r--app/Services/ModuleService.php8
-rw-r--r--app/Services/RelationshipService.php2
-rw-r--r--app/Services/RomanNumeralsService.php2
-rw-r--r--app/Services/SearchService.php2
-rw-r--r--app/Services/ServerCheckService.php8
-rw-r--r--app/Services/TimeoutService.php4
-rw-r--r--app/Services/TreeService.php2
-rw-r--r--app/Services/UpgradeService.php10
-rw-r--r--app/Session.php4
-rw-r--r--app/SharedNote.php4
-rw-r--r--app/Site.php6
-rw-r--r--app/Soundex.php6
-rw-r--r--app/Source.php4
-rw-r--r--app/Statistics/Repository/EventRepository.php12
-rw-r--r--app/Statistics/Repository/FamilyDatesRepository.php12
-rw-r--r--app/Statistics/Repository/MediaRepository.php40
-rw-r--r--app/Submission.php4
-rw-r--r--app/Submitter.php4
-rw-r--r--app/SurnameTradition/DefaultSurnameTradition.php8
-rw-r--r--app/SurnameTradition/LithuanianSurnameTradition.php6
-rw-r--r--app/SurnameTradition/PolishSurnameTradition.php4
-rw-r--r--app/Tree.php4
-rw-r--r--app/View.php4
-rw-r--r--app/Webtrees.php40
358 files changed, 1816 insertions, 1816 deletions
diff --git a/app/Auth.php b/app/Auth.php
index 76d961491b..a629254a50 100644
--- a/app/Auth.php
+++ b/app/Auth.php
@@ -33,10 +33,10 @@ use function is_int;
class Auth
{
// Privacy constants
- public const PRIV_PRIVATE = 2; // Allows visitors to view the item
- public const PRIV_USER = 1; // Allows members to access the item
- public const PRIV_NONE = 0; // Allows managers to access the item
- public const PRIV_HIDE = -1; // Hide the item to all users
+ public const int PRIV_PRIVATE = 2; // Allows visitors to view the item
+ public const int PRIV_USER = 1; // Allows members to access the item
+ public const int PRIV_NONE = 0; // Allows managers to access the item
+ public const int PRIV_HIDE = -1; // Hide the item to all users
/**
* Are we currently logged in?
diff --git a/app/Census/AbstractCensusColumnCondition.php b/app/Census/AbstractCensusColumnCondition.php
index 6a2a34ac71..44b15fa199 100644
--- a/app/Census/AbstractCensusColumnCondition.php
+++ b/app/Census/AbstractCensusColumnCondition.php
@@ -29,37 +29,37 @@ use Fisharebest\Webtrees\Individual;
abstract class AbstractCensusColumnCondition extends AbstractCensusColumn implements CensusColumnInterface
{
// Text to display for married males
- protected const HUSBAND = '';
+ protected const string HUSBAND = '';
// Text to display for married females
- protected const WIFE = '';
+ protected const string WIFE = '';
// Text to display for married unmarried males
- protected const BACHELOR = '';
+ protected const string BACHELOR = '';
// Text to display for married unmarried females
- protected const SPINSTER = '';
+ protected const string SPINSTER = '';
// Text to display for male children
- protected const BOY = '';
+ protected const string BOY = '';
// Text to display for female children
- protected const GIRL = '';
+ protected const string GIRL = '';
// Text to display for divorced males
- protected const DIVORCE = '';
+ protected const string DIVORCE = '';
// Text to display for divorced females
- protected const DIVORCEE = '';
+ protected const string DIVORCEE = '';
// Text to display for widowed males
- protected const WIDOWER = '';
+ protected const string WIDOWER = '';
// Text to display for widowed females
- protected const WIDOW = '';
+ protected const string WIDOW = '';
// At what age is this individual recorded as an adult
- protected const AGE_ADULT = 15;
+ protected const int AGE_ADULT = 15;
/**
* Generate the likely value of this census column, based on available information.
diff --git a/app/Census/CensusColumnConditionCanada.php b/app/Census/CensusColumnConditionCanada.php
index ac0fb6a747..f661e4c09c 100644
--- a/app/Census/CensusColumnConditionCanada.php
+++ b/app/Census/CensusColumnConditionCanada.php
@@ -25,32 +25,32 @@ namespace Fisharebest\Webtrees\Census;
class CensusColumnConditionCanada extends AbstractCensusColumnCondition
{
// Text to display for married males
- protected const HUSBAND = 'M';
+ protected const string HUSBAND = 'M';
// Text to display for married females
- protected const WIFE = 'M';
+ protected const string WIFE = 'M';
// Text to display for married unmarried males
- protected const BACHELOR = 'S';
+ protected const string BACHELOR = 'S';
// Text to display for married unmarried females
- protected const SPINSTER = 'S';
+ protected const string SPINSTER = 'S';
// Text to display for male children
- protected const BOY = 'S';
+ protected const string BOY = 'S';
// Text to display for female children
- protected const GIRL = 'S';
+ protected const string GIRL = 'S';
// Text to display for divorced individuals
- protected const DIVORCE = 'D';
+ protected const string DIVORCE = 'D';
// Text to display for divorced females
- protected const DIVORCEE = 'D';
+ protected const string DIVORCEE = 'D';
// Text to display for widowed males
- protected const WIDOWER = 'W';
+ protected const string WIDOWER = 'W';
// Text to display for widowed females
- protected const WIDOW = 'W';
+ protected const string WIDOW = 'W';
}
diff --git a/app/Census/CensusColumnConditionCanadaMarriedSingle.php b/app/Census/CensusColumnConditionCanadaMarriedSingle.php
index 9e83366e01..3445bf6405 100644
--- a/app/Census/CensusColumnConditionCanadaMarriedSingle.php
+++ b/app/Census/CensusColumnConditionCanadaMarriedSingle.php
@@ -25,32 +25,32 @@ namespace Fisharebest\Webtrees\Census;
class CensusColumnConditionCanadaMarriedSingle extends AbstractCensusColumnCondition
{
// Text to display for married males
- protected const HUSBAND = 'M';
+ protected const string HUSBAND = 'M';
// Text to display for married females
- protected const WIFE = 'M';
+ protected const string WIFE = 'M';
// Text to display for married unmarried males
- protected const BACHELOR = 'S';
+ protected const string BACHELOR = 'S';
// Text to display for married unmarried females
- protected const SPINSTER = 'S';
+ protected const string SPINSTER = 'S';
// Text to display for male children
- protected const BOY = 'S';
+ protected const string BOY = 'S';
// Text to display for female children
- protected const GIRL = 'S';
+ protected const string GIRL = 'S';
// Text to display for divorced individuals
- protected const DIVORCE = '';
+ protected const string DIVORCE = '';
// Text to display for divorced females
- protected const DIVORCEE = '';
+ protected const string DIVORCEE = '';
// Text to display for widowed males
- protected const WIDOWER = '';
+ protected const string WIDOWER = '';
// Text to display for widowed females
- protected const WIDOW = '';
+ protected const string WIDOW = '';
}
diff --git a/app/Census/CensusColumnConditionCanadaMarriedWidowed.php b/app/Census/CensusColumnConditionCanadaMarriedWidowed.php
index ef8f3ca56a..2ca0249a49 100644
--- a/app/Census/CensusColumnConditionCanadaMarriedWidowed.php
+++ b/app/Census/CensusColumnConditionCanadaMarriedWidowed.php
@@ -25,32 +25,32 @@ namespace Fisharebest\Webtrees\Census;
class CensusColumnConditionCanadaMarriedWidowed extends AbstractCensusColumnCondition
{
// Text to display for married males
- protected const HUSBAND = 'M';
+ protected const string HUSBAND = 'M';
// Text to display for married females
- protected const WIFE = 'M';
+ protected const string WIFE = 'M';
// Text to display for married unmarried males
- protected const BACHELOR = '';
+ protected const string BACHELOR = '';
// Text to display for married unmarried females
- protected const SPINSTER = '';
+ protected const string SPINSTER = '';
// Text to display for male children
- protected const BOY = '';
+ protected const string BOY = '';
// Text to display for female children
- protected const GIRL = '';
+ protected const string GIRL = '';
// Text to display for divorced individuals
- protected const DIVORCE = '';
+ protected const string DIVORCE = '';
// Text to display for divorced females
- protected const DIVORCEE = '';
+ protected const string DIVORCEE = '';
// Text to display for widowed males
- protected const WIDOWER = 'W';
+ protected const string WIDOWER = 'W';
// Text to display for widowed females
- protected const WIDOW = 'W';
+ protected const string WIDOW = 'W';
}
diff --git a/app/Census/CensusColumnConditionCanadaWidowed.php b/app/Census/CensusColumnConditionCanadaWidowed.php
index 843c24c7b9..6212a35c0f 100644
--- a/app/Census/CensusColumnConditionCanadaWidowed.php
+++ b/app/Census/CensusColumnConditionCanadaWidowed.php
@@ -25,32 +25,32 @@ namespace Fisharebest\Webtrees\Census;
class CensusColumnConditionCanadaWidowed extends AbstractCensusColumnCondition
{
// Text to display for married males
- protected const HUSBAND = '';
+ protected const string HUSBAND = '';
// Text to display for married females
- protected const WIFE = '';
+ protected const string WIFE = '';
// Text to display for married unmarried males
- protected const BACHELOR = '';
+ protected const string BACHELOR = '';
// Text to display for married unmarried females
- protected const SPINSTER = '';
+ protected const string SPINSTER = '';
// Text to display for male children
- protected const BOY = '';
+ protected const string BOY = '';
// Text to display for female children
- protected const GIRL = '';
+ protected const string GIRL = '';
// Text to display for divorced individuals
- protected const DIVORCE = '';
+ protected const string DIVORCE = '';
// Text to display for divorced females
- protected const DIVORCEE = '';
+ protected const string DIVORCEE = '';
// Text to display for widowed males
- protected const WIDOWER = 'W';
+ protected const string WIDOWER = 'W';
// Text to display for widowed females
- protected const WIDOW = 'W';
+ protected const string WIDOW = 'W';
}
diff --git a/app/Census/CensusColumnConditionCanadaWidowedFemale.php b/app/Census/CensusColumnConditionCanadaWidowedFemale.php
index 2d3efebfa1..0c2673ab3f 100644
--- a/app/Census/CensusColumnConditionCanadaWidowedFemale.php
+++ b/app/Census/CensusColumnConditionCanadaWidowedFemale.php
@@ -25,32 +25,32 @@ namespace Fisharebest\Webtrees\Census;
class CensusColumnConditionCanadaWidowedFemale extends AbstractCensusColumnCondition
{
// Text to display for married males
- protected const HUSBAND = '';
+ protected const string HUSBAND = '';
// Text to display for married females
- protected const WIFE = '';
+ protected const string WIFE = '';
// Text to display for married unmarried males
- protected const BACHELOR = '';
+ protected const string BACHELOR = '';
// Text to display for married unmarried females
- protected const SPINSTER = '';
+ protected const string SPINSTER = '';
// Text to display for male children
- protected const BOY = '';
+ protected const string BOY = '';
// Text to display for female children
- protected const GIRL = '';
+ protected const string GIRL = '';
// Text to display for divorced individuals
- protected const DIVORCE = '';
+ protected const string DIVORCE = '';
// Text to display for divorced females
- protected const DIVORCEE = '';
+ protected const string DIVORCEE = '';
// Text to display for widowed males
- protected const WIDOWER = '';
+ protected const string WIDOWER = '';
// Text to display for widowed females
- protected const WIDOW = 'W';
+ protected const string WIDOW = 'W';
}
diff --git a/app/Census/CensusColumnConditionCanadaWidowedMale.php b/app/Census/CensusColumnConditionCanadaWidowedMale.php
index 1eeb332818..3e9edbd24a 100644
--- a/app/Census/CensusColumnConditionCanadaWidowedMale.php
+++ b/app/Census/CensusColumnConditionCanadaWidowedMale.php
@@ -25,32 +25,32 @@ namespace Fisharebest\Webtrees\Census;
class CensusColumnConditionCanadaWidowedMale extends AbstractCensusColumnCondition
{
// Text to display for married males
- protected const HUSBAND = '';
+ protected const string HUSBAND = '';
// Text to display for married females
- protected const WIFE = '';
+ protected const string WIFE = '';
// Text to display for married unmarried males
- protected const BACHELOR = '';
+ protected const string BACHELOR = '';
// Text to display for married unmarried females
- protected const SPINSTER = '';
+ protected const string SPINSTER = '';
// Text to display for male children
- protected const BOY = '';
+ protected const string BOY = '';
// Text to display for female children
- protected const GIRL = '';
+ protected const string GIRL = '';
// Text to display for divorced individuals
- protected const DIVORCE = '';
+ protected const string DIVORCE = '';
// Text to display for divorced females
- protected const DIVORCEE = '';
+ protected const string DIVORCEE = '';
// Text to display for widowed males
- protected const WIDOWER = 'W';
+ protected const string WIDOWER = 'W';
// Text to display for widowed females
- protected const WIDOW = '';
+ protected const string WIDOW = '';
}
diff --git a/app/Census/CensusColumnConditionDanish.php b/app/Census/CensusColumnConditionDanish.php
index f6202b2d4e..0546092dff 100644
--- a/app/Census/CensusColumnConditionDanish.php
+++ b/app/Census/CensusColumnConditionDanish.php
@@ -25,26 +25,26 @@ namespace Fisharebest\Webtrees\Census;
class CensusColumnConditionDanish extends CensusColumnConditionEnglish
{
// Text to display for married males
- protected const HUSBAND = 'Gift';
+ protected const string HUSBAND = 'Gift';
// Text to display for married females
- protected const WIFE = 'Gift';
+ protected const string WIFE = 'Gift';
// Text to display for married unmarried males
- protected const BACHELOR = 'Ugift';
+ protected const string BACHELOR = 'Ugift';
// Text to display for married unmarried females
- protected const SPINSTER = 'Ugift';
+ protected const string SPINSTER = 'Ugift';
// Text to display for divorced males
- protected const DIVORCE = 'Skilt';
+ protected const string DIVORCE = 'Skilt';
// Text to display for divorced females
- protected const DIVORCEE = 'Skilt';
+ protected const string DIVORCEE = 'Skilt';
// Text to display for widowed males
- protected const WIDOWER = 'Gift';
+ protected const string WIDOWER = 'Gift';
// Text to display for widowed females
- protected const WIDOW = 'Gift';
+ protected const string WIDOW = 'Gift';
}
diff --git a/app/Census/CensusColumnConditionEnglish.php b/app/Census/CensusColumnConditionEnglish.php
index be24fde9a6..65aae4d816 100644
--- a/app/Census/CensusColumnConditionEnglish.php
+++ b/app/Census/CensusColumnConditionEnglish.php
@@ -25,26 +25,26 @@ namespace Fisharebest\Webtrees\Census;
class CensusColumnConditionEnglish extends AbstractCensusColumnCondition
{
// Text to display for married males
- protected const HUSBAND = 'Mar';
+ protected const string HUSBAND = 'Mar';
// Text to display for married females
- protected const WIFE = 'Mar';
+ protected const string WIFE = 'Mar';
// Text to display for married unmarried males
- protected const BACHELOR = 'Unm';
+ protected const string BACHELOR = 'Unm';
// Text to display for married unmarried females
- protected const SPINSTER = 'Unm';
+ protected const string SPINSTER = 'Unm';
// Text to display for divorced males
- protected const DIVORCE = 'Div';
+ protected const string DIVORCE = 'Div';
// Text to display for divorced females
- protected const DIVORCEE = 'Div';
+ protected const string DIVORCEE = 'Div';
// Text to display for widowed males
- protected const WIDOWER = 'Wid';
+ protected const string WIDOWER = 'Wid';
// Text to display for widowed females
- protected const WIDOW = 'Wid';
+ protected const string WIDOW = 'Wid';
}
diff --git a/app/Census/CensusColumnConditionFrenchFemme.php b/app/Census/CensusColumnConditionFrenchFemme.php
index e7cc9513d0..32405407a6 100644
--- a/app/Census/CensusColumnConditionFrenchFemme.php
+++ b/app/Census/CensusColumnConditionFrenchFemme.php
@@ -25,32 +25,32 @@ namespace Fisharebest\Webtrees\Census;
class CensusColumnConditionFrenchFemme extends AbstractCensusColumnCondition
{
// Text to display for married males
- protected const HUSBAND = '';
+ protected const string HUSBAND = '';
// Text to display for married females
- protected const WIFE = '1';
+ protected const string WIFE = '1';
// Text to display for married unmarried males
- protected const BACHELOR = '';
+ protected const string BACHELOR = '';
// Text to display for married unmarried females
- protected const SPINSTER = '';
+ protected const string SPINSTER = '';
// Text to display for male children
- protected const BOY = '';
+ protected const string BOY = '';
// Text to display for female children
- protected const GIRL = '';
+ protected const string GIRL = '';
// Text to display for divorced males
- protected const DIVORCE = '';
+ protected const string DIVORCE = '';
// Text to display for divorced females
- protected const DIVORCEE = '1';
+ protected const string DIVORCEE = '1';
// Text to display for widowed males
- protected const WIDOWER = '';
+ protected const string WIDOWER = '';
// Text to display for widowed females
- protected const WIDOW = '';
+ protected const string WIDOW = '';
}
diff --git a/app/Census/CensusColumnConditionFrenchFille.php b/app/Census/CensusColumnConditionFrenchFille.php
index 3a78203b25..d887852f44 100644
--- a/app/Census/CensusColumnConditionFrenchFille.php
+++ b/app/Census/CensusColumnConditionFrenchFille.php
@@ -25,32 +25,32 @@ namespace Fisharebest\Webtrees\Census;
class CensusColumnConditionFrenchFille extends AbstractCensusColumnCondition
{
// Text to display for married males
- protected const HUSBAND = '';
+ protected const string HUSBAND = '';
// Text to display for married females
- protected const WIFE = '';
+ protected const string WIFE = '';
// Text to display for married unmarried males
- protected const BACHELOR = '';
+ protected const string BACHELOR = '';
// Text to display for married unmarried females
- protected const SPINSTER = '1';
+ protected const string SPINSTER = '1';
// Text to display for male children
- protected const BOY = '';
+ protected const string BOY = '';
// Text to display for female children
- protected const GIRL = '1';
+ protected const string GIRL = '1';
// Text to display for divorced males
- protected const DIVORCE = '';
+ protected const string DIVORCE = '';
// Text to display for divorced females
- protected const DIVORCEE = '';
+ protected const string DIVORCEE = '';
// Text to display for widowed males
- protected const WIDOWER = '';
+ protected const string WIDOWER = '';
// Text to display for widowed females
- protected const WIDOW = '';
+ protected const string WIDOW = '';
}
diff --git a/app/Census/CensusColumnConditionFrenchGarcon.php b/app/Census/CensusColumnConditionFrenchGarcon.php
index 54a69b4290..2b110121c9 100644
--- a/app/Census/CensusColumnConditionFrenchGarcon.php
+++ b/app/Census/CensusColumnConditionFrenchGarcon.php
@@ -25,32 +25,32 @@ namespace Fisharebest\Webtrees\Census;
class CensusColumnConditionFrenchGarcon extends AbstractCensusColumnCondition
{
// Text to display for married males
- protected const HUSBAND = '';
+ protected const string HUSBAND = '';
// Text to display for married females
- protected const WIFE = '';
+ protected const string WIFE = '';
// Text to display for married unmarried males
- protected const BACHELOR = '1';
+ protected const string BACHELOR = '1';
// Text to display for married unmarried females
- protected const SPINSTER = '';
+ protected const string SPINSTER = '';
// Text to display for male children
- protected const BOY = '1';
+ protected const string BOY = '1';
// Text to display for female children
- protected const GIRL = '';
+ protected const string GIRL = '';
// Text to display for divorced males
- protected const DIVORCE = '';
+ protected const string DIVORCE = '';
// Text to display for divorced females
- protected const DIVORCEE = '';
+ protected const string DIVORCEE = '';
// Text to display for widowed males
- protected const WIDOWER = '';
+ protected const string WIDOWER = '';
// Text to display for widowed females
- protected const WIDOW = '';
+ protected const string WIDOW = '';
}
diff --git a/app/Census/CensusColumnConditionFrenchHomme.php b/app/Census/CensusColumnConditionFrenchHomme.php
index 8aa8e994fb..94c6008f33 100644
--- a/app/Census/CensusColumnConditionFrenchHomme.php
+++ b/app/Census/CensusColumnConditionFrenchHomme.php
@@ -25,32 +25,32 @@ namespace Fisharebest\Webtrees\Census;
class CensusColumnConditionFrenchHomme extends AbstractCensusColumnCondition
{
// Text to display for married males
- protected const HUSBAND = '1';
+ protected const string HUSBAND = '1';
// Text to display for married females
- protected const WIFE = '';
+ protected const string WIFE = '';
// Text to display for married unmarried males
- protected const BACHELOR = '';
+ protected const string BACHELOR = '';
// Text to display for married unmarried females
- protected const SPINSTER = '';
+ protected const string SPINSTER = '';
// Text to display for male children
- protected const BOY = '';
+ protected const string BOY = '';
// Text to display for female children
- protected const GIRL = '';
+ protected const string GIRL = '';
// Text to display for divorced males
- protected const DIVORCE = '1';
+ protected const string DIVORCE = '1';
// Text to display for divorced females
- protected const DIVORCEE = '';
+ protected const string DIVORCEE = '';
// Text to display for widowed males
- protected const WIDOWER = '';
+ protected const string WIDOWER = '';
// Text to display for widowed females
- protected const WIDOW = '';
+ protected const string WIDOW = '';
}
diff --git a/app/Census/CensusColumnConditionFrenchVeuf.php b/app/Census/CensusColumnConditionFrenchVeuf.php
index 00f9e434b6..91f63d5f65 100644
--- a/app/Census/CensusColumnConditionFrenchVeuf.php
+++ b/app/Census/CensusColumnConditionFrenchVeuf.php
@@ -25,32 +25,32 @@ namespace Fisharebest\Webtrees\Census;
class CensusColumnConditionFrenchVeuf extends AbstractCensusColumnCondition
{
// Text to display for married males
- protected const HUSBAND = '';
+ protected const string HUSBAND = '';
// Text to display for married females
- protected const WIFE = '';
+ protected const string WIFE = '';
// Text to display for married unmarried males
- protected const BACHELOR = '';
+ protected const string BACHELOR = '';
// Text to display for married unmarried females
- protected const SPINSTER = '';
+ protected const string SPINSTER = '';
// Text to display for male children
- protected const BOY = '';
+ protected const string BOY = '';
// Text to display for female children
- protected const GIRL = '';
+ protected const string GIRL = '';
// Text to display for divorced males
- protected const DIVORCE = '';
+ protected const string DIVORCE = '';
// Text to display for divorced females
- protected const DIVORCEE = '';
+ protected const string DIVORCEE = '';
// Text to display for widowed males
- protected const WIDOWER = '1';
+ protected const string WIDOWER = '1';
// Text to display for widowed females
- protected const WIDOW = '';
+ protected const string WIDOW = '';
}
diff --git a/app/Census/CensusColumnConditionFrenchVeuve.php b/app/Census/CensusColumnConditionFrenchVeuve.php
index 3a2bcbd90b..54bfe3073e 100644
--- a/app/Census/CensusColumnConditionFrenchVeuve.php
+++ b/app/Census/CensusColumnConditionFrenchVeuve.php
@@ -25,32 +25,32 @@ namespace Fisharebest\Webtrees\Census;
class CensusColumnConditionFrenchVeuve extends AbstractCensusColumnCondition
{
// Text to display for married males
- protected const HUSBAND = '';
+ protected const string HUSBAND = '';
// Text to display for married females
- protected const WIFE = '';
+ protected const string WIFE = '';
// Text to display for married unmarried males
- protected const BACHELOR = '';
+ protected const string BACHELOR = '';
// Text to display for married unmarried females
- protected const SPINSTER = '';
+ protected const string SPINSTER = '';
// Text to display for male children
- protected const BOY = '';
+ protected const string BOY = '';
// Text to display for female children
- protected const GIRL = '';
+ protected const string GIRL = '';
// Text to display for divorced males
- protected const DIVORCE = '';
+ protected const string DIVORCE = '';
// Text to display for divorced females
- protected const DIVORCEE = '';
+ protected const string DIVORCEE = '';
// Text to display for widowed males
- protected const WIDOWER = '';
+ protected const string WIDOWER = '';
// Text to display for widowed females
- protected const WIDOW = '1';
+ protected const string WIDOW = '1';
}
diff --git a/app/Census/CensusColumnConditionUs.php b/app/Census/CensusColumnConditionUs.php
index 966e960bad..357d0d30b1 100644
--- a/app/Census/CensusColumnConditionUs.php
+++ b/app/Census/CensusColumnConditionUs.php
@@ -25,32 +25,32 @@ namespace Fisharebest\Webtrees\Census;
class CensusColumnConditionUs extends CensusColumnConditionEnglish
{
// Text to display for married males
- protected const HUSBAND = 'M';
+ protected const string HUSBAND = 'M';
// Text to display for married females
- protected const WIFE = 'M';
+ protected const string WIFE = 'M';
// Text to display for married unmarried males
- protected const BACHELOR = 'S';
+ protected const string BACHELOR = 'S';
// Text to display for married unmarried females
- protected const SPINSTER = 'S';
+ protected const string SPINSTER = 'S';
// Text to display for male children
- protected const BOY = 'S';
+ protected const string BOY = 'S';
// Text to display for female children
- protected const GIRL = 'S';
+ protected const string GIRL = 'S';
// Text to display for divorced individuals
- protected const DIVORCE = 'D';
+ protected const string DIVORCE = 'D';
// Text to display for divorced females
- protected const DIVORCEE = 'D';
+ protected const string DIVORCEE = 'D';
// Text to display for widowed males
- protected const WIDOWER = 'W';
+ protected const string WIDOWER = 'W';
// Text to display for widowed females
- protected const WIDOW = 'W';
+ protected const string WIDOW = 'W';
}
diff --git a/app/Census/CensusColumnNationality.php b/app/Census/CensusColumnNationality.php
index 27ad9bf908..00431b4eb2 100644
--- a/app/Census/CensusColumnNationality.php
+++ b/app/Census/CensusColumnNationality.php
@@ -28,7 +28,7 @@ use Fisharebest\Webtrees\Individual;
class CensusColumnNationality extends AbstractCensusColumn implements CensusColumnInterface
{
// Convert a country name to a nationality
- private const NATIONALITIES = [
+ private const array NATIONALITIES = [
'England' => 'British',
'Scotland' => 'British',
'Wales' => 'British',
diff --git a/app/Census/CensusColumnRelationToHead.php b/app/Census/CensusColumnRelationToHead.php
index ceb39f1d05..7bd297591f 100644
--- a/app/Census/CensusColumnRelationToHead.php
+++ b/app/Census/CensusColumnRelationToHead.php
@@ -28,7 +28,7 @@ use Fisharebest\Webtrees\Services\RelationshipService;
*/
class CensusColumnRelationToHead extends AbstractCensusColumn implements CensusColumnInterface
{
- protected const HEAD_OF_HOUSEHOLD = '-';
+ protected const string HEAD_OF_HOUSEHOLD = '-';
/**
* Generate the likely value of this census column, based on available information.
diff --git a/app/Census/CensusColumnRelationToHeadEnglish.php b/app/Census/CensusColumnRelationToHeadEnglish.php
index 675f88e624..6436ae759d 100644
--- a/app/Census/CensusColumnRelationToHeadEnglish.php
+++ b/app/Census/CensusColumnRelationToHeadEnglish.php
@@ -24,5 +24,5 @@ namespace Fisharebest\Webtrees\Census;
*/
class CensusColumnRelationToHeadEnglish extends CensusColumnRelationToHead
{
- protected const HEAD_OF_HOUSEHOLD = 'head';
+ protected const string HEAD_OF_HOUSEHOLD = 'head';
}
diff --git a/app/Census/CensusColumnRelationToHeadGerman.php b/app/Census/CensusColumnRelationToHeadGerman.php
index 30a9d69a14..be3805041c 100644
--- a/app/Census/CensusColumnRelationToHeadGerman.php
+++ b/app/Census/CensusColumnRelationToHeadGerman.php
@@ -24,5 +24,5 @@ namespace Fisharebest\Webtrees\Census;
*/
class CensusColumnRelationToHeadGerman extends CensusColumnRelationToHead
{
- protected const HEAD_OF_HOUSEHOLD = 'Haushaltungsvorstand';
+ protected const string HEAD_OF_HOUSEHOLD = 'Haushaltungsvorstand';
}
diff --git a/app/Census/CensusColumnSexF.php b/app/Census/CensusColumnSexF.php
index 55d0dd71b7..82655c366b 100644
--- a/app/Census/CensusColumnSexF.php
+++ b/app/Census/CensusColumnSexF.php
@@ -26,11 +26,11 @@ use Fisharebest\Webtrees\Individual;
*/
class CensusColumnSexF extends AbstractCensusColumn implements CensusColumnInterface
{
- protected const MALE = 'M';
+ protected const string MALE = 'M';
- protected const FEMALE = 'F';
+ protected const string FEMALE = 'F';
- protected const X = 'X';
+ protected const string X = 'X';
/**
* Generate the likely value of this census column, based on available information.
diff --git a/app/Census/CensusColumnSexM.php b/app/Census/CensusColumnSexM.php
index aaf19b1eaf..9bea99acda 100644
--- a/app/Census/CensusColumnSexM.php
+++ b/app/Census/CensusColumnSexM.php
@@ -26,11 +26,11 @@ use Fisharebest\Webtrees\Individual;
*/
class CensusColumnSexM extends AbstractCensusColumn implements CensusColumnInterface
{
- protected const MALE = 'M';
+ protected const string MALE = 'M';
- protected const FEMALE = 'F';
+ protected const string FEMALE = 'F';
- protected const X = 'X';
+ protected const string X = 'X';
/**
* Generate the likely value of this census column, based on available information.
diff --git a/app/Census/CensusColumnSexMF.php b/app/Census/CensusColumnSexMF.php
index c23fa5277f..1c5ce72a26 100644
--- a/app/Census/CensusColumnSexMF.php
+++ b/app/Census/CensusColumnSexMF.php
@@ -26,9 +26,9 @@ use Fisharebest\Webtrees\Individual;
*/
class CensusColumnSexMF extends AbstractCensusColumn implements CensusColumnInterface
{
- protected const MALE = 'M';
+ protected const string MALE = 'M';
- protected const FEMALE = 'F';
+ protected const string FEMALE = 'F';
/**
* Generate the likely value of this census column, based on available information.
diff --git a/app/Census/CensusColumnSexMK.php b/app/Census/CensusColumnSexMK.php
index c40d3592bb..5d200b2928 100644
--- a/app/Census/CensusColumnSexMK.php
+++ b/app/Census/CensusColumnSexMK.php
@@ -24,5 +24,5 @@ namespace Fisharebest\Webtrees\Census;
*/
class CensusColumnSexMK extends CensusColumnSexMF
{
- protected const FEMALE = 'K';
+ protected const string FEMALE = 'K';
}
diff --git a/app/Census/CensusColumnSexMZ.php b/app/Census/CensusColumnSexMZ.php
index e65932070c..c7ca0f1836 100644
--- a/app/Census/CensusColumnSexMZ.php
+++ b/app/Census/CensusColumnSexMZ.php
@@ -24,5 +24,5 @@ namespace Fisharebest\Webtrees\Census;
*/
class CensusColumnSexMZ extends CensusColumnSexMF
{
- protected const FEMALE = 'Ž';
+ protected const string FEMALE = 'Ž';
}
diff --git a/app/Cli/Commands/CompilePoFiles.php b/app/Cli/Commands/CompilePoFiles.php
index 0bc92472c2..f016f69861 100644
--- a/app/Cli/Commands/CompilePoFiles.php
+++ b/app/Cli/Commands/CompilePoFiles.php
@@ -36,7 +36,7 @@ use function var_export;
class CompilePoFiles extends Command
{
- private const PO_FILE_PATTERN = Webtrees::ROOT_DIR . 'resources/lang/*/*.po';
+ private const string PO_FILE_PATTERN = Webtrees::ROOT_DIR . 'resources/lang/*/*.po';
protected function configure(): void
{
diff --git a/app/Cli/Console.php b/app/Cli/Console.php
index b7d7cc1889..f0fe104293 100644
--- a/app/Cli/Console.php
+++ b/app/Cli/Console.php
@@ -29,7 +29,7 @@ use function parse_ini_file;
final class Console extends Application
{
- private const COMMANDS = [
+ private const array COMMANDS = [
Commands\CompilePoFiles::class,
Commands\TreeCreate::class,
Commands\TreeList::class,
diff --git a/app/CommonMark/CensusTableExtension.php b/app/CommonMark/CensusTableExtension.php
index 7799249f53..6b58f9e198 100644
--- a/app/CommonMark/CensusTableExtension.php
+++ b/app/CommonMark/CensusTableExtension.php
@@ -36,9 +36,9 @@ use League\Config\ConfigurationBuilderInterface;
class CensusTableExtension implements ConfigurableExtensionInterface
{
// Keywords used to create the webtrees 1.x census-assistant notes.
- public const CA_PREFIX = '.start_formatted_area.';
- public const CA_SUFFIX = '.end_formatted_area.';
- public const TH_PREFIX = '.b.';
+ public const string CA_PREFIX = '.start_formatted_area.';
+ public const string CA_SUFFIX = '.end_formatted_area.';
+ public const string TH_PREFIX = '.b.';
/**
* The core TableExtension will already have configured tables.
diff --git a/app/Contracts/SurnameTraditionFactoryInterface.php b/app/Contracts/SurnameTraditionFactoryInterface.php
index 9b63287b24..423e9986b6 100644
--- a/app/Contracts/SurnameTraditionFactoryInterface.php
+++ b/app/Contracts/SurnameTraditionFactoryInterface.php
@@ -26,15 +26,15 @@ use Fisharebest\Webtrees\SurnameTradition\SurnameTraditionInterface;
*/
interface SurnameTraditionFactoryInterface
{
- public const PATERNAL = 'paternal';
- public const PATRILINEAL = 'patrilineal';
- public const MATRILINEAL = 'matrilineal';
- public const PORTUGUESE = 'portuguese';
- public const SPANISH = 'spanish';
- public const POLISH = 'polish';
- public const LITHUANIAN = 'lithuanian';
- public const ICELANDIC = 'icelandic';
- public const DEFAULT = '';
+ public const string PATERNAL = 'paternal';
+ public const string PATRILINEAL = 'patrilineal';
+ public const string MATRILINEAL = 'matrilineal';
+ public const string PORTUGUESE = 'portuguese';
+ public const string SPANISH = 'spanish';
+ public const string POLISH = 'polish';
+ public const string LITHUANIAN = 'lithuanian';
+ public const string ICELANDIC = 'icelandic';
+ public const string DEFAULT = '';
/**
* A list of supported surname traditions and their names.
diff --git a/app/Contracts/UserInterface.php b/app/Contracts/UserInterface.php
index 8cc27b9f40..302d15057a 100644
--- a/app/Contracts/UserInterface.php
+++ b/app/Contracts/UserInterface.php
@@ -25,32 +25,32 @@ namespace Fisharebest\Webtrees\Contracts;
interface UserInterface
{
// For historic reasons, user preferences have inconsistent and confusing names.
- public const PREF_AUTO_ACCEPT_EDITS = 'auto_accept';
- public const PREF_CONTACT_METHOD = 'contactmethod';
- public const PREF_IS_ACCOUNT_APPROVED = 'verified_by_admin';
- public const PREF_IS_ADMINISTRATOR = 'canadmin';
- public const PREF_IS_EMAIL_VERIFIED = 'verified';
- public const PREF_IS_VISIBLE_ONLINE = 'visibleonline';
- public const PREF_LANGUAGE = 'language';
- public const PREF_NEW_ACCOUNT_COMMENT = 'comment';
- public const PREF_TIMESTAMP_REGISTERED = 'reg_timestamp';
- public const PREF_TIMESTAMP_ACTIVE = 'sessiontime';
- public const PREF_TIME_ZONE = 'TIMEZONE';
- public const PREF_THEME = 'theme';
- public const PREF_VERIFICATION_TOKEN = 'reg_hashcode';
+ public const string PREF_AUTO_ACCEPT_EDITS = 'auto_accept';
+ public const string PREF_CONTACT_METHOD = 'contactmethod';
+ public const string PREF_IS_ACCOUNT_APPROVED = 'verified_by_admin';
+ public const string PREF_IS_ADMINISTRATOR = 'canadmin';
+ public const string PREF_IS_EMAIL_VERIFIED = 'verified';
+ public const string PREF_IS_VISIBLE_ONLINE = 'visibleonline';
+ public const string PREF_LANGUAGE = 'language';
+ public const string PREF_NEW_ACCOUNT_COMMENT = 'comment';
+ public const string PREF_TIMESTAMP_REGISTERED = 'reg_timestamp';
+ public const string PREF_TIMESTAMP_ACTIVE = 'sessiontime';
+ public const string PREF_TIME_ZONE = 'TIMEZONE';
+ public const string PREF_THEME = 'theme';
+ public const string PREF_VERIFICATION_TOKEN = 'reg_hashcode';
// For historic reasons, user-tree preferences have inconsistent and confusing names.
- public const PREF_TREE_ACCOUNT_XREF = 'gedcomid';
- public const PREF_TREE_DEFAULT_XREF = 'rootid';
- public const PREF_TREE_PATH_LENGTH = 'RELATIONSHIP_PATH_LENGTH';
- public const PREF_TREE_ROLE = 'canedit';
+ public const string PREF_TREE_ACCOUNT_XREF = 'gedcomid';
+ public const string PREF_TREE_DEFAULT_XREF = 'rootid';
+ public const string PREF_TREE_PATH_LENGTH = 'RELATIONSHIP_PATH_LENGTH';
+ public const string PREF_TREE_ROLE = 'canedit';
// For historic reasons, roles have inconsistent and confusing names.
- public const ROLE_VISITOR = 'none';
- public const ROLE_MEMBER = 'access';
- public const ROLE_EDITOR = 'edit';
- public const ROLE_MODERATOR = 'accept';
- public const ROLE_MANAGER = 'admin';
+ public const string ROLE_VISITOR = 'none';
+ public const string ROLE_MEMBER = 'access';
+ public const string ROLE_EDITOR = 'edit';
+ public const string ROLE_MODERATOR = 'accept';
+ public const string ROLE_MANAGER = 'admin';
/**
* The user‘s internal identifier
diff --git a/app/DB.php b/app/DB.php
index 6db8e8ae0f..52c35316e3 100644
--- a/app/DB.php
+++ b/app/DB.php
@@ -33,33 +33,33 @@ use SensitiveParameter;
class DB extends Manager
{
// Supported drivers
- public const MYSQL = 'mysql';
- public const POSTGRES = 'pgsql';
- public const SQLITE = 'sqlite';
- public const SQL_SERVER = 'sqlsrv';
+ public const string MYSQL = 'mysql';
+ public const string POSTGRES = 'pgsql';
+ public const string SQLITE = 'sqlite';
+ public const string SQL_SERVER = 'sqlsrv';
- private const COLLATION_ASCII = [
+ private const array COLLATION_ASCII = [
self::MYSQL => 'ascii_bin',
self::POSTGRES => 'C',
self::SQLITE => 'C',
self::SQL_SERVER => 'Latin1_General_Bin',
];
- private const COLLATION_UTF8 = [
+ private const array COLLATION_UTF8 = [
self::MYSQL => 'utf8mb4_unicode_ci',
self::POSTGRES => 'und-x-icu',
self::SQLITE => 'nocase',
self::SQL_SERVER => 'utf8_CI_AI',
];
- private const REGEX_OPERATOR = [
+ private const array REGEX_OPERATOR = [
self::MYSQL => 'REGEXP',
self::POSTGRES => '~',
self::SQLITE => 'REGEXP',
self::SQL_SERVER => 'REGEXP',
];
- private const DRIVER_INITIALIZATION = [
+ private const array DRIVER_INITIALIZATION = [
self::MYSQL => "SET NAMES utf8mb4, sql_mode := 'ANSI,STRICT_ALL_TABLES', TIME_ZONE := '+00:00', SQL_BIG_SELECTS := 1, GROUP_CONCAT_MAX_LEN := 1048576",
self::POSTGRES => '',
self::SQLITE => 'PRAGMA foreign_keys = ON',
diff --git a/app/Date/AbstractCalendarDate.php b/app/Date/AbstractCalendarDate.php
index 2b2dbdef91..d4211d5ac9 100644
--- a/app/Date/AbstractCalendarDate.php
+++ b/app/Date/AbstractCalendarDate.php
@@ -54,11 +54,11 @@ use function trim;
abstract class AbstractCalendarDate
{
// GEDCOM calendar escape
- public const ESCAPE = '@#DUNKNOWN@';
+ public const string ESCAPE = '@#DUNKNOWN@';
// Convert GEDCOM month names to month numbers.
- protected const MONTH_TO_NUMBER = [];
- protected const NUMBER_TO_MONTH = [];
+ protected const array MONTH_TO_NUMBER = [];
+ protected const array NUMBER_TO_MONTH = [];
protected CalendarInterface $calendar;
diff --git a/app/Date/AbstractGregorianJulianDate.php b/app/Date/AbstractGregorianJulianDate.php
index 3df594a7cd..00615a8294 100644
--- a/app/Date/AbstractGregorianJulianDate.php
+++ b/app/Date/AbstractGregorianJulianDate.php
@@ -27,7 +27,7 @@ use Fisharebest\Webtrees\I18N;
abstract class AbstractGregorianJulianDate extends AbstractCalendarDate
{
// Convert GEDCOM month names to month numbers
- protected const MONTH_ABBREVIATIONS = [
+ protected const array MONTH_ABBREVIATIONS = [
'' => 0,
'JAN' => 1,
'FEB' => 2,
@@ -43,7 +43,7 @@ abstract class AbstractGregorianJulianDate extends AbstractCalendarDate
'DEC' => 12,
];
- protected const MONTH_TO_NUMBER = [
+ protected const array MONTH_TO_NUMBER = [
'JAN' => 1,
'FEB' => 2,
'MAR' => 3,
@@ -58,7 +58,7 @@ abstract class AbstractGregorianJulianDate extends AbstractCalendarDate
'DEC' => 12,
];
- protected const NUMBER_TO_MONTH = [
+ protected const array NUMBER_TO_MONTH = [
1 => 'JAN',
2 => 'FEB',
3 => 'MAR',
diff --git a/app/Date/FrenchDate.php b/app/Date/FrenchDate.php
index 3c5471d8c9..59884c23bc 100644
--- a/app/Date/FrenchDate.php
+++ b/app/Date/FrenchDate.php
@@ -29,10 +29,10 @@ use Fisharebest\Webtrees\Services\RomanNumeralsService;
class FrenchDate extends AbstractCalendarDate
{
// GEDCOM calendar escape
- public const ESCAPE = '@#DFRENCH R@';
+ public const string ESCAPE = '@#DFRENCH R@';
// Convert GEDCOM month names to month numbers
- protected const MONTH_TO_NUMBER = [
+ protected const array MONTH_TO_NUMBER = [
'VEND' => 1,
'BRUM' => 2,
'FRIM' => 3,
@@ -48,7 +48,7 @@ class FrenchDate extends AbstractCalendarDate
'COMP' => 13,
];
- protected const NUMBER_TO_MONTH = [
+ protected const array NUMBER_TO_MONTH = [
1 => 'VEND',
2 => 'BRUM',
3 => 'FRIM',
diff --git a/app/Date/GregorianDate.php b/app/Date/GregorianDate.php
index d964c4e487..6e1e3f093b 100644
--- a/app/Date/GregorianDate.php
+++ b/app/Date/GregorianDate.php
@@ -27,7 +27,7 @@ use Fisharebest\ExtCalendar\GregorianCalendar;
class GregorianDate extends AbstractGregorianJulianDate
{
// GEDCOM calendar escape
- public const ESCAPE = '@#DGREGORIAN@';
+ public const string ESCAPE = '@#DGREGORIAN@';
/**
* Create a date from either:
diff --git a/app/Date/HijriDate.php b/app/Date/HijriDate.php
index 9d1cdcfb0b..141733e84e 100644
--- a/app/Date/HijriDate.php
+++ b/app/Date/HijriDate.php
@@ -31,10 +31,10 @@ use Fisharebest\Webtrees\I18N;
class HijriDate extends AbstractCalendarDate
{
// GEDCOM calendar escape
- public const ESCAPE = '@#DHIJRI@';
+ public const string ESCAPE = '@#DHIJRI@';
// Convert GEDCOM month names to month numbers
- protected const MONTH_TO_NUMBER = [
+ protected const array MONTH_TO_NUMBER = [
'MUHAR' => 1,
'SAFAR' => 2,
'RABIA' => 3,
@@ -49,7 +49,7 @@ class HijriDate extends AbstractCalendarDate
'DHUAH' => 12,
];
- protected const NUMBER_TO_MONTH = [
+ protected const array NUMBER_TO_MONTH = [
1 => 'MUHAR',
2 => 'SAFAR',
3 => 'RABIA',
diff --git a/app/Date/JalaliDate.php b/app/Date/JalaliDate.php
index 6860a11d4b..c13c1efe96 100644
--- a/app/Date/JalaliDate.php
+++ b/app/Date/JalaliDate.php
@@ -28,10 +28,10 @@ use Fisharebest\Webtrees\I18N;
class JalaliDate extends AbstractCalendarDate
{
// GEDCOM calendar escape
- public const ESCAPE = '@#DJALALI@';
+ public const string ESCAPE = '@#DJALALI@';
// Convert GEDCOM month names to month numbers
- protected const MONTH_TO_NUMBER = [
+ protected const array MONTH_TO_NUMBER = [
'FARVA' => 1,
'ORDIB' => 2,
'KHORD' => 3,
@@ -46,7 +46,7 @@ class JalaliDate extends AbstractCalendarDate
'ESFAN' => 12,
];
- protected const NUMBER_TO_MONTH = [
+ protected const array NUMBER_TO_MONTH = [
1 => 'FARVA',
2 => 'ORDIB',
3 => 'KHORD',
diff --git a/app/Date/JewishDate.php b/app/Date/JewishDate.php
index 7ac3eee51c..79bb21ba65 100644
--- a/app/Date/JewishDate.php
+++ b/app/Date/JewishDate.php
@@ -28,10 +28,10 @@ use Fisharebest\Webtrees\I18N;
class JewishDate extends AbstractCalendarDate
{
// GEDCOM calendar escape
- public const ESCAPE = '@#DHEBREW@';
+ public const string ESCAPE = '@#DHEBREW@';
// Convert GEDCOM month names to month numbers
- protected const MONTH_TO_NUMBER = [
+ protected const array MONTH_TO_NUMBER = [
'TSH' => 1,
'CSH' => 2,
'KSL' => 3,
@@ -47,7 +47,7 @@ class JewishDate extends AbstractCalendarDate
'ELL' => 13,
];
- protected const NUMBER_TO_MONTH = [
+ protected const array NUMBER_TO_MONTH = [
1 => 'TSH',
2 => 'CSH',
3 => 'KSL',
diff --git a/app/Date/JulianDate.php b/app/Date/JulianDate.php
index f38307282f..eed0048f97 100644
--- a/app/Date/JulianDate.php
+++ b/app/Date/JulianDate.php
@@ -28,7 +28,7 @@ use Fisharebest\Webtrees\I18N;
class JulianDate extends AbstractGregorianJulianDate
{
// GEDCOM calendar escape
- public const ESCAPE = '@#DJULIAN@';
+ public const string ESCAPE = '@#DJULIAN@';
// For dates recorded in new-style/old-style format, e.g. 2 FEB 1743/44
private bool $new_old_style = false;
diff --git a/app/Date/RomanDate.php b/app/Date/RomanDate.php
index 3434eba62a..3ffddd1f30 100644
--- a/app/Date/RomanDate.php
+++ b/app/Date/RomanDate.php
@@ -29,7 +29,7 @@ namespace Fisharebest\Webtrees\Date;
class RomanDate extends JulianDate
{
// GEDCOM calendar escape
- public const ESCAPE = '@#DROMAN@';
+ public const string ESCAPE = '@#DROMAN@';
/**
* Generate the %E format for a date.
diff --git a/app/Elements/AbstractElement.php b/app/Elements/AbstractElement.php
index 35fffd1ccc..18ede4ba3c 100644
--- a/app/Elements/AbstractElement.php
+++ b/app/Elements/AbstractElement.php
@@ -42,10 +42,10 @@ use function view;
abstract class AbstractElement implements ElementInterface
{
// HTML attributes for an <input>
- protected const MAXIMUM_LENGTH = false;
- protected const PATTERN = false;
+ protected const int|false MAXIMUM_LENGTH = false;
+ protected const string|false PATTERN = false;
- private const WHITESPACE_LINE = [
+ private const array WHITESPACE_LINE = [
"\t" => ' ',
"\n" => ' ',
"\r" => ' ',
@@ -55,7 +55,7 @@ abstract class AbstractElement implements ElementInterface
"\u{2029}" => ' ', // PS - paragraph separator
];
- private const WHITESPACE_TEXT = [
+ private const array WHITESPACE_TEXT = [
"\t" => ' ',
"\r\n" => "\n",
"\r" => "\n",
@@ -66,7 +66,7 @@ abstract class AbstractElement implements ElementInterface
];
// Which child elements can appear under this element.
- protected const SUBTAGS = [];
+ protected const array SUBTAGS = [];
// A label to describe this element
private string $label;
diff --git a/app/Elements/AbstractExternalLink.php b/app/Elements/AbstractExternalLink.php
index b7b9ed9b23..81e1434bdf 100644
--- a/app/Elements/AbstractExternalLink.php
+++ b/app/Elements/AbstractExternalLink.php
@@ -28,7 +28,7 @@ use function e;
*/
class AbstractExternalLink extends AbstractElement
{
- protected const EXTERNAL_URL = 'https://www.example.com/{ID}';
+ protected const string EXTERNAL_URL = 'https://www.example.com/{ID}';
/**
* Display the value of this type of element.
diff --git a/app/Elements/AddressCity.php b/app/Elements/AddressCity.php
index ab428ccb44..b2da9dcaa3 100644
--- a/app/Elements/AddressCity.php
+++ b/app/Elements/AddressCity.php
@@ -25,5 +25,5 @@ namespace Fisharebest\Webtrees\Elements;
*/
class AddressCity extends AbstractElement
{
- protected const MAXIMUM_LENGTH = 60;
+ protected const int MAXIMUM_LENGTH = 60;
}
diff --git a/app/Elements/AddressCountry.php b/app/Elements/AddressCountry.php
index 9bba67cc12..cebaa5d92f 100644
--- a/app/Elements/AddressCountry.php
+++ b/app/Elements/AddressCountry.php
@@ -27,5 +27,5 @@ namespace Fisharebest\Webtrees\Elements;
*/
class AddressCountry extends AbstractElement
{
- protected const MAXIMUM_LENGTH = 60;
+ protected const int MAXIMUM_LENGTH = 60;
}
diff --git a/app/Elements/AddressEmail.php b/app/Elements/AddressEmail.php
index 0f8361db3f..038efc01b6 100644
--- a/app/Elements/AddressEmail.php
+++ b/app/Elements/AddressEmail.php
@@ -29,7 +29,7 @@ use function e;
*/
class AddressEmail extends AbstractElement
{
- protected const MAXIMUM_LENGTH = 120;
+ protected const int MAXIMUM_LENGTH = 120;
/**
* Display the value of this type of element.
diff --git a/app/Elements/AddressFax.php b/app/Elements/AddressFax.php
index b1feb2d898..dd0cc76959 100644
--- a/app/Elements/AddressFax.php
+++ b/app/Elements/AddressFax.php
@@ -30,7 +30,7 @@ use function preg_match;
*/
class AddressFax extends AbstractElement
{
- protected const MAXIMUM_LENGTH = 60;
+ protected const int MAXIMUM_LENGTH = 60;
/**
* Display the value of this type of element.
diff --git a/app/Elements/AddressLine.php b/app/Elements/AddressLine.php
index 88d014d809..5dce723a00 100644
--- a/app/Elements/AddressLine.php
+++ b/app/Elements/AddressLine.php
@@ -31,9 +31,9 @@ use Fisharebest\Webtrees\Tree;
*/
class AddressLine extends AbstractElement
{
- protected const MAXIMUM_LENGTH = 60;
+ protected const int MAXIMUM_LENGTH = 60;
- protected const SUBTAGS = [
+ protected const array SUBTAGS = [
'ADR1' => '0:1:?',
'ADR2' => '0:1:?',
'ADR3' => '0:1:?',
diff --git a/app/Elements/AddressLine1.php b/app/Elements/AddressLine1.php
index da68e4b38f..a3203318b9 100644
--- a/app/Elements/AddressLine1.php
+++ b/app/Elements/AddressLine1.php
@@ -26,5 +26,5 @@ namespace Fisharebest\Webtrees\Elements;
*/
class AddressLine1 extends AbstractElement
{
- protected const MAXIMUM_LENGTH = 60;
+ protected const int MAXIMUM_LENGTH = 60;
}
diff --git a/app/Elements/AddressLine2.php b/app/Elements/AddressLine2.php
index f867961fce..e9d51e4d9f 100644
--- a/app/Elements/AddressLine2.php
+++ b/app/Elements/AddressLine2.php
@@ -26,5 +26,5 @@ namespace Fisharebest\Webtrees\Elements;
*/
class AddressLine2 extends AbstractElement
{
- protected const MAXIMUM_LENGTH = 60;
+ protected const int MAXIMUM_LENGTH = 60;
}
diff --git a/app/Elements/AddressLine3.php b/app/Elements/AddressLine3.php
index 2c1bcba831..5174b539b9 100644
--- a/app/Elements/AddressLine3.php
+++ b/app/Elements/AddressLine3.php
@@ -26,5 +26,5 @@ namespace Fisharebest\Webtrees\Elements;
*/
class AddressLine3 extends AbstractElement
{
- protected const MAXIMUM_LENGTH = 60;
+ protected const int MAXIMUM_LENGTH = 60;
}
diff --git a/app/Elements/AddressPostalCode.php b/app/Elements/AddressPostalCode.php
index d8ad09359d..bca22dbd7e 100644
--- a/app/Elements/AddressPostalCode.php
+++ b/app/Elements/AddressPostalCode.php
@@ -28,7 +28,7 @@ use function strtoupper;
*/
class AddressPostalCode extends AbstractElement
{
- protected const MAXIMUM_LENGTH = 10;
+ protected const int MAXIMUM_LENGTH = 10;
/**
* Convert a value to a canonical form.
diff --git a/app/Elements/AddressState.php b/app/Elements/AddressState.php
index c525e58451..56f36b5a71 100644
--- a/app/Elements/AddressState.php
+++ b/app/Elements/AddressState.php
@@ -25,5 +25,5 @@ namespace Fisharebest\Webtrees\Elements;
*/
class AddressState extends AbstractElement
{
- protected const MAXIMUM_LENGTH = 60;
+ protected const int MAXIMUM_LENGTH = 60;
}
diff --git a/app/Elements/AddressWebPage.php b/app/Elements/AddressWebPage.php
index ef485c70d4..26a0a92c5f 100644
--- a/app/Elements/AddressWebPage.php
+++ b/app/Elements/AddressWebPage.php
@@ -27,9 +27,9 @@ use Fisharebest\Webtrees\Tree;
*/
class AddressWebPage extends AbstractElement
{
- protected const MAXIMUM_LENGTH = 120;
+ protected const int MAXIMUM_LENGTH = 120;
- protected const PATTERN = 'https?://.*';
+ protected const string PATTERN = 'https?://.*';
/**
* Display the value of this type of element.
diff --git a/app/Elements/Adoption.php b/app/Elements/Adoption.php
index 42ecdaf965..abdc5a3438 100644
--- a/app/Elements/Adoption.php
+++ b/app/Elements/Adoption.php
@@ -24,7 +24,7 @@ namespace Fisharebest\Webtrees\Elements;
*/
class Adoption extends AbstractEventElement
{
- protected const SUBTAGS = [
+ protected const array SUBTAGS = [
'TYPE' => '0:1:?',
'FAMC' => '0:1',
'DATE' => '0:1',
diff --git a/app/Elements/AdultChristening.php b/app/Elements/AdultChristening.php
index 696b4512f3..8fc3b3d9bc 100644
--- a/app/Elements/AdultChristening.php
+++ b/app/Elements/AdultChristening.php
@@ -24,7 +24,7 @@ namespace Fisharebest\Webtrees\Elements;
*/
class AdultChristening extends AbstractEventElement
{
- protected const SUBTAGS = [
+ protected const array SUBTAGS = [
'TYPE' => '0:1:?',
'DATE' => '0:1',
'AGE' => '0:1',
diff --git a/app/Elements/AgeAtEvent.php b/app/Elements/AgeAtEvent.php
index f0e5e3e0c0..26a216b8ce 100644
--- a/app/Elements/AgeAtEvent.php
+++ b/app/Elements/AgeAtEvent.php
@@ -49,9 +49,9 @@ use function strtoupper;
*/
class AgeAtEvent extends AbstractElement
{
- protected const MAXIMUM_LENGTH = 12;
+ protected const int MAXIMUM_LENGTH = 12;
- protected const KEYWORDS = ['CHILD', 'INFANT', 'STILLBORN'];
+ protected const array KEYWORDS = ['CHILD', 'INFANT', 'STILLBORN'];
/**
* Convert a value to a canonical form.
diff --git a/app/Elements/AncestralFileNumber.php b/app/Elements/AncestralFileNumber.php
index 7a7834c75c..892173e89a 100644
--- a/app/Elements/AncestralFileNumber.php
+++ b/app/Elements/AncestralFileNumber.php
@@ -28,9 +28,9 @@ use function strtoupper;
*/
class AncestralFileNumber extends AbstractExternalLink
{
- protected const EXTERNAL_URL = 'https://www.familysearch.org/search/family-trees/results?q.afnId={ID}';
+ protected const string EXTERNAL_URL = 'https://www.familysearch.org/search/family-trees/results?q.afnId={ID}';
- protected const MAXIMUM_LENGTH = 12;
+ protected const int MAXIMUM_LENGTH = 12;
/**
* Convert a value to a canonical form.
diff --git a/app/Elements/Annulment.php b/app/Elements/Annulment.php
index c1dc22d6c4..a7fe35d849 100644
--- a/app/Elements/Annulment.php
+++ b/app/Elements/Annulment.php
@@ -24,7 +24,7 @@ namespace Fisharebest\Webtrees\Elements;
*/
class Annulment extends AbstractEventElement
{
- protected const SUBTAGS = [
+ protected const array SUBTAGS = [
'TYPE' => '0:1:?',
'DATE' => '0:1',
'HUSB' => '0:1',
diff --git a/app/Elements/ApprovedSystemId.php b/app/Elements/ApprovedSystemId.php
index 81c5e62577..5cf0f7a385 100644
--- a/app/Elements/ApprovedSystemId.php
+++ b/app/Elements/ApprovedSystemId.php
@@ -31,7 +31,7 @@ use Fisharebest\Webtrees\Webtrees;
*/
class ApprovedSystemId extends AbstractElement
{
- protected const MAXIMUM_LENGTH = 20;
+ protected const int MAXIMUM_LENGTH = 20;
/**
* Create a default value for this element.
diff --git a/app/Elements/AttributeDescriptor.php b/app/Elements/AttributeDescriptor.php
index e33737327b..ad96cad4d5 100644
--- a/app/Elements/AttributeDescriptor.php
+++ b/app/Elements/AttributeDescriptor.php
@@ -31,7 +31,7 @@ namespace Fisharebest\Webtrees\Elements;
*/
class AttributeDescriptor extends AbstractElement
{
- protected const SUBTAGS = [
+ protected const array SUBTAGS = [
'TYPE' => '0:1',
'DATE' => '0:1',
'PLAC' => '0:1',
diff --git a/app/Elements/AutomatedRecordId.php b/app/Elements/AutomatedRecordId.php
index 70aed865e1..d7ff6c7c2e 100644
--- a/app/Elements/AutomatedRecordId.php
+++ b/app/Elements/AutomatedRecordId.php
@@ -28,5 +28,5 @@ namespace Fisharebest\Webtrees\Elements;
*/
class AutomatedRecordId extends AbstractElement
{
- protected const MAXIMUM_LENGTH = 12;
+ protected const int MAXIMUM_LENGTH = 12;
}
diff --git a/app/Elements/Baptism.php b/app/Elements/Baptism.php
index 811c88a932..b1d46b20b4 100644
--- a/app/Elements/Baptism.php
+++ b/app/Elements/Baptism.php
@@ -24,7 +24,7 @@ namespace Fisharebest\Webtrees\Elements;
*/
class Baptism extends AbstractEventElement
{
- protected const SUBTAGS = [
+ protected const array SUBTAGS = [
'TYPE' => '0:1:?',
'DATE' => '0:1',
'AGE' => '0:1',
diff --git a/app/Elements/BarMitzvah.php b/app/Elements/BarMitzvah.php
index 5fa7a814d2..b52bf08d21 100644
--- a/app/Elements/BarMitzvah.php
+++ b/app/Elements/BarMitzvah.php
@@ -24,7 +24,7 @@ namespace Fisharebest\Webtrees\Elements;
*/
class BarMitzvah extends AbstractEventElement
{
- protected const SUBTAGS = [
+ protected const array SUBTAGS = [
'TYPE' => '0:1:?',
'DATE' => '0:1',
'AGE' => '0:1',
diff --git a/app/Elements/BasMitzvah.php b/app/Elements/BasMitzvah.php
index 4a21ba4528..767486184e 100644
--- a/app/Elements/BasMitzvah.php
+++ b/app/Elements/BasMitzvah.php
@@ -24,7 +24,7 @@ namespace Fisharebest\Webtrees\Elements;
*/
class BasMitzvah extends AbstractEventElement
{
- protected const SUBTAGS = [
+ protected const array SUBTAGS = [
'TYPE' => '0:1:?',
'DATE' => '0:1',
'AGE' => '0:1',
diff --git a/app/Elements/Birth.php b/app/Elements/Birth.php
index 75cd3ebdca..2bdd945acf 100644
--- a/app/Elements/Birth.php
+++ b/app/Elements/Birth.php
@@ -24,7 +24,7 @@ namespace Fisharebest\Webtrees\Elements;
*/
class Birth extends AbstractEventElement
{
- protected const SUBTAGS = [
+ protected const array SUBTAGS = [
'TYPE' => '0:1:?',
'FAMC' => '0:1:?',
'DATE' => '0:1',
diff --git a/app/Elements/Blessing.php b/app/Elements/Blessing.php
index 68cf1fa715..d7153dc5d5 100644
--- a/app/Elements/Blessing.php
+++ b/app/Elements/Blessing.php
@@ -24,7 +24,7 @@ namespace Fisharebest\Webtrees\Elements;
*/
class Blessing extends AbstractEventElement
{
- protected const SUBTAGS = [
+ protected const array SUBTAGS = [
'TYPE' => '0:1:?',
'DATE' => '0:1',
'AGE' => '0:1',
diff --git a/app/Elements/Burial.php b/app/Elements/Burial.php
index 11c25ec52a..a41c5f341f 100644
--- a/app/Elements/Burial.php
+++ b/app/Elements/Burial.php
@@ -24,7 +24,7 @@ namespace Fisharebest\Webtrees\Elements;
*/
class Burial extends AbstractEventElement
{
- protected const SUBTAGS = [
+ protected const array SUBTAGS = [
'TYPE' => '0:1:?',
'DATE' => '0:1',
'AGE' => '0:1:?',
diff --git a/app/Elements/CasteName.php b/app/Elements/CasteName.php
index 0fa1816d23..05dc5de1dd 100644
--- a/app/Elements/CasteName.php
+++ b/app/Elements/CasteName.php
@@ -27,9 +27,9 @@ namespace Fisharebest\Webtrees\Elements;
*/
class CasteName extends AbstractElement
{
- protected const MAXIMUM_LENGTH = 90;
+ protected const int MAXIMUM_LENGTH = 90;
- protected const SUBTAGS = [
+ protected const array SUBTAGS = [
'TYPE' => '0:1:?',
'DATE' => '0:1',
'PLAC' => '0:1',
diff --git a/app/Elements/CauseOfEvent.php b/app/Elements/CauseOfEvent.php
index 3116908da9..26cd6da774 100644
--- a/app/Elements/CauseOfEvent.php
+++ b/app/Elements/CauseOfEvent.php
@@ -27,5 +27,5 @@ namespace Fisharebest\Webtrees\Elements;
*/
class CauseOfEvent extends AbstractElement
{
- protected const MAXIMUM_LENGTH = 90;
+ protected const int MAXIMUM_LENGTH = 90;
}
diff --git a/app/Elements/Census.php b/app/Elements/Census.php
index bc88a448a0..f758ddaf4d 100644
--- a/app/Elements/Census.php
+++ b/app/Elements/Census.php
@@ -34,7 +34,7 @@ use Psr\Http\Message\ServerRequestInterface;
*/
class Census extends AbstractEventElement
{
- protected const SUBTAGS = [
+ protected const array SUBTAGS = [
'TYPE' => '0:1:?',
'DATE' => '0:1',
'AGE' => '0:1',
diff --git a/app/Elements/Change.php b/app/Elements/Change.php
index 0283a35ad8..38ad5abe9a 100644
--- a/app/Elements/Change.php
+++ b/app/Elements/Change.php
@@ -24,7 +24,7 @@ namespace Fisharebest\Webtrees\Elements;
*/
class Change extends EmptyElement
{
- protected const SUBTAGS = [
+ protected const array SUBTAGS = [
'DATE' => '1:1',
'NOTE' => '0:M:?',
];
diff --git a/app/Elements/ChangeDate.php b/app/Elements/ChangeDate.php
index 20cefd9bdd..db7f67860e 100644
--- a/app/Elements/ChangeDate.php
+++ b/app/Elements/ChangeDate.php
@@ -26,7 +26,7 @@ namespace Fisharebest\Webtrees\Elements;
*/
class ChangeDate extends DateValueToday
{
- protected const SUBTAGS = [
+ protected const array SUBTAGS = [
'TIME' => '1:1',
];
diff --git a/app/Elements/ChildLinkageStatus.php b/app/Elements/ChildLinkageStatus.php
index 65440bf768..5ebd318426 100644
--- a/app/Elements/ChildLinkageStatus.php
+++ b/app/Elements/ChildLinkageStatus.php
@@ -37,9 +37,9 @@ use function strtoupper;
*/
class ChildLinkageStatus extends AbstractElement
{
- public const VALUE_CHALLENGED = 'CHALLENGED';
- public const VALUE_DISPROVEN = 'DISPROVEN';
- public const VALUE_PROVEN = 'PROVEN';
+ public const string VALUE_CHALLENGED = 'CHALLENGED';
+ public const string VALUE_DISPROVEN = 'DISPROVEN';
+ public const string VALUE_PROVEN = 'PROVEN';
/**
* Convert a value to a canonical form.
diff --git a/app/Elements/Christening.php b/app/Elements/Christening.php
index 3d84ab81a0..c17d68ff3f 100644
--- a/app/Elements/Christening.php
+++ b/app/Elements/Christening.php
@@ -24,7 +24,7 @@ namespace Fisharebest\Webtrees\Elements;
*/
class Christening extends AbstractEventElement
{
- protected const SUBTAGS = [
+ protected const array SUBTAGS = [
'TYPE' => '0:1:?',
'DATE' => '0:1',
'AGE' => '0:1',
diff --git a/app/Elements/Confirmation.php b/app/Elements/Confirmation.php
index d5f5c771a0..fcb7ddff87 100644
--- a/app/Elements/Confirmation.php
+++ b/app/Elements/Confirmation.php
@@ -24,7 +24,7 @@ namespace Fisharebest\Webtrees\Elements;
*/
class Confirmation extends AbstractEventElement
{
- protected const SUBTAGS = [
+ protected const array SUBTAGS = [
'TYPE' => '0:1:?',
'DATE' => '0:1',
'AGE' => '0:1',
diff --git a/app/Elements/Coordinates.php b/app/Elements/Coordinates.php
index 51ade5fd2a..ecb7575e25 100644
--- a/app/Elements/Coordinates.php
+++ b/app/Elements/Coordinates.php
@@ -24,7 +24,7 @@ namespace Fisharebest\Webtrees\Elements;
*/
class Coordinates extends EmptyElement
{
- protected const SUBTAGS = [
+ protected const array SUBTAGS = [
'LONG' => '1:1',
'LATI' => '1:1',
];
diff --git a/app/Elements/CopyrightFile.php b/app/Elements/CopyrightFile.php
index 4de8c456f0..878749a20e 100644
--- a/app/Elements/CopyrightFile.php
+++ b/app/Elements/CopyrightFile.php
@@ -26,5 +26,5 @@ namespace Fisharebest\Webtrees\Elements;
*/
class CopyrightFile extends AbstractElement
{
- protected const MAXIMUM_LENGTH = 90;
+ protected const int MAXIMUM_LENGTH = 90;
}
diff --git a/app/Elements/CopyrightSourceData.php b/app/Elements/CopyrightSourceData.php
index d7f287a402..c4d79d818d 100644
--- a/app/Elements/CopyrightSourceData.php
+++ b/app/Elements/CopyrightSourceData.php
@@ -28,5 +28,5 @@ namespace Fisharebest\Webtrees\Elements;
*/
class CopyrightSourceData extends AbstractElement
{
- protected const MAXIMUM_LENGTH = 90;
+ protected const int MAXIMUM_LENGTH = 90;
}
diff --git a/app/Elements/CountOfChildren.php b/app/Elements/CountOfChildren.php
index 506aae670b..b742faac48 100644
--- a/app/Elements/CountOfChildren.php
+++ b/app/Elements/CountOfChildren.php
@@ -31,7 +31,7 @@ use Fisharebest\Webtrees\Tree;
*/
class CountOfChildren extends AbstractElement
{
- protected const SUBTAGS = [
+ protected const array SUBTAGS = [
'TYPE' => '0:1:?',
'DATE' => '0:1',
'PLAC' => '0:1:?',
diff --git a/app/Elements/CountOfChildrenFam.php b/app/Elements/CountOfChildrenFam.php
index f4a1a35c6a..5fd3827425 100644
--- a/app/Elements/CountOfChildrenFam.php
+++ b/app/Elements/CountOfChildrenFam.php
@@ -30,5 +30,5 @@ namespace Fisharebest\Webtrees\Elements;
class CountOfChildrenFam extends CountOfChildren
{
// FAM:NCHI has no subtags, unlike INDI:NCHI
- protected const SUBTAGS = [];
+ protected const array SUBTAGS = [];
}
diff --git a/app/Elements/CountOfMarriages.php b/app/Elements/CountOfMarriages.php
index 45607f7604..a7acb49216 100644
--- a/app/Elements/CountOfMarriages.php
+++ b/app/Elements/CountOfMarriages.php
@@ -29,7 +29,7 @@ use Fisharebest\Webtrees\Tree;
*/
class CountOfMarriages extends AbstractElement
{
- protected const SUBTAGS = [
+ protected const array SUBTAGS = [
'TYPE' => '0:1:?',
'DATE' => '0:1',
'PLAC' => '0:1:?',
diff --git a/app/Elements/Creation.php b/app/Elements/Creation.php
index c23e5a34bd..1a0cbd3278 100644
--- a/app/Elements/Creation.php
+++ b/app/Elements/Creation.php
@@ -24,7 +24,7 @@ namespace Fisharebest\Webtrees\Elements;
*/
class Creation extends EmptyElement
{
- protected const SUBTAGS = [
+ protected const array SUBTAGS = [
'DATE' => '1:1',
];
}
diff --git a/app/Elements/Cremation.php b/app/Elements/Cremation.php
index 155a0ae33d..5f3eb46289 100644
--- a/app/Elements/Cremation.php
+++ b/app/Elements/Cremation.php
@@ -24,7 +24,7 @@ namespace Fisharebest\Webtrees\Elements;
*/
class Cremation extends AbstractEventElement
{
- protected const SUBTAGS = [
+ protected const array SUBTAGS = [
'TYPE' => '0:1:?',
'DATE' => '0:1',
'AGE' => '0:1:?',
diff --git a/app/Elements/CustomEvent.php b/app/Elements/CustomEvent.php
index 8c860c066f..96b2ab08e0 100644
--- a/app/Elements/CustomEvent.php
+++ b/app/Elements/CustomEvent.php
@@ -24,7 +24,7 @@ namespace Fisharebest\Webtrees\Elements;
*/
class CustomEvent extends AbstractEventElement
{
- protected const SUBTAGS = [
+ protected const array SUBTAGS = [
'TYPE' => '0:1',
'DATE' => '0:1',
'AGE' => '0:1',
diff --git a/app/Elements/CustomFact.php b/app/Elements/CustomFact.php
index 11ed7cca2c..08504f08f2 100644
--- a/app/Elements/CustomFact.php
+++ b/app/Elements/CustomFact.php
@@ -24,7 +24,7 @@ namespace Fisharebest\Webtrees\Elements;
*/
class CustomFact extends AbstractElement
{
- protected const SUBTAGS = [
+ protected const array SUBTAGS = [
'TYPE' => '0:1',
'DATE' => '0:1',
'PLAC' => '0:1',
diff --git a/app/Elements/CustomFamilyEvent.php b/app/Elements/CustomFamilyEvent.php
index 4a433a5775..35d3aaa4a0 100644
--- a/app/Elements/CustomFamilyEvent.php
+++ b/app/Elements/CustomFamilyEvent.php
@@ -24,7 +24,7 @@ namespace Fisharebest\Webtrees\Elements;
*/
class CustomFamilyEvent extends CustomEvent
{
- protected const SUBTAGS = [
+ protected const array SUBTAGS = [
'TYPE' => '0:1',
'DATE' => '0:1',
'HUSB' => '0:1',
diff --git a/app/Elements/CustomIndividualEvent.php b/app/Elements/CustomIndividualEvent.php
index c9a8f51a9b..85ec9fab73 100644
--- a/app/Elements/CustomIndividualEvent.php
+++ b/app/Elements/CustomIndividualEvent.php
@@ -24,7 +24,7 @@ namespace Fisharebest\Webtrees\Elements;
*/
class CustomIndividualEvent extends CustomEvent
{
- protected const SUBTAGS = [
+ protected const array SUBTAGS = [
'TYPE' => '0:1',
'DATE' => '0:1',
'AGE' => '0:1',
diff --git a/app/Elements/DateValueExact.php b/app/Elements/DateValueExact.php
index 56c7ac3603..4036cb6ef4 100644
--- a/app/Elements/DateValueExact.php
+++ b/app/Elements/DateValueExact.php
@@ -24,5 +24,5 @@ namespace Fisharebest\Webtrees\Elements;
*/
class DateValueExact extends DateValue
{
- protected const PATTERN = '(0[1-9]|[12][0-9]|3[0-1]) (JAN|FEB|MAR|APR|MAY|JUN|JUL|AUG|SEP|OCT|NOV|DEC) [0-9][0-9][0-9][0-9]';
+ protected const string PATTERN = '(0[1-9]|[12][0-9]|3[0-1]) (JAN|FEB|MAR|APR|MAY|JUN|JUL|AUG|SEP|OCT|NOV|DEC) [0-9][0-9][0-9][0-9]';
}
diff --git a/app/Elements/Death.php b/app/Elements/Death.php
index 2ecff78af8..3ed65e0830 100644
--- a/app/Elements/Death.php
+++ b/app/Elements/Death.php
@@ -24,7 +24,7 @@ namespace Fisharebest\Webtrees\Elements;
*/
class Death extends AbstractEventElement
{
- protected const SUBTAGS = [
+ protected const array SUBTAGS = [
'TYPE' => '0:1:?',
'DATE' => '0:1',
'AGE' => '0:1',
diff --git a/app/Elements/Divorce.php b/app/Elements/Divorce.php
index 01991297bd..029eeffbea 100644
--- a/app/Elements/Divorce.php
+++ b/app/Elements/Divorce.php
@@ -24,7 +24,7 @@ namespace Fisharebest\Webtrees\Elements;
*/
class Divorce extends AbstractEventElement
{
- protected const SUBTAGS = [
+ protected const array SUBTAGS = [
'TYPE' => '0:1:?',
'DATE' => '0:1',
'HUSB' => '0:1',
diff --git a/app/Elements/DivorceFiled.php b/app/Elements/DivorceFiled.php
index af76ccbaf0..e8c84b8769 100644
--- a/app/Elements/DivorceFiled.php
+++ b/app/Elements/DivorceFiled.php
@@ -24,7 +24,7 @@ namespace Fisharebest\Webtrees\Elements;
*/
class DivorceFiled extends AbstractEventElement
{
- protected const SUBTAGS = [
+ protected const array SUBTAGS = [
'TYPE' => '0:1:?',
'DATE' => '0:1',
'HUSB' => '0:1',
diff --git a/app/Elements/Emigration.php b/app/Elements/Emigration.php
index a9d981db25..240fa702c8 100644
--- a/app/Elements/Emigration.php
+++ b/app/Elements/Emigration.php
@@ -24,7 +24,7 @@ namespace Fisharebest\Webtrees\Elements;
*/
class Emigration extends AbstractEventElement
{
- protected const SUBTAGS = [
+ protected const array SUBTAGS = [
'TYPE' => '0:1:?',
'DATE' => '0:1',
'AGE' => '0:1',
diff --git a/app/Elements/Engagement.php b/app/Elements/Engagement.php
index 9ed5973b46..13a828283b 100644
--- a/app/Elements/Engagement.php
+++ b/app/Elements/Engagement.php
@@ -24,7 +24,7 @@ namespace Fisharebest\Webtrees\Elements;
*/
class Engagement extends AbstractEventElement
{
- protected const SUBTAGS = [
+ protected const array SUBTAGS = [
'TYPE' => '0:1:?',
'DATE' => '0:1',
'HUSB' => '0:1',
diff --git a/app/Elements/EventAttributeType.php b/app/Elements/EventAttributeType.php
index e8523ddfa2..3ab2e5f3e1 100644
--- a/app/Elements/EventAttributeType.php
+++ b/app/Elements/EventAttributeType.php
@@ -29,5 +29,5 @@ namespace Fisharebest\Webtrees\Elements;
*/
class EventAttributeType extends AbstractElement
{
- protected const MAXIMUM_LENGTH = 15;
+ protected const int MAXIMUM_LENGTH = 15;
}
diff --git a/app/Elements/EventOrFactClassification.php b/app/Elements/EventOrFactClassification.php
index cffb3e8c45..ee4ebcd29e 100644
--- a/app/Elements/EventOrFactClassification.php
+++ b/app/Elements/EventOrFactClassification.php
@@ -46,5 +46,5 @@ namespace Fisharebest\Webtrees\Elements;
*/
class EventOrFactClassification extends AbstractElement
{
- protected const MAXIMUM_LENGTH = 90;
+ protected const int MAXIMUM_LENGTH = 90;
}
diff --git a/app/Elements/EventTypeCitedFrom.php b/app/Elements/EventTypeCitedFrom.php
index ca74962421..eba7679999 100644
--- a/app/Elements/EventTypeCitedFrom.php
+++ b/app/Elements/EventTypeCitedFrom.php
@@ -38,13 +38,13 @@ use function uasort;
*/
class EventTypeCitedFrom extends AbstractElement
{
- protected const MAXIMUM_LENGTH = 15;
+ protected const int MAXIMUM_LENGTH = 15;
- protected const SUBTAGS = [
+ protected const array SUBTAGS = [
'ROLE' => '0:1',
];
- protected const FAMILY_EVENTS = [
+ protected const array FAMILY_EVENTS = [
'ANUL',
'CENS',
'DIV',
@@ -58,7 +58,7 @@ class EventTypeCitedFrom extends AbstractElement
'EVEN',
];
- protected const INDIVIDUAL_EVENTS = [
+ protected const array INDIVIDUAL_EVENTS = [
'ADOP',
'BIRT',
'BAPM',
@@ -84,7 +84,7 @@ class EventTypeCitedFrom extends AbstractElement
'EVEN',
];
- protected const ATTRIBUTE_TYPES = [
+ protected const array ATTRIBUTE_TYPES = [
'CAST',
'EDUC',
'NATI',
diff --git a/app/Elements/EventsRecorded.php b/app/Elements/EventsRecorded.php
index a48a00759a..56a979f0a6 100644
--- a/app/Elements/EventsRecorded.php
+++ b/app/Elements/EventsRecorded.php
@@ -40,12 +40,12 @@ use function view;
*/
class EventsRecorded extends AbstractElement
{
- protected const SUBTAGS = [
+ protected const array SUBTAGS = [
'DATE' => '0:1',
'PLAC' => '0:1',
];
- protected const EVENTS_RECORDED = [
+ protected const array EVENTS_RECORDED = [
'INDI:ADOP',
'INDI:BAPM',
'INDI:BARM',
diff --git a/app/Elements/FamilyCensus.php b/app/Elements/FamilyCensus.php
index f90e0fbacd..a575edda47 100644
--- a/app/Elements/FamilyCensus.php
+++ b/app/Elements/FamilyCensus.php
@@ -24,7 +24,7 @@ namespace Fisharebest\Webtrees\Elements;
*/
class FamilyCensus extends AbstractElement
{
- protected const SUBTAGS = [
+ protected const array SUBTAGS = [
'TYPE' => '0:1:?',
'DATE' => '0:1',
'HUSB' => '0:1',
diff --git a/app/Elements/FamilyEvent.php b/app/Elements/FamilyEvent.php
index 9de240d560..4871e99803 100644
--- a/app/Elements/FamilyEvent.php
+++ b/app/Elements/FamilyEvent.php
@@ -24,9 +24,9 @@ namespace Fisharebest\Webtrees\Elements;
*/
class FamilyEvent extends AbstractElement
{
- protected const MAXIMUM_LENGTH = 90;
+ protected const int MAXIMUM_LENGTH = 90;
- protected const SUBTAGS = [
+ protected const array SUBTAGS = [
'TYPE' => '0:1',
'DATE' => '0:1',
'HUSB' => '0:1',
diff --git a/app/Elements/FamilyFact.php b/app/Elements/FamilyFact.php
index 83198a8ad3..958f9c6826 100644
--- a/app/Elements/FamilyFact.php
+++ b/app/Elements/FamilyFact.php
@@ -24,9 +24,9 @@ namespace Fisharebest\Webtrees\Elements;
*/
class FamilyFact extends AbstractElement
{
- protected const MAXIMUM_LENGTH = 90;
+ protected const int MAXIMUM_LENGTH = 90;
- protected const SUBTAGS = [
+ protected const array SUBTAGS = [
'TYPE' => '0:1',
'DATE' => '0:1',
'PLAC' => '0:1',
diff --git a/app/Elements/FamilyNonEvent.php b/app/Elements/FamilyNonEvent.php
index d751783f86..f0cee02eab 100644
--- a/app/Elements/FamilyNonEvent.php
+++ b/app/Elements/FamilyNonEvent.php
@@ -30,7 +30,7 @@ use function uasort;
*/
class FamilyNonEvent extends AbstractElement
{
- protected const SUBTAGS = [
+ protected const array SUBTAGS = [
'DATE' => '0:1',
'NOTE' => '0:1',
'SOUR' => '0:1',
diff --git a/app/Elements/FamilyRecord.php b/app/Elements/FamilyRecord.php
index 3b22db97e6..663c097fa6 100644
--- a/app/Elements/FamilyRecord.php
+++ b/app/Elements/FamilyRecord.php
@@ -26,7 +26,7 @@ use Fisharebest\Webtrees\Site;
*/
class FamilyRecord extends AbstractElement
{
- protected const SUBTAGS = [
+ protected const array SUBTAGS = [
'ANUL' => '0:M',
'CENS' => '0:M',
'CHAN' => '0:1',
diff --git a/app/Elements/FamilySearchFamilyTreeId.php b/app/Elements/FamilySearchFamilyTreeId.php
index 143efc41e8..9f1dcad491 100644
--- a/app/Elements/FamilySearchFamilyTreeId.php
+++ b/app/Elements/FamilySearchFamilyTreeId.php
@@ -28,9 +28,9 @@ use function strtoupper;
*/
class FamilySearchFamilyTreeId extends AbstractExternalLink
{
- protected const EXTERNAL_URL = 'https://www.familysearch.org/tree/person/details/{ID}';
+ protected const string EXTERNAL_URL = 'https://www.familysearch.org/tree/person/details/{ID}';
- protected const MAXIMUM_LENGTH = 8;
+ protected const int MAXIMUM_LENGTH = 8;
/**
* Convert a value to a canonical form.
diff --git a/app/Elements/FamilyStatusText.php b/app/Elements/FamilyStatusText.php
index be149d44d5..edc5644ea9 100644
--- a/app/Elements/FamilyStatusText.php
+++ b/app/Elements/FamilyStatusText.php
@@ -33,7 +33,7 @@ use function strtoupper;
*/
class FamilyStatusText extends AbstractElement
{
- protected const SUBTAGS = [
+ protected const array SUBTAGS = [
'DATE' => '0:1',
'PLAC' => '0:1',
'NOTE' => '0:M',
diff --git a/app/Elements/FileName.php b/app/Elements/FileName.php
index 7654c823c5..1818b4dacf 100644
--- a/app/Elements/FileName.php
+++ b/app/Elements/FileName.php
@@ -26,7 +26,7 @@ namespace Fisharebest\Webtrees\Elements;
*/
class FileName extends AbstractElement
{
- protected const MAXIMUM_LENGTH = 90;
+ protected const int MAXIMUM_LENGTH = 90;
/**
* Convert a value to a canonical form.
diff --git a/app/Elements/FirstCommunion.php b/app/Elements/FirstCommunion.php
index 9192fae395..09758e1296 100644
--- a/app/Elements/FirstCommunion.php
+++ b/app/Elements/FirstCommunion.php
@@ -24,7 +24,7 @@ namespace Fisharebest\Webtrees\Elements;
*/
class FirstCommunion extends AbstractEventElement
{
- protected const SUBTAGS = [
+ protected const array SUBTAGS = [
'TYPE' => '0:1:?',
'DATE' => '0:1',
'AGE' => '0:1',
diff --git a/app/Elements/Form.php b/app/Elements/Form.php
index 268b541824..c53fecf4b8 100644
--- a/app/Elements/Form.php
+++ b/app/Elements/Form.php
@@ -31,7 +31,7 @@ use Fisharebest\Webtrees\Tree;
*/
class Form extends AbstractElement
{
- protected const MAXIMUM_LENGTH = 20;
+ protected const int MAXIMUM_LENGTH = 20;
/**
* Convert a value to a canonical form.
diff --git a/app/Elements/GenerationsOfAncestors.php b/app/Elements/GenerationsOfAncestors.php
index 7419cf8637..1f5e8b38fa 100644
--- a/app/Elements/GenerationsOfAncestors.php
+++ b/app/Elements/GenerationsOfAncestors.php
@@ -29,7 +29,7 @@ use Fisharebest\Webtrees\Tree;
*/
class GenerationsOfAncestors extends AbstractElement
{
- protected const MAXIMUM_LENGTH = 4;
+ protected const int MAXIMUM_LENGTH = 4;
/**
* Display the value of this type of element.
diff --git a/app/Elements/GenerationsOfDescendants.php b/app/Elements/GenerationsOfDescendants.php
index 15208be0ef..14de68ce19 100644
--- a/app/Elements/GenerationsOfDescendants.php
+++ b/app/Elements/GenerationsOfDescendants.php
@@ -29,7 +29,7 @@ use Fisharebest\Webtrees\Tree;
*/
class GenerationsOfDescendants extends AbstractElement
{
- protected const MAXIMUM_LENGTH = 4;
+ protected const int MAXIMUM_LENGTH = 4;
/**
* Display the value of this type of element.
diff --git a/app/Elements/GovIdentifier.php b/app/Elements/GovIdentifier.php
index 066de1f4cd..b4a7ec4df0 100644
--- a/app/Elements/GovIdentifier.php
+++ b/app/Elements/GovIdentifier.php
@@ -29,9 +29,9 @@ use function rawurlencode;
*/
class GovIdentifier extends AbstractElement
{
- protected const EXTERNAL_URL = 'https://gov.genealogy.net/item/show/';
+ protected const string EXTERNAL_URL = 'https://gov.genealogy.net/item/show/';
- protected const MAXIMUM_LENGTH = 14;
+ protected const int MAXIMUM_LENGTH = 14;
/**
* Display the value of this type of element.
diff --git a/app/Elements/Graduation.php b/app/Elements/Graduation.php
index fef53eff02..7a0ddcf100 100644
--- a/app/Elements/Graduation.php
+++ b/app/Elements/Graduation.php
@@ -24,7 +24,7 @@ namespace Fisharebest\Webtrees\Elements;
*/
class Graduation extends AbstractEventElement
{
- protected const SUBTAGS = [
+ protected const array SUBTAGS = [
'TYPE' => '0:1:?',
'DATE' => '0:1',
'AGE' => '0:1',
diff --git a/app/Elements/HeaderRecord.php b/app/Elements/HeaderRecord.php
index 467b0e1cc6..8cfab5d533 100644
--- a/app/Elements/HeaderRecord.php
+++ b/app/Elements/HeaderRecord.php
@@ -24,7 +24,7 @@ namespace Fisharebest\Webtrees\Elements;
*/
class HeaderRecord extends AbstractElement
{
- protected const SUBTAGS = [
+ protected const array SUBTAGS = [
'SOUR' => '1:1',
'DEST' => '0:1',
'DATE' => '0:1',
diff --git a/app/Elements/Immigration.php b/app/Elements/Immigration.php
index 74ff87177c..6575f28436 100644
--- a/app/Elements/Immigration.php
+++ b/app/Elements/Immigration.php
@@ -24,7 +24,7 @@ namespace Fisharebest\Webtrees\Elements;
*/
class Immigration extends AbstractEventElement
{
- protected const SUBTAGS = [
+ protected const array SUBTAGS = [
'TYPE' => '0:1:?',
'DATE' => '0:1',
'AGE' => '0:1',
diff --git a/app/Elements/IndividualEvent.php b/app/Elements/IndividualEvent.php
index 90c47a692e..c5a794572d 100644
--- a/app/Elements/IndividualEvent.php
+++ b/app/Elements/IndividualEvent.php
@@ -24,9 +24,9 @@ namespace Fisharebest\Webtrees\Elements;
*/
class IndividualEvent extends AbstractElement
{
- protected const MAXIMUM_LENGTH = 90;
+ protected const int MAXIMUM_LENGTH = 90;
- protected const SUBTAGS = [
+ protected const array SUBTAGS = [
'TYPE' => '0:1',
'DATE' => '0:1',
'AGE' => '0:1',
diff --git a/app/Elements/IndividualFact.php b/app/Elements/IndividualFact.php
index ab718ddd2e..b3416f3618 100644
--- a/app/Elements/IndividualFact.php
+++ b/app/Elements/IndividualFact.php
@@ -24,9 +24,9 @@ namespace Fisharebest\Webtrees\Elements;
*/
class IndividualFact extends AbstractElement
{
- protected const MAXIMUM_LENGTH = 90;
+ protected const int MAXIMUM_LENGTH = 90;
- protected const SUBTAGS = [
+ protected const array SUBTAGS = [
'TYPE' => '0:1',
'DATE' => '0:1',
'PLAC' => '0:1',
diff --git a/app/Elements/IndividualNonEvent.php b/app/Elements/IndividualNonEvent.php
index 51fba4f589..ce998312cc 100644
--- a/app/Elements/IndividualNonEvent.php
+++ b/app/Elements/IndividualNonEvent.php
@@ -29,7 +29,7 @@ use function strtoupper;
*/
class IndividualNonEvent extends AbstractElement
{
- protected const SUBTAGS = [
+ protected const array SUBTAGS = [
'DATE' => '0:1',
'NOTE' => '0:1',
'SOUR' => '0:1',
diff --git a/app/Elements/IndividualRecord.php b/app/Elements/IndividualRecord.php
index d066afe35b..47a709f512 100644
--- a/app/Elements/IndividualRecord.php
+++ b/app/Elements/IndividualRecord.php
@@ -24,7 +24,7 @@ namespace Fisharebest\Webtrees\Elements;
*/
class IndividualRecord extends AbstractElement
{
- protected const SUBTAGS = [
+ protected const array SUBTAGS = [
'ADOP' => '0:M',
'AFN' => '0:1',
'ALIA' => '0:M',
diff --git a/app/Elements/LdsBaptism.php b/app/Elements/LdsBaptism.php
index 05e804889d..e34ac3c2b0 100644
--- a/app/Elements/LdsBaptism.php
+++ b/app/Elements/LdsBaptism.php
@@ -24,7 +24,7 @@ namespace Fisharebest\Webtrees\Elements;
*/
class LdsBaptism extends AbstractEventElement
{
- protected const SUBTAGS = [
+ protected const array SUBTAGS = [
'DATE' => '0:1',
'TEMP' => '0:1',
'PLAC' => '0:1',
diff --git a/app/Elements/LdsChildSealing.php b/app/Elements/LdsChildSealing.php
index e123abbe86..72a634b928 100644
--- a/app/Elements/LdsChildSealing.php
+++ b/app/Elements/LdsChildSealing.php
@@ -24,7 +24,7 @@ namespace Fisharebest\Webtrees\Elements;
*/
class LdsChildSealing extends AbstractEventElement
{
- protected const SUBTAGS = [
+ protected const array SUBTAGS = [
'DATE' => '0:1',
'TEMP' => '0:1',
'PLAC' => '0:1',
diff --git a/app/Elements/LdsConfirmation.php b/app/Elements/LdsConfirmation.php
index fce22f6f1d..2ccf73a829 100644
--- a/app/Elements/LdsConfirmation.php
+++ b/app/Elements/LdsConfirmation.php
@@ -24,7 +24,7 @@ namespace Fisharebest\Webtrees\Elements;
*/
class LdsConfirmation extends AbstractEventElement
{
- protected const SUBTAGS = [
+ protected const array SUBTAGS = [
'DATE' => '0:1',
'TEMP' => '0:1',
'PLAC' => '0:1',
diff --git a/app/Elements/LdsEndowment.php b/app/Elements/LdsEndowment.php
index 615d07ecaa..5668a49c2a 100644
--- a/app/Elements/LdsEndowment.php
+++ b/app/Elements/LdsEndowment.php
@@ -24,7 +24,7 @@ namespace Fisharebest\Webtrees\Elements;
*/
class LdsEndowment extends AbstractEventElement
{
- protected const SUBTAGS = [
+ protected const array SUBTAGS = [
'DATE' => '0:1',
'TEMP' => '0:1',
'PLAC' => '0:1',
diff --git a/app/Elements/LdsEndowmentDateStatus.php b/app/Elements/LdsEndowmentDateStatus.php
index af5ff1d512..ae7c394d4b 100644
--- a/app/Elements/LdsEndowmentDateStatus.php
+++ b/app/Elements/LdsEndowmentDateStatus.php
@@ -37,7 +37,7 @@ use function strtoupper;
*/
class LdsEndowmentDateStatus extends AbstractElement
{
- protected const SUBTAGS = [
+ protected const array SUBTAGS = [
'DATE' => '0:1',
];
diff --git a/app/Elements/LdsInitiatory.php b/app/Elements/LdsInitiatory.php
index b615d56bb7..9f6eeaa813 100644
--- a/app/Elements/LdsInitiatory.php
+++ b/app/Elements/LdsInitiatory.php
@@ -24,7 +24,7 @@ namespace Fisharebest\Webtrees\Elements;
*/
class LdsInitiatory extends AbstractEventElement
{
- protected const SUBTAGS = [
+ protected const array SUBTAGS = [
'DATE' => '0:1',
'TEMP' => '0:1',
'PLAC' => '0:1',
diff --git a/app/Elements/LdsOrdinanceStatus.php b/app/Elements/LdsOrdinanceStatus.php
index d941b9b899..83a730458b 100644
--- a/app/Elements/LdsOrdinanceStatus.php
+++ b/app/Elements/LdsOrdinanceStatus.php
@@ -28,7 +28,7 @@ use function strtoupper;
*/
class LdsOrdinanceStatus extends AbstractElement
{
- private const CORRECTIONS = [
+ private const array CORRECTIONS = [
// PhpGedView misspells this tag.
'CANCELLED' => 'CANCELED',
// GEDCOM 5.5.1
diff --git a/app/Elements/LdsSpouseSealing.php b/app/Elements/LdsSpouseSealing.php
index 408e89f3e2..ffa9bd993d 100644
--- a/app/Elements/LdsSpouseSealing.php
+++ b/app/Elements/LdsSpouseSealing.php
@@ -24,7 +24,7 @@ namespace Fisharebest\Webtrees\Elements;
*/
class LdsSpouseSealing extends AbstractEventElement
{
- protected const SUBTAGS = [
+ protected const array SUBTAGS = [
'DATE' => '0:1',
'TEMP' => '0:1',
'PLAC' => '0:1',
diff --git a/app/Elements/LocationRecord.php b/app/Elements/LocationRecord.php
index 3a52ea5aae..5681546d17 100644
--- a/app/Elements/LocationRecord.php
+++ b/app/Elements/LocationRecord.php
@@ -24,7 +24,7 @@ namespace Fisharebest\Webtrees\Elements;
*/
class LocationRecord extends AbstractElement
{
- protected const SUBTAGS = [
+ protected const array SUBTAGS = [
'NAME' => '1:M',
'TYPE' => '0:M',
'_POST' => '0:M',
diff --git a/app/Elements/MaidenheadLocator.php b/app/Elements/MaidenheadLocator.php
index 833ae9e996..ee30a00862 100644
--- a/app/Elements/MaidenheadLocator.php
+++ b/app/Elements/MaidenheadLocator.php
@@ -29,8 +29,8 @@ use function mb_substr;
*/
class MaidenheadLocator extends AbstractElement
{
- protected const MAXIMUM_LENGTH = 8;
- protected const PATTERN = '[A-Ra-r][A-Ra-r]([0-9][0-9]([A-Xa-x][A-Xa-x]([0-9][0-9])?)?)?';
+ protected const int MAXIMUM_LENGTH = 8;
+ protected const string PATTERN = '[A-Ra-r][A-Ra-r]([0-9][0-9]([A-Xa-x][A-Xa-x]([0-9][0-9])?)?)?';
/**
* Convert a value to a canonical form.
diff --git a/app/Elements/Marriage.php b/app/Elements/Marriage.php
index 12e3887d1e..448cac0bcc 100644
--- a/app/Elements/Marriage.php
+++ b/app/Elements/Marriage.php
@@ -24,7 +24,7 @@ namespace Fisharebest\Webtrees\Elements;
*/
class Marriage extends AbstractEventElement
{
- protected const SUBTAGS = [
+ protected const array SUBTAGS = [
'TYPE' => '0:1',
'DATE' => '0:1',
'HUSB' => '0:1',
diff --git a/app/Elements/MarriageBanns.php b/app/Elements/MarriageBanns.php
index e02a04b00a..89828ea1cb 100644
--- a/app/Elements/MarriageBanns.php
+++ b/app/Elements/MarriageBanns.php
@@ -24,7 +24,7 @@ namespace Fisharebest\Webtrees\Elements;
*/
class MarriageBanns extends AbstractEventElement
{
- protected const SUBTAGS = [
+ protected const array SUBTAGS = [
'TYPE' => '0:1:?',
'DATE' => '0:1',
'HUSB' => '0:1',
diff --git a/app/Elements/MarriageContract.php b/app/Elements/MarriageContract.php
index 5c63d36c1d..e8a848a169 100644
--- a/app/Elements/MarriageContract.php
+++ b/app/Elements/MarriageContract.php
@@ -24,7 +24,7 @@ namespace Fisharebest\Webtrees\Elements;
*/
class MarriageContract extends AbstractEventElement
{
- protected const SUBTAGS = [
+ protected const array SUBTAGS = [
'TYPE' => '0:1:?',
'DATE' => '0:1',
'HUSB' => '0:1',
diff --git a/app/Elements/MarriageLicence.php b/app/Elements/MarriageLicence.php
index 2e3d684edd..8f655a09bd 100644
--- a/app/Elements/MarriageLicence.php
+++ b/app/Elements/MarriageLicence.php
@@ -24,7 +24,7 @@ namespace Fisharebest\Webtrees\Elements;
*/
class MarriageLicence extends AbstractEventElement
{
- protected const SUBTAGS = [
+ protected const array SUBTAGS = [
'TYPE' => '0:1:?',
'DATE' => '0:1',
'HUSB' => '0:1',
diff --git a/app/Elements/MarriageSettlement.php b/app/Elements/MarriageSettlement.php
index 8d41d4d9e4..4d09c51e54 100644
--- a/app/Elements/MarriageSettlement.php
+++ b/app/Elements/MarriageSettlement.php
@@ -24,7 +24,7 @@ namespace Fisharebest\Webtrees\Elements;
*/
class MarriageSettlement extends AbstractEventElement
{
- protected const SUBTAGS = [
+ protected const array SUBTAGS = [
'TYPE' => '0:1:?',
'DATE' => '0:1',
'HUSB' => '0:1',
diff --git a/app/Elements/MarriageType.php b/app/Elements/MarriageType.php
index 916f089852..ea72180d9d 100644
--- a/app/Elements/MarriageType.php
+++ b/app/Elements/MarriageType.php
@@ -28,10 +28,10 @@ use function strtoupper;
*/
class MarriageType extends AbstractElement
{
- public const VALUE_CIVIL = 'CIVIL';
- public const VALUE_COMMON_LAW = 'COMMON LAW';
- public const VALUE_PARTNERS = 'PARTNERS';
- public const VALUE_RELIGIOUS = 'RELIGIOUS';
+ public const string VALUE_CIVIL = 'CIVIL';
+ public const string VALUE_COMMON_LAW = 'COMMON LAW';
+ public const string VALUE_PARTNERS = 'PARTNERS';
+ public const string VALUE_RELIGIOUS = 'RELIGIOUS';
/**
* Convert a value to a canonical form.
diff --git a/app/Elements/MediaRecord.php b/app/Elements/MediaRecord.php
index e214d9ddbe..3ab539f9e1 100644
--- a/app/Elements/MediaRecord.php
+++ b/app/Elements/MediaRecord.php
@@ -24,7 +24,7 @@ namespace Fisharebest\Webtrees\Elements;
*/
class MediaRecord extends AbstractElement
{
- protected const SUBTAGS = [
+ protected const array SUBTAGS = [
'FILE' => '1:M',
'REFN' => '0:M',
'RIN' => '0:1',
diff --git a/app/Elements/MultimediaFileReference.php b/app/Elements/MultimediaFileReference.php
index 8e907a6252..a308485e77 100644
--- a/app/Elements/MultimediaFileReference.php
+++ b/app/Elements/MultimediaFileReference.php
@@ -32,7 +32,7 @@ use function view;
*/
class MultimediaFileReference extends AbstractElement
{
- protected const SUBTAGS = [
+ protected const array SUBTAGS = [
'FORM' => '0:1',
'TITL' => '0:1',
];
diff --git a/app/Elements/MultimediaFormat.php b/app/Elements/MultimediaFormat.php
index 072ee4392a..5bcd21c3fc 100644
--- a/app/Elements/MultimediaFormat.php
+++ b/app/Elements/MultimediaFormat.php
@@ -31,12 +31,12 @@ use function strtoupper;
*/
class MultimediaFormat extends AbstractElement
{
- protected const EXTENSION_TO_FORM = [
+ protected const array EXTENSION_TO_FORM = [
'JPEG' => 'JPG',
'TIFF' => 'TIF',
];
- protected const SUBTAGS = [
+ protected const array SUBTAGS = [
'TYPE' => '0:1',
];
diff --git a/app/Elements/NameOfBusiness.php b/app/Elements/NameOfBusiness.php
index 19e500adc3..d759a39b09 100644
--- a/app/Elements/NameOfBusiness.php
+++ b/app/Elements/NameOfBusiness.php
@@ -26,5 +26,5 @@ namespace Fisharebest\Webtrees\Elements;
*/
class NameOfBusiness extends AbstractElement
{
- protected const MAXIMUM_LENGTH = 90;
+ protected const int MAXIMUM_LENGTH = 90;
}
diff --git a/app/Elements/NameOfFamilyFile.php b/app/Elements/NameOfFamilyFile.php
index a23f73073f..11aff0fc2f 100644
--- a/app/Elements/NameOfFamilyFile.php
+++ b/app/Elements/NameOfFamilyFile.php
@@ -34,7 +34,7 @@ use const PATHINFO_EXTENSION;
*/
class NameOfFamilyFile extends AbstractElement
{
- protected const MAXIMUM_LENGTH = 120;
+ protected const int MAXIMUM_LENGTH = 120;
/**
* Create a default value for this element.
diff --git a/app/Elements/NameOfProduct.php b/app/Elements/NameOfProduct.php
index 62a5edb36c..0a402010cf 100644
--- a/app/Elements/NameOfProduct.php
+++ b/app/Elements/NameOfProduct.php
@@ -25,5 +25,5 @@ namespace Fisharebest\Webtrees\Elements;
*/
class NameOfProduct extends AbstractElement
{
- protected const MAXIMUM_LENGTH = 90;
+ protected const int MAXIMUM_LENGTH = 90;
}
diff --git a/app/Elements/NameOfRepository.php b/app/Elements/NameOfRepository.php
index 3d30c7e767..0dc716b656 100644
--- a/app/Elements/NameOfRepository.php
+++ b/app/Elements/NameOfRepository.php
@@ -25,5 +25,5 @@ namespace Fisharebest\Webtrees\Elements;
*/
class NameOfRepository extends AbstractElement
{
- protected const MAXIMUM_LENGTH = 90;
+ protected const int MAXIMUM_LENGTH = 90;
}
diff --git a/app/Elements/NameOfSourceData.php b/app/Elements/NameOfSourceData.php
index 0d35b4c1ee..d815fdead7 100644
--- a/app/Elements/NameOfSourceData.php
+++ b/app/Elements/NameOfSourceData.php
@@ -27,5 +27,5 @@ namespace Fisharebest\Webtrees\Elements;
*/
class NameOfSourceData extends AbstractElement
{
- protected const MAXIMUM_LENGTH = 90;
+ protected const int MAXIMUM_LENGTH = 90;
}
diff --git a/app/Elements/NamePersonal.php b/app/Elements/NamePersonal.php
index 40ad179e4e..7af0a802f9 100644
--- a/app/Elements/NamePersonal.php
+++ b/app/Elements/NamePersonal.php
@@ -52,9 +52,9 @@ use function view;
*/
class NamePersonal extends AbstractElement
{
- protected const MAXIMUM_LENGTH = 120;
+ protected const int MAXIMUM_LENGTH = 120;
- protected const SUBTAGS = [
+ protected const array SUBTAGS = [
'TYPE' => '0:1',
'NPFX' => '0:1',
'GIVN' => '0:1',
@@ -69,9 +69,9 @@ class NamePersonal extends AbstractElement
];
// For some languages, we want to show the surname field first.
- protected const SURNAME_FIRST_LANGUAGES = ['hu', 'jp', 'ko', 'zh-Hans', 'zh-Hant'];
+ protected const array SURNAME_FIRST_LANGUAGES = ['hu', 'jp', 'ko', 'zh-Hans', 'zh-Hant'];
- protected const SUBTAGS_SURNAME_FIRST = [
+ protected const array SUBTAGS_SURNAME_FIRST = [
'TYPE' => '0:1',
'NPFX' => '0:1',
'SPFX' => '0:1',
diff --git a/app/Elements/NamePhoneticVariation.php b/app/Elements/NamePhoneticVariation.php
index ae9f051b77..bae58e3b4a 100644
--- a/app/Elements/NamePhoneticVariation.php
+++ b/app/Elements/NamePhoneticVariation.php
@@ -29,7 +29,7 @@ namespace Fisharebest\Webtrees\Elements;
*/
class NamePhoneticVariation extends NamePersonal
{
- protected const SUBTAGS = [
+ protected const array SUBTAGS = [
'TYPE' => '1:1',
'NPFX' => '0:1',
'GIVN' => '0:1',
diff --git a/app/Elements/NamePieceGiven.php b/app/Elements/NamePieceGiven.php
index e6a0d82bfc..08d5c65cd7 100644
--- a/app/Elements/NamePieceGiven.php
+++ b/app/Elements/NamePieceGiven.php
@@ -31,7 +31,7 @@ use function view;
*/
class NamePieceGiven extends AbstractElement
{
- protected const MAXIMUM_LENGTH = 120;
+ protected const int MAXIMUM_LENGTH = 120;
/**
* An edit control for this data.
diff --git a/app/Elements/NamePieceNickname.php b/app/Elements/NamePieceNickname.php
index 15cb7796b2..9b79b313f1 100644
--- a/app/Elements/NamePieceNickname.php
+++ b/app/Elements/NamePieceNickname.php
@@ -30,7 +30,7 @@ use function view;
*/
class NamePieceNickname extends AbstractElement
{
- protected const MAXIMUM_LENGTH = 30;
+ protected const int MAXIMUM_LENGTH = 30;
/**
* An edit control for this data.
diff --git a/app/Elements/NamePiecePrefix.php b/app/Elements/NamePiecePrefix.php
index c82861926e..1fcb2256e9 100644
--- a/app/Elements/NamePiecePrefix.php
+++ b/app/Elements/NamePiecePrefix.php
@@ -34,7 +34,7 @@ use function view;
*/
class NamePiecePrefix extends AbstractElement
{
- protected const MAXIMUM_LENGTH = 30;
+ protected const int MAXIMUM_LENGTH = 30;
/**
* An edit control for this data.
diff --git a/app/Elements/NamePieceSuffix.php b/app/Elements/NamePieceSuffix.php
index 03d59c9a96..457ca51587 100644
--- a/app/Elements/NamePieceSuffix.php
+++ b/app/Elements/NamePieceSuffix.php
@@ -34,7 +34,7 @@ use function view;
*/
class NamePieceSuffix extends AbstractElement
{
- protected const MAXIMUM_LENGTH = 30;
+ protected const int MAXIMUM_LENGTH = 30;
/**
* An edit control for this data.
diff --git a/app/Elements/NamePieceSurname.php b/app/Elements/NamePieceSurname.php
index 36373ab035..dc318a25d8 100644
--- a/app/Elements/NamePieceSurname.php
+++ b/app/Elements/NamePieceSurname.php
@@ -32,7 +32,7 @@ use function view;
*/
class NamePieceSurname extends AbstractElement
{
- protected const MAXIMUM_LENGTH = 30;
+ protected const int MAXIMUM_LENGTH = 30;
/**
* An edit control for this data.
diff --git a/app/Elements/NamePieceSurnamePrefix.php b/app/Elements/NamePieceSurnamePrefix.php
index ab47c67d34..432223c7a7 100644
--- a/app/Elements/NamePieceSurnamePrefix.php
+++ b/app/Elements/NamePieceSurnamePrefix.php
@@ -31,7 +31,7 @@ use function view;
*/
class NamePieceSurnamePrefix extends AbstractElement
{
- protected const MAXIMUM_LENGTH = 30;
+ protected const int MAXIMUM_LENGTH = 30;
/**
* An edit control for this data.
diff --git a/app/Elements/NameRomanizedVariation.php b/app/Elements/NameRomanizedVariation.php
index 54ccc9b501..720ffebdac 100644
--- a/app/Elements/NameRomanizedVariation.php
+++ b/app/Elements/NameRomanizedVariation.php
@@ -35,7 +35,7 @@ use function view;
*/
class NameRomanizedVariation extends NamePersonal
{
- protected const SUBTAGS = [
+ protected const array SUBTAGS = [
'TYPE' => '1:1',
'NPFX' => '0:1',
'GIVN' => '0:1',
diff --git a/app/Elements/NameType.php b/app/Elements/NameType.php
index 5e31546c07..fef6514b4c 100644
--- a/app/Elements/NameType.php
+++ b/app/Elements/NameType.php
@@ -36,15 +36,15 @@ use function strtoupper;
*/
class NameType extends AbstractElement
{
- public const VALUE_ADOPTED = 'ADOPTED';
- public const VALUE_AKA = 'AKA';
- public const VALUE_BIRTH = 'BIRTH';
- public const VALUE_CHANGE = 'CHANGE';
- public const VALUE_ESTATE = 'ESTATE';
- public const VALUE_IMMIGRANT = 'IMMIGRANT';
- public const VALUE_MAIDEN = 'MAIDEN';
- public const VALUE_MARRIED = 'MARRIED';
- public const VALUE_RELIGIOUS = 'RELIGIOUS';
+ public const string VALUE_ADOPTED = 'ADOPTED';
+ public const string VALUE_AKA = 'AKA';
+ public const string VALUE_BIRTH = 'BIRTH';
+ public const string VALUE_CHANGE = 'CHANGE';
+ public const string VALUE_ESTATE = 'ESTATE';
+ public const string VALUE_IMMIGRANT = 'IMMIGRANT';
+ public const string VALUE_MAIDEN = 'MAIDEN';
+ public const string VALUE_MARRIED = 'MARRIED';
+ public const string VALUE_RELIGIOUS = 'RELIGIOUS';
/**
* Convert a value to a canonical form.
diff --git a/app/Elements/NationalIdNumber.php b/app/Elements/NationalIdNumber.php
index 98ae19e1ba..6e41feacb3 100644
--- a/app/Elements/NationalIdNumber.php
+++ b/app/Elements/NationalIdNumber.php
@@ -31,9 +31,9 @@ namespace Fisharebest\Webtrees\Elements;
*/
class NationalIdNumber extends AbstractElement
{
- protected const MAXIMUM_LENGTH = 30;
+ protected const int MAXIMUM_LENGTH = 30;
- protected const SUBTAGS = [
+ protected const array SUBTAGS = [
'TYPE' => '0:1',
'DATE' => '0:1',
'PLAC' => '0:1',
diff --git a/app/Elements/NationalOrTribalOrigin.php b/app/Elements/NationalOrTribalOrigin.php
index e12ac2fbcd..b428d69ff8 100644
--- a/app/Elements/NationalOrTribalOrigin.php
+++ b/app/Elements/NationalOrTribalOrigin.php
@@ -28,9 +28,9 @@ namespace Fisharebest\Webtrees\Elements;
*/
class NationalOrTribalOrigin extends AbstractElement
{
- protected const MAXIMUM_LENGTH = 120;
+ protected const int MAXIMUM_LENGTH = 120;
- protected const SUBTAGS = [
+ protected const array SUBTAGS = [
'TYPE' => '0:1:?',
'DATE' => '0:1',
'PLAC' => '0:1',
diff --git a/app/Elements/Naturalization.php b/app/Elements/Naturalization.php
index 1958b9a896..4bf2595baa 100644
--- a/app/Elements/Naturalization.php
+++ b/app/Elements/Naturalization.php
@@ -24,7 +24,7 @@ namespace Fisharebest\Webtrees\Elements;
*/
class Naturalization extends AbstractEventElement
{
- protected const SUBTAGS = [
+ protected const array SUBTAGS = [
'TYPE' => '0:1:?',
'DATE' => '0:1',
'AGE' => '0:1',
diff --git a/app/Elements/NobilityTypeTitle.php b/app/Elements/NobilityTypeTitle.php
index e93597c0f8..c8aa1b754e 100644
--- a/app/Elements/NobilityTypeTitle.php
+++ b/app/Elements/NobilityTypeTitle.php
@@ -26,9 +26,9 @@ namespace Fisharebest\Webtrees\Elements;
*/
class NobilityTypeTitle extends AbstractElement
{
- protected const MAXIMUM_LENGTH = 120;
+ protected const int MAXIMUM_LENGTH = 120;
- protected const SUBTAGS = [
+ protected const array SUBTAGS = [
'TYPE' => '0:1:?',
'DATE' => '0:1',
'PLAC' => '0:1',
diff --git a/app/Elements/NoteRecord.php b/app/Elements/NoteRecord.php
index 9a5445e216..32308c642c 100644
--- a/app/Elements/NoteRecord.php
+++ b/app/Elements/NoteRecord.php
@@ -24,7 +24,7 @@ namespace Fisharebest\Webtrees\Elements;
*/
class NoteRecord extends AbstractElement
{
- protected const SUBTAGS = [
+ protected const array SUBTAGS = [
'SOUR' => '0:M',
'REFN' => '0:1',
'RIN' => '0:1',
diff --git a/app/Elements/Occupation.php b/app/Elements/Occupation.php
index b293424790..4e8eeddac9 100644
--- a/app/Elements/Occupation.php
+++ b/app/Elements/Occupation.php
@@ -26,7 +26,7 @@ namespace Fisharebest\Webtrees\Elements;
*/
class Occupation extends AbstractElement
{
- protected const SUBTAGS = [
+ protected const array SUBTAGS = [
'TYPE' => '0:1:?',
'DATE' => '0:1',
'PLAC' => '0:1',
diff --git a/app/Elements/Ordination.php b/app/Elements/Ordination.php
index 5aaad2500d..6c867f898b 100644
--- a/app/Elements/Ordination.php
+++ b/app/Elements/Ordination.php
@@ -24,7 +24,7 @@ namespace Fisharebest\Webtrees\Elements;
*/
class Ordination extends AbstractEventElement
{
- protected const SUBTAGS = [
+ protected const array SUBTAGS = [
'TYPE' => '0:1:?',
'DATE' => '0:1',
'AGE' => '0:1',
diff --git a/app/Elements/PafUid.php b/app/Elements/PafUid.php
index 82cc703bfe..9206d9252e 100644
--- a/app/Elements/PafUid.php
+++ b/app/Elements/PafUid.php
@@ -27,7 +27,7 @@ use Fisharebest\Webtrees\Tree;
*/
class PafUid extends AbstractElement
{
- protected const MAXIMUM_LENGTH = 34;
+ protected const int MAXIMUM_LENGTH = 34;
/**
* Create a default value for this element.
diff --git a/app/Elements/PedigreeLinkageType.php b/app/Elements/PedigreeLinkageType.php
index 36a5b7f0dd..91cdf773fd 100644
--- a/app/Elements/PedigreeLinkageType.php
+++ b/app/Elements/PedigreeLinkageType.php
@@ -35,13 +35,13 @@ use function strtoupper;
*/
class PedigreeLinkageType extends AbstractElement
{
- protected const MAXIMUM_LENGTH = 7;
+ protected const int MAXIMUM_LENGTH = 7;
- public const VALUE_ADOPTED = 'ADOPTED';
- public const VALUE_BIRTH = 'BIRTH';
- public const VALUE_FOSTER = 'FOSTER';
- public const VALUE_SEALING = 'SEALING';
- public const VALUE_RADA = 'RADA';
+ public const string VALUE_ADOPTED = 'ADOPTED';
+ public const string VALUE_BIRTH = 'BIRTH';
+ public const string VALUE_FOSTER = 'FOSTER';
+ public const string VALUE_SEALING = 'SEALING';
+ public const string VALUE_RADA = 'RADA';
/**
* Convert a value to a canonical form.
diff --git a/app/Elements/PermanentRecordFileNumber.php b/app/Elements/PermanentRecordFileNumber.php
index d26f761ee3..d0b3a5217c 100644
--- a/app/Elements/PermanentRecordFileNumber.php
+++ b/app/Elements/PermanentRecordFileNumber.php
@@ -34,5 +34,5 @@ namespace Fisharebest\Webtrees\Elements;
*/
class PermanentRecordFileNumber extends AbstractElement
{
- protected const MAXIMUM_LENGTH = 90;
+ protected const int MAXIMUM_LENGTH = 90;
}
diff --git a/app/Elements/PhoneNumber.php b/app/Elements/PhoneNumber.php
index 5e60534655..29ae4a8179 100644
--- a/app/Elements/PhoneNumber.php
+++ b/app/Elements/PhoneNumber.php
@@ -30,7 +30,7 @@ use function preg_match;
*/
class PhoneNumber extends AbstractElement
{
- protected const MAXIMUM_LENGTH = 25;
+ protected const int MAXIMUM_LENGTH = 25;
/**
* Display the value of this type of element.
diff --git a/app/Elements/PhoneticType.php b/app/Elements/PhoneticType.php
index 175e833a12..ccba2adcdd 100644
--- a/app/Elements/PhoneticType.php
+++ b/app/Elements/PhoneticType.php
@@ -32,7 +32,7 @@ use function strtoupper;
*/
class PhoneticType extends AbstractElement
{
- protected const MAXIMUM_LENGTH = 30;
+ protected const int MAXIMUM_LENGTH = 30;
/**
* Convert a value to a canonical form.
diff --git a/app/Elements/PhysicalDescription.php b/app/Elements/PhysicalDescription.php
index d5f44bb448..8220a2af62 100644
--- a/app/Elements/PhysicalDescription.php
+++ b/app/Elements/PhysicalDescription.php
@@ -29,7 +29,7 @@ namespace Fisharebest\Webtrees\Elements;
*/
class PhysicalDescription extends AbstractElement
{
- protected const SUBTAGS = [
+ protected const array SUBTAGS = [
'TYPE' => '0:1:?',
'DATE' => '0:1',
'PLAC' => '0:1',
diff --git a/app/Elements/PlaceHierarchy.php b/app/Elements/PlaceHierarchy.php
index c8f540c254..c2258d2853 100644
--- a/app/Elements/PlaceHierarchy.php
+++ b/app/Elements/PlaceHierarchy.php
@@ -38,7 +38,7 @@ use function trim;
*/
class PlaceHierarchy extends AbstractElement
{
- protected const MAXIMUM_LENGTH = 120;
+ protected const int MAXIMUM_LENGTH = 120;
/**
* Convert a value to a canonical form.
diff --git a/app/Elements/PlaceName.php b/app/Elements/PlaceName.php
index 9f9b4a6903..ed8758eb49 100644
--- a/app/Elements/PlaceName.php
+++ b/app/Elements/PlaceName.php
@@ -36,7 +36,7 @@ use function trim;
*/
class PlaceName extends AbstractElement
{
- protected const SUBTAGS = [
+ protected const array SUBTAGS = [
'FORM' => '0:1',
'MAP' => '0:1',
'FONE' => '0:1',
diff --git a/app/Elements/Possessions.php b/app/Elements/Possessions.php
index 72ded21772..6285e45560 100644
--- a/app/Elements/Possessions.php
+++ b/app/Elements/Possessions.php
@@ -25,7 +25,7 @@ namespace Fisharebest\Webtrees\Elements;
*/
class Possessions extends AbstractElement
{
- protected const SUBTAGS = [
+ protected const array SUBTAGS = [
'TYPE' => '0:1:?',
'DATE' => '0:1',
'PLAC' => '0:1',
diff --git a/app/Elements/Probate.php b/app/Elements/Probate.php
index 5c5a83bcc9..32b8c97079 100644
--- a/app/Elements/Probate.php
+++ b/app/Elements/Probate.php
@@ -24,7 +24,7 @@ namespace Fisharebest\Webtrees\Elements;
*/
class Probate extends AbstractEventElement
{
- protected const SUBTAGS = [
+ protected const array SUBTAGS = [
'TYPE' => '0:1:?',
'DATE' => '0:1',
'AGE' => '0:1',
diff --git a/app/Elements/ReceivingSystemName.php b/app/Elements/ReceivingSystemName.php
index d71c10defb..bbf242d4dd 100644
--- a/app/Elements/ReceivingSystemName.php
+++ b/app/Elements/ReceivingSystemName.php
@@ -32,7 +32,7 @@ use Fisharebest\Webtrees\Tree;
*/
class ReceivingSystemName extends AbstractElement
{
- protected const MAXIMUM_LENGTH = 20;
+ protected const int MAXIMUM_LENGTH = 20;
/**
* Create a default value for this element.
diff --git a/app/Elements/RelationIsDescriptor.php b/app/Elements/RelationIsDescriptor.php
index 18931057f8..0d30a626ab 100644
--- a/app/Elements/RelationIsDescriptor.php
+++ b/app/Elements/RelationIsDescriptor.php
@@ -35,7 +35,7 @@ use function uasort;
*/
class RelationIsDescriptor extends AbstractElement
{
- protected const MAXIMUM_LENGTH = 25;
+ protected const int MAXIMUM_LENGTH = 25;
/**
* A list of controlled values for this element
diff --git a/app/Elements/ReligiousAffiliation.php b/app/Elements/ReligiousAffiliation.php
index 66980f6526..c5a52f7c29 100644
--- a/app/Elements/ReligiousAffiliation.php
+++ b/app/Elements/ReligiousAffiliation.php
@@ -25,9 +25,9 @@ namespace Fisharebest\Webtrees\Elements;
*/
class ReligiousAffiliation extends AbstractElement
{
- protected const MAXIMUM_LENGTH = 120;
+ protected const int MAXIMUM_LENGTH = 120;
- protected const SUBTAGS = [
+ protected const array SUBTAGS = [
'TYPE' => '0:1:?',
'DATE' => '0:1',
'PLAC' => '0:1',
diff --git a/app/Elements/RepositoryRecord.php b/app/Elements/RepositoryRecord.php
index 1503c65b02..dcdb2747fe 100644
--- a/app/Elements/RepositoryRecord.php
+++ b/app/Elements/RepositoryRecord.php
@@ -24,7 +24,7 @@ namespace Fisharebest\Webtrees\Elements;
*/
class RepositoryRecord extends AbstractElement
{
- protected const SUBTAGS = [
+ protected const array SUBTAGS = [
'NAME' => '0:1',
'ADDR' => '0:1',
'PHON' => '0:1',
diff --git a/app/Elements/ResearchTask.php b/app/Elements/ResearchTask.php
index 2f727e886a..35ad6d78ef 100644
--- a/app/Elements/ResearchTask.php
+++ b/app/Elements/ResearchTask.php
@@ -26,7 +26,7 @@ use Fisharebest\Webtrees\Tree;
*/
class ResearchTask extends AbstractElement
{
- protected const SUBTAGS = [
+ protected const array SUBTAGS = [
'DATE' => '0:1',
'NOTE' => '0:M',
'_WT_USER' => '0:1',
diff --git a/app/Elements/ResidenceWithValue.php b/app/Elements/ResidenceWithValue.php
index c684733d66..c623104ae7 100644
--- a/app/Elements/ResidenceWithValue.php
+++ b/app/Elements/ResidenceWithValue.php
@@ -24,7 +24,7 @@ namespace Fisharebest\Webtrees\Elements;
*/
class ResidenceWithValue extends AbstractElement
{
- protected const SUBTAGS = [
+ protected const array SUBTAGS = [
'TYPE' => '0:1:?',
'DATE' => '0:1',
'PLAC' => '0:1',
diff --git a/app/Elements/ResponsibleAgency.php b/app/Elements/ResponsibleAgency.php
index 5639e3d95a..5e5fb3f003 100644
--- a/app/Elements/ResponsibleAgency.php
+++ b/app/Elements/ResponsibleAgency.php
@@ -28,5 +28,5 @@ namespace Fisharebest\Webtrees\Elements;
*/
class ResponsibleAgency extends AbstractElement
{
- protected const MAXIMUM_LENGTH = 120;
+ protected const int MAXIMUM_LENGTH = 120;
}
diff --git a/app/Elements/RestrictionNotice.php b/app/Elements/RestrictionNotice.php
index 7eb54a593a..bd7e5262e1 100644
--- a/app/Elements/RestrictionNotice.php
+++ b/app/Elements/RestrictionNotice.php
@@ -48,12 +48,12 @@ use function strtoupper;
*/
class RestrictionNotice extends AbstractElement
{
- public const VALUE_NONE = 'NONE';
- public const VALUE_PRIVACY = 'PRIVACY';
- public const VALUE_CONFIDENTIAL = 'CONFIDENTIAL';
- public const VALUE_LOCKED = 'LOCKED';
+ public const string VALUE_NONE = 'NONE';
+ public const string VALUE_PRIVACY = 'PRIVACY';
+ public const string VALUE_CONFIDENTIAL = 'CONFIDENTIAL';
+ public const string VALUE_LOCKED = 'LOCKED';
- private const CANONICAL = [
+ private const array CANONICAL = [
// Store the locked value after the privacy value.
self::VALUE_LOCKED . ', ' . self::VALUE_NONE => self::VALUE_NONE . ', ' . self::VALUE_LOCKED,
self::VALUE_LOCKED . ', ' . self::VALUE_PRIVACY => self::VALUE_PRIVACY . ', ' . self::VALUE_LOCKED,
@@ -62,10 +62,10 @@ class RestrictionNotice extends AbstractElement
'invisible' => self::VALUE_PRIVACY,
];
- private const ICON_CONFIDENTIAL = '<i class="icon-resn-confidential"></i>';
- private const ICON_LOCKED = '<i class="icon-resn-locked"></i> ';
- private const ICON_NONE = '<i class="icon-resn-none"></i>';
- private const ICON_PRIVACY = '<i class="icon-resn-privacy"></i>';
+ private const string ICON_CONFIDENTIAL = '<i class="icon-resn-confidential"></i>';
+ private const string ICON_LOCKED = '<i class="icon-resn-locked"></i> ';
+ private const string ICON_NONE = '<i class="icon-resn-none"></i>';
+ private const string ICON_PRIVACY = '<i class="icon-resn-privacy"></i>';
/**
* Convert a value to a canonical form.
diff --git a/app/Elements/Retirement.php b/app/Elements/Retirement.php
index ac00e8fee5..3f56d002f1 100644
--- a/app/Elements/Retirement.php
+++ b/app/Elements/Retirement.php
@@ -24,7 +24,7 @@ namespace Fisharebest\Webtrees\Elements;
*/
class Retirement extends AbstractEventElement
{
- protected const SUBTAGS = [
+ protected const array SUBTAGS = [
'TYPE' => '0:1:?',
'DATE' => '0:1',
'AGE' => '0:1',
diff --git a/app/Elements/RoleInEvent.php b/app/Elements/RoleInEvent.php
index 4121ed007e..81d5dcc3eb 100644
--- a/app/Elements/RoleInEvent.php
+++ b/app/Elements/RoleInEvent.php
@@ -37,7 +37,7 @@ use function strtoupper;
*/
class RoleInEvent extends AbstractElement
{
- protected const MAXIMUM_LENGTH = 15;
+ protected const int MAXIMUM_LENGTH = 15;
/**
* Convert a value to a canonical form.
diff --git a/app/Elements/RomanizedType.php b/app/Elements/RomanizedType.php
index fc00630197..61893cb568 100644
--- a/app/Elements/RomanizedType.php
+++ b/app/Elements/RomanizedType.php
@@ -28,7 +28,7 @@ use function strtoupper;
*/
class RomanizedType extends AbstractElement
{
- protected const MAXIMUM_LENGTH = 30;
+ protected const int MAXIMUM_LENGTH = 30;
/**
* Convert a value to a canonical form.
diff --git a/app/Elements/ScholasticAchievement.php b/app/Elements/ScholasticAchievement.php
index 0cd00143b2..66d906c3c3 100644
--- a/app/Elements/ScholasticAchievement.php
+++ b/app/Elements/ScholasticAchievement.php
@@ -25,7 +25,7 @@ namespace Fisharebest\Webtrees\Elements;
*/
class ScholasticAchievement extends AbstractElement
{
- protected const SUBTAGS = [
+ protected const array SUBTAGS = [
'TYPE' => '0:1:?',
'DATE' => '0:1',
'AGE' => '0:1',
diff --git a/app/Elements/SocialSecurityNumber.php b/app/Elements/SocialSecurityNumber.php
index 1c8d0099ae..3e4fab86b8 100644
--- a/app/Elements/SocialSecurityNumber.php
+++ b/app/Elements/SocialSecurityNumber.php
@@ -25,9 +25,9 @@ namespace Fisharebest\Webtrees\Elements;
*/
class SocialSecurityNumber extends AbstractElement
{
- protected const MAXIMUM_LENGTH = 11;
+ protected const int MAXIMUM_LENGTH = 11;
- protected const SUBTAGS = [
+ protected const array SUBTAGS = [
'TYPE' => '0:1:?',
'DATE' => '0:1',
'PLAC' => '0:1',
diff --git a/app/Elements/SourceCallNumber.php b/app/Elements/SourceCallNumber.php
index c2bb60b4e8..c69600105a 100644
--- a/app/Elements/SourceCallNumber.php
+++ b/app/Elements/SourceCallNumber.php
@@ -28,11 +28,11 @@ use Fisharebest\Webtrees\Tree;
*/
class SourceCallNumber extends AbstractElement
{
- protected const SUBTAGS = [
+ protected const array SUBTAGS = [
'MEDI' => '0:1',
];
- protected const MAXIMUM_LENGTH = 120;
+ protected const int MAXIMUM_LENGTH = 120;
/**
* Display the value of this type of element.
*
diff --git a/app/Elements/SourceData.php b/app/Elements/SourceData.php
index 40dede63fe..f336f44d84 100644
--- a/app/Elements/SourceData.php
+++ b/app/Elements/SourceData.php
@@ -24,7 +24,7 @@ namespace Fisharebest\Webtrees\Elements;
*/
class SourceData extends EmptyElement
{
- protected const SUBTAGS = [
+ protected const array SUBTAGS = [
'DATE' => '0:1',
'TEXT' => '0:M',
];
diff --git a/app/Elements/SourceFiledByEntry.php b/app/Elements/SourceFiledByEntry.php
index d403110b3e..5012f95273 100644
--- a/app/Elements/SourceFiledByEntry.php
+++ b/app/Elements/SourceFiledByEntry.php
@@ -25,5 +25,5 @@ namespace Fisharebest\Webtrees\Elements;
*/
class SourceFiledByEntry extends AbstractElement
{
- protected const MAXIMUM_LENGTH = 60;
+ protected const int MAXIMUM_LENGTH = 60;
}
diff --git a/app/Elements/SourceMediaType.php b/app/Elements/SourceMediaType.php
index c7938286f7..350361415d 100644
--- a/app/Elements/SourceMediaType.php
+++ b/app/Elements/SourceMediaType.php
@@ -33,26 +33,26 @@ use function uasort;
*/
class SourceMediaType extends AbstractElement
{
- public const VALUE_AUDIO = 'AUDIO';
- public const VALUE_BOOK = 'BOOK';
- public const VALUE_CARD = 'CARD';
- public const VALUE_CERTIFICATE = 'CERTIFICATE';
- public const VALUE_COAT = 'COAT';
- public const VALUE_DOCUMENT = 'DOCUMENT';
- public const VALUE_ELECTRONIC = 'ELECTRONIC';
- public const VALUE_FICHE = 'FICHE';
- public const VALUE_FILM = 'FILM';
- public const VALUE_MAGAZINE = 'MAGAZINE';
- public const VALUE_MANUSCRIPT = 'MANUSCRIPT';
- public const VALUE_MAP = 'MAP';
- public const VALUE_NEWSPAPER = 'NEWSPAPER';
- public const VALUE_OTHER = 'OTHER';
- public const VALUE_PAINTING = 'PAINTING';
- public const VALUE_PHOTO = 'PHOTO';
- public const VALUE_TOMBSTONE = 'TOMBSTONE';
- public const VALUE_VIDEO = 'VIDEO';
+ public const string VALUE_AUDIO = 'AUDIO';
+ public const string VALUE_BOOK = 'BOOK';
+ public const string VALUE_CARD = 'CARD';
+ public const string VALUE_CERTIFICATE = 'CERTIFICATE';
+ public const string VALUE_COAT = 'COAT';
+ public const string VALUE_DOCUMENT = 'DOCUMENT';
+ public const string VALUE_ELECTRONIC = 'ELECTRONIC';
+ public const string VALUE_FICHE = 'FICHE';
+ public const string VALUE_FILM = 'FILM';
+ public const string VALUE_MAGAZINE = 'MAGAZINE';
+ public const string VALUE_MANUSCRIPT = 'MANUSCRIPT';
+ public const string VALUE_MAP = 'MAP';
+ public const string VALUE_NEWSPAPER = 'NEWSPAPER';
+ public const string VALUE_OTHER = 'OTHER';
+ public const string VALUE_PAINTING = 'PAINTING';
+ public const string VALUE_PHOTO = 'PHOTO';
+ public const string VALUE_TOMBSTONE = 'TOMBSTONE';
+ public const string VALUE_VIDEO = 'VIDEO';
- protected const MAXIMUM_LENGTH = 15;
+ protected const int MAXIMUM_LENGTH = 15;
/**
* Convert a value to a canonical form.
diff --git a/app/Elements/SourceRecord.php b/app/Elements/SourceRecord.php
index 99cc5281d2..c5180abf82 100644
--- a/app/Elements/SourceRecord.php
+++ b/app/Elements/SourceRecord.php
@@ -24,7 +24,7 @@ namespace Fisharebest\Webtrees\Elements;
*/
class SourceRecord extends AbstractElement
{
- protected const SUBTAGS = [
+ protected const array SUBTAGS = [
'TITL' => '0:1',
'ABBR' => '0:1',
'AUTH' => '0:1',
diff --git a/app/Elements/SubmissionRecord.php b/app/Elements/SubmissionRecord.php
index 8bcf1b220c..09419b7ea7 100644
--- a/app/Elements/SubmissionRecord.php
+++ b/app/Elements/SubmissionRecord.php
@@ -24,7 +24,7 @@ namespace Fisharebest\Webtrees\Elements;
*/
class SubmissionRecord extends AbstractElement
{
- protected const SUBTAGS = [
+ protected const array SUBTAGS = [
'SUBM' => '0:1',
'FAMF' => '0:1',
'TEMP' => '0:1',
diff --git a/app/Elements/SubmitterName.php b/app/Elements/SubmitterName.php
index d2014190b3..3cd2aa4317 100644
--- a/app/Elements/SubmitterName.php
+++ b/app/Elements/SubmitterName.php
@@ -25,5 +25,5 @@ namespace Fisharebest\Webtrees\Elements;
*/
class SubmitterName extends AbstractElement
{
- protected const MAXIMUM_LENGTH = 60;
+ protected const int MAXIMUM_LENGTH = 60;
}
diff --git a/app/Elements/SubmitterRecord.php b/app/Elements/SubmitterRecord.php
index ad34dae16f..8a5a5f91e9 100644
--- a/app/Elements/SubmitterRecord.php
+++ b/app/Elements/SubmitterRecord.php
@@ -24,7 +24,7 @@ namespace Fisharebest\Webtrees\Elements;
*/
class SubmitterRecord extends AbstractElement
{
- protected const SUBTAGS = [
+ protected const array SUBTAGS = [
'NAME' => '0:1',
'ADDR' => '0:1',
'PHON' => '0:1',
diff --git a/app/Elements/SubmitterRegisteredRfn.php b/app/Elements/SubmitterRegisteredRfn.php
index fd89cbf3a9..6bf78480bb 100644
--- a/app/Elements/SubmitterRegisteredRfn.php
+++ b/app/Elements/SubmitterRegisteredRfn.php
@@ -26,5 +26,5 @@ namespace Fisharebest\Webtrees\Elements;
*/
class SubmitterRegisteredRfn extends AbstractElement
{
- protected const MAXIMUM_LENGTH = 30;
+ protected const int MAXIMUM_LENGTH = 30;
}
diff --git a/app/Elements/TimeValue.php b/app/Elements/TimeValue.php
index 037141c0ad..72bb1a7534 100644
--- a/app/Elements/TimeValue.php
+++ b/app/Elements/TimeValue.php
@@ -30,5 +30,5 @@ namespace Fisharebest\Webtrees\Elements;
*/
class TimeValue extends AbstractElement
{
- protected const PATTERN = '([01][0-9]|2[0-3]):[0-5][0-9](:[0-5][0-9]([.][0-9]+)?)?';
+ protected const string PATTERN = '([01][0-9]|2[0-3]):[0-5][0-9](:[0-5][0-9]([.][0-9]+)?)?';
}
diff --git a/app/Elements/TransmissionDate.php b/app/Elements/TransmissionDate.php
index 1da375e37f..e4e0eebd08 100644
--- a/app/Elements/TransmissionDate.php
+++ b/app/Elements/TransmissionDate.php
@@ -26,7 +26,7 @@ namespace Fisharebest\Webtrees\Elements;
*/
class TransmissionDate extends DateValueToday
{
- protected const SUBTAGS = [
+ protected const array SUBTAGS = [
'TIME' => '1:1',
];
diff --git a/app/Elements/Uid.php b/app/Elements/Uid.php
index 58a4092cfc..fdc5e8f3eb 100644
--- a/app/Elements/Uid.php
+++ b/app/Elements/Uid.php
@@ -27,7 +27,7 @@ use Fisharebest\Webtrees\Tree;
*/
class Uid extends AbstractElement
{
- protected const MAXIMUM_LENGTH = 36;
+ protected const int MAXIMUM_LENGTH = 36;
/**
* Create a default value for this element.
diff --git a/app/Elements/UserReferenceNumber.php b/app/Elements/UserReferenceNumber.php
index fbec66dfa3..858671100b 100644
--- a/app/Elements/UserReferenceNumber.php
+++ b/app/Elements/UserReferenceNumber.php
@@ -28,5 +28,5 @@ namespace Fisharebest\Webtrees\Elements;
class UserReferenceNumber extends AbstractElement
{
// Which child elements can appear under this element.
- protected const SUBTAGS = ['TYPE' => '0:1'];
+ protected const array SUBTAGS = ['TYPE' => '0:1'];
}
diff --git a/app/Elements/UserReferenceType.php b/app/Elements/UserReferenceType.php
index 4da1b13ce3..453abe16ca 100644
--- a/app/Elements/UserReferenceType.php
+++ b/app/Elements/UserReferenceType.php
@@ -25,5 +25,5 @@ namespace Fisharebest\Webtrees\Elements;
*/
class UserReferenceType extends AbstractElement
{
- protected const MAXIMUM_LENGTH = 40;
+ protected const int MAXIMUM_LENGTH = 40;
}
diff --git a/app/Elements/VersionNumber.php b/app/Elements/VersionNumber.php
index 12ea12f9f4..000895ea72 100644
--- a/app/Elements/VersionNumber.php
+++ b/app/Elements/VersionNumber.php
@@ -30,7 +30,7 @@ use function e;
*/
class VersionNumber extends AbstractElement
{
- protected const MAXIMUM_LENGTH = 15;
+ protected const int MAXIMUM_LENGTH = 15;
/**
* Display the value of this type of element.
*
diff --git a/app/Elements/Will.php b/app/Elements/Will.php
index 4825b42d3d..780e20ecb9 100644
--- a/app/Elements/Will.php
+++ b/app/Elements/Will.php
@@ -24,7 +24,7 @@ namespace Fisharebest\Webtrees\Elements;
*/
class Will extends AbstractEventElement
{
- protected const SUBTAGS = [
+ protected const array SUBTAGS = [
'TYPE' => '0:1:?',
'DATE' => '0:1',
'AGE' => '0:1:?',
diff --git a/app/Elements/XrefAssociate.php b/app/Elements/XrefAssociate.php
index d3951cc8c7..814e6d2f4c 100644
--- a/app/Elements/XrefAssociate.php
+++ b/app/Elements/XrefAssociate.php
@@ -25,7 +25,7 @@ namespace Fisharebest\Webtrees\Elements;
*/
class XrefAssociate extends XrefIndividual
{
- protected const SUBTAGS = [
+ protected const array SUBTAGS = [
'RELA' => '0:1',
'NOTE' => '0:M',
'SOUR' => '0:M',
diff --git a/app/Elements/XrefRepository.php b/app/Elements/XrefRepository.php
index 3d17360d1b..599eb591bb 100644
--- a/app/Elements/XrefRepository.php
+++ b/app/Elements/XrefRepository.php
@@ -35,7 +35,7 @@ use function view;
*/
class XrefRepository extends AbstractXrefElement
{
- protected const SUBTAGS = [
+ protected const array SUBTAGS = [
'CALN' => '0:1',
'NOTE' => '0:M',
];
diff --git a/app/Elements/XrefSource.php b/app/Elements/XrefSource.php
index fa36c61469..9cb305e86e 100644
--- a/app/Elements/XrefSource.php
+++ b/app/Elements/XrefSource.php
@@ -38,7 +38,7 @@ use function view;
*/
class XrefSource extends AbstractXrefElement
{
- protected const SUBTAGS = [
+ protected const array SUBTAGS = [
'PAGE' => '0:1',
'EVEN' => '0:1',
'DATA' => '0:1',
diff --git a/app/Encodings/ANSEL.php b/app/Encodings/ANSEL.php
index 64a2c57d92..2d922d5a52 100644
--- a/app/Encodings/ANSEL.php
+++ b/app/Encodings/ANSEL.php
@@ -91,9 +91,9 @@ use function strtr;
*/
class ANSEL extends AbstractEncoding
{
- public const NAME = 'ANSEL';
+ public const string NAME = 'ANSEL';
- protected const TO_UTF8 = [
+ protected const array TO_UTF8 = [
"\x80" => UTF8::REPLACEMENT_CHARACTER,
"\x81" => UTF8::REPLACEMENT_CHARACTER,
"\x82" => UTF8::REPLACEMENT_CHARACTER,
@@ -225,7 +225,7 @@ class ANSEL extends AbstractEncoding
];
// The subset of pre-composed UTF8 characters that can be made from ANSEL characters.
- private const PRECOMPOSED_CHARACTERS = [
+ private const array PRECOMPOSED_CHARACTERS = [
'A' . UTF8::COMBINING_ACUTE_ACCENT => UTF8::LATIN_CAPITAL_LETTER_A_WITH_ACUTE,
'A' . UTF8::COMBINING_BREVE => UTF8::LATIN_CAPITAL_LETTER_A_WITH_BREVE,
'A' . UTF8::COMBINING_BREVE . UTF8::COMBINING_ACUTE_ACCENT => UTF8::LATIN_CAPITAL_LETTER_A_WITH_BREVE_AND_ACUTE,
@@ -640,13 +640,13 @@ class ANSEL extends AbstractEncoding
];
// ANSEL supports O and U with a horn diacritic, but not the combining diacritic.
- private const HORN_CONVERT_STEP_1 = [
+ private const array HORN_CONVERT_STEP_1 = [
'O' . UTF8::COMBINING_HORN => "\x00O_WITH_HORN\x00",
'U' . UTF8::COMBINING_HORN => "\x00U_WITH_HORN\x00",
'o' . UTF8::COMBINING_HORN => "\x00o_WITH_HORN\x00",
'u' . UTF8::COMBINING_HORN => "\x00u_WITH_HORN\x00",
];
- private const HORN_CONVERT_STEP_2 = [
+ private const array HORN_CONVERT_STEP_2 = [
"\x00O_WITH_HORN\x00" => "\xAC",
"\x00U_WITH_HORN\x00" => "\xAD",
"\x00o_WITH_HORN\x00" => "\xBC",
diff --git a/app/Encodings/ASCII.php b/app/Encodings/ASCII.php
index e3ac60142e..42d9620946 100644
--- a/app/Encodings/ASCII.php
+++ b/app/Encodings/ASCII.php
@@ -24,11 +24,11 @@ namespace Fisharebest\Webtrees\Encodings;
*/
class ASCII extends AbstractEncoding
{
- public const NAME = 'ASCII';
+ public const string NAME = 'ASCII';
- protected const REPLACEMENT_CHARACTER = '?';
+ protected const string REPLACEMENT_CHARACTER = '?';
- protected const TO_UTF8 = [
+ protected const array TO_UTF8 = [
"\x80" => UTF8::REPLACEMENT_CHARACTER,
"\x81" => UTF8::REPLACEMENT_CHARACTER,
"\x82" => UTF8::REPLACEMENT_CHARACTER,
diff --git a/app/Encodings/AbstractEncoding.php b/app/Encodings/AbstractEncoding.php
index c327de1122..15deafe26f 100644
--- a/app/Encodings/AbstractEncoding.php
+++ b/app/Encodings/AbstractEncoding.php
@@ -35,10 +35,10 @@ use const PREG_SPLIT_NO_EMPTY;
*/
abstract class AbstractEncoding implements EncodingInterface
{
- protected const REPLACEMENT_CHARACTER = '?';
+ protected const string REPLACEMENT_CHARACTER = '?';
/** @var array<string,string> Encoded character => utf8 character */
- protected const TO_UTF8 = [];
+ protected const array TO_UTF8 = [];
/**
* Convert a string from UTF-8 to another encoding.
diff --git a/app/Encodings/AbstractUTF16Encoding.php b/app/Encodings/AbstractUTF16Encoding.php
index b821781bed..d28397b1f1 100644
--- a/app/Encodings/AbstractUTF16Encoding.php
+++ b/app/Encodings/AbstractUTF16Encoding.php
@@ -31,7 +31,7 @@ use function strlen;
abstract class AbstractUTF16Encoding implements EncodingInterface
{
// Concrete classes should implement this.
- public const REPLACEMENT_CHARACTER = '';
+ public const string REPLACEMENT_CHARACTER = '';
/**
* Convert a string from UTF-8 to another encoding.
diff --git a/app/Encodings/CP437.php b/app/Encodings/CP437.php
index 295ee82fd9..b144dbcea1 100644
--- a/app/Encodings/CP437.php
+++ b/app/Encodings/CP437.php
@@ -26,9 +26,9 @@ namespace Fisharebest\Webtrees\Encodings;
*/
class CP437 extends AbstractEncoding
{
- public const NAME = 'CP437';
+ public const string NAME = 'CP437';
- protected const TO_UTF8 = [
+ protected const array TO_UTF8 = [
"\x80" => UTF8::LATIN_CAPITAL_LETTER_C_WITH_CEDILLA,
"\x81" => UTF8::LATIN_SMALL_LETTER_U_WITH_DIAERESIS,
"\x82" => UTF8::LATIN_SMALL_LETTER_E_WITH_ACUTE,
diff --git a/app/Encodings/CP850.php b/app/Encodings/CP850.php
index 8771fd4fd2..1d904ca460 100644
--- a/app/Encodings/CP850.php
+++ b/app/Encodings/CP850.php
@@ -26,9 +26,9 @@ namespace Fisharebest\Webtrees\Encodings;
*/
class CP850 extends AbstractEncoding
{
- public const NAME = 'CP850';
+ public const string NAME = 'CP850';
- protected const TO_UTF8 = [
+ protected const array TO_UTF8 = [
"\x80" => UTF8::LATIN_CAPITAL_LETTER_C_WITH_CEDILLA,
"\x81" => UTF8::LATIN_SMALL_LETTER_U_WITH_DIAERESIS,
"\x82" => UTF8::LATIN_SMALL_LETTER_E_WITH_ACUTE,
diff --git a/app/Encodings/EncodingInterface.php b/app/Encodings/EncodingInterface.php
index 0b35a3a9da..cf7f7680c6 100644
--- a/app/Encodings/EncodingInterface.php
+++ b/app/Encodings/EncodingInterface.php
@@ -25,7 +25,7 @@ namespace Fisharebest\Webtrees\Encodings;
interface EncodingInterface
{
// Concrete classes should re-define this. Use the ICONV name, where possible.
- //public const NAME = '????';
+ //public const string NAME = '????';
/**
* Convert a string from UTF-8 encoding to another encoding.
diff --git a/app/Encodings/ISO88591.php b/app/Encodings/ISO88591.php
index 2fdc19069e..33055701c0 100644
--- a/app/Encodings/ISO88591.php
+++ b/app/Encodings/ISO88591.php
@@ -26,9 +26,9 @@ namespace Fisharebest\Webtrees\Encodings;
*/
class ISO88591 extends AbstractEncoding
{
- public const NAME = 'ISO-8859-1';
+ public const string NAME = 'ISO-8859-1';
- protected const TO_UTF8 = [
+ protected const array TO_UTF8 = [
"\x80" => UTF8::REPLACEMENT_CHARACTER,
"\x81" => UTF8::REPLACEMENT_CHARACTER,
"\x82" => UTF8::REPLACEMENT_CHARACTER,
diff --git a/app/Encodings/ISO88592.php b/app/Encodings/ISO88592.php
index 071ea4da2d..89b458a679 100644
--- a/app/Encodings/ISO88592.php
+++ b/app/Encodings/ISO88592.php
@@ -26,9 +26,9 @@ namespace Fisharebest\Webtrees\Encodings;
*/
class ISO88592 extends AbstractEncoding
{
- public const NAME = 'ISO-8859-2';
+ public const string NAME = 'ISO-8859-2';
- protected const TO_UTF8 = [
+ protected const array TO_UTF8 = [
"\x80" => UTF8::REPLACEMENT_CHARACTER,
"\x81" => UTF8::REPLACEMENT_CHARACTER,
"\x82" => UTF8::REPLACEMENT_CHARACTER,
diff --git a/app/Encodings/MacRoman.php b/app/Encodings/MacRoman.php
index c399ce105d..f497563db1 100644
--- a/app/Encodings/MacRoman.php
+++ b/app/Encodings/MacRoman.php
@@ -24,9 +24,9 @@ namespace Fisharebest\Webtrees\Encodings;
*/
class MacRoman extends AbstractEncoding
{
- public const NAME = 'MACROMAN';
+ public const string NAME = 'MACROMAN';
- protected const TO_UTF8 = [
+ protected const array TO_UTF8 = [
"\x80" => UTF8::LATIN_CAPITAL_LETTER_A_WITH_DIAERESIS,
"\x81" => UTF8::LATIN_CAPITAL_LETTER_A_WITH_RING_ABOVE,
"\x82" => UTF8::LATIN_CAPITAL_LETTER_C_WITH_CEDILLA,
diff --git a/app/Encodings/UTF16BE.php b/app/Encodings/UTF16BE.php
index 802d192ffd..ecd7259e9a 100644
--- a/app/Encodings/UTF16BE.php
+++ b/app/Encodings/UTF16BE.php
@@ -28,10 +28,10 @@ use function ord;
*/
class UTF16BE extends AbstractUTF16Encoding
{
- public const NAME = 'UTF-16BE';
+ public const string NAME = 'UTF-16BE';
- public const BYTE_ORDER_MARK = "\xFE\xFF";
- public const REPLACEMENT_CHARACTER = "\xFF\xFD";
+ public const string BYTE_ORDER_MARK = "\xFE\xFF";
+ public const string REPLACEMENT_CHARACTER = "\xFF\xFD";
/**
* Convert two bytes to a code-point, taking care of byte-order.
diff --git a/app/Encodings/UTF16LE.php b/app/Encodings/UTF16LE.php
index a9d0c50dc8..6ec22ec3da 100644
--- a/app/Encodings/UTF16LE.php
+++ b/app/Encodings/UTF16LE.php
@@ -28,10 +28,10 @@ use function ord;
*/
class UTF16LE extends AbstractUTF16Encoding
{
- public const NAME = 'UTF-16LE';
+ public const string NAME = 'UTF-16LE';
- public const BYTE_ORDER_MARK = "\xFF\xFE";
- public const REPLACEMENT_CHARACTER = "\xFD\xFF";
+ public const string BYTE_ORDER_MARK = "\xFF\xFE";
+ public const string REPLACEMENT_CHARACTER = "\xFD\xFF";
/**
* Convert two bytes to a code-point, taking care of byte-order.
diff --git a/app/Encodings/UTF8.php b/app/Encodings/UTF8.php
index 30777c28ae..b19607ad5b 100644
--- a/app/Encodings/UTF8.php
+++ b/app/Encodings/UTF8.php
@@ -29,778 +29,778 @@ use function mb_substitute_character;
*/
class UTF8 extends AbstractEncoding
{
- public const NAME = 'UTF-8';
+ public const string NAME = 'UTF-8';
- public const START_OF_STRING = "\u{0098}";
- public const STRING_TERMINATOR = "\u{009C}";
- public const NO_BREAK_SPACE = "\u{00A0}";
- public const INVERTED_EXCLAMATION_MARK = "\u{00A1}";
- public const CENT_SIGN = "\u{00A2}";
- public const POUND_SIGN = "\u{00A3}";
- public const CURRENCY_SIGN = "\u{00A4}";
- public const YEN_SIGN = "\u{00A5}";
- public const BROKEN_BAR = "\u{00A6}";
- public const SECTION_SIGN = "\u{00A7}";
- public const DIAERESIS = "\u{00A8}";
- public const COPYRIGHT_SIGN = "\u{00A9}";
- public const FEMININE_ORDINAL_INDICATOR = "\u{00AA}";
- public const LEFT_POINTING_DOUBLE_ANGLE_QUOTATION_MARK = "\u{00AB}";
- public const NOT_SIGN = "\u{00AC}";
- public const SOFT_HYPHEN = "\u{00AD}";
- public const REGISTERED_SIGN = "\u{00AE}";
- public const MACRON = "\u{00AF}";
- public const DEGREE_SIGN = "\u{00B0}";
- public const PLUS_MINUS_SIGN = "\u{00B1}";
- public const SUPERSCRIPT_TWO = "\u{00B2}";
- public const SUPERSCRIPT_THREE = "\u{00B3}";
- public const ACUTE_ACCENT = "\u{00B4}";
- public const MICRO_SIGN = "\u{00B5}";
- public const PILCROW_SIGN = "\u{00B6}";
- public const MIDDLE_DOT = "\u{00B7}";
- public const CEDILLA = "\u{00B8}";
- public const SUPERSCRIPT_ONE = "\u{00B9}";
- public const MASCULINE_ORDINAL_INDICATOR = "\u{00BA}";
- public const RIGHT_POINTING_DOUBLE_ANGLE_QUOTATION_MARK = "\u{00BB}";
- public const VULGAR_FRACTION_ONE_QUARTER = "\u{00BC}";
- public const VULGAR_FRACTION_ONE_HALF = "\u{00BD}";
- public const VULGAR_FRACTION_THREE_QUARTERS = "\u{00BE}";
- public const INVERTED_QUESTION_MARK = "\u{00BF}";
- public const LATIN_CAPITAL_LETTER_A_WITH_GRAVE = "\u{00C0}";
- public const LATIN_CAPITAL_LETTER_A_WITH_ACUTE = "\u{00C1}";
- public const LATIN_CAPITAL_LETTER_A_WITH_CIRCUMFLEX = "\u{00C2}";
- public const LATIN_CAPITAL_LETTER_A_WITH_TILDE = "\u{00C3}";
- public const LATIN_CAPITAL_LETTER_A_WITH_DIAERESIS = "\u{00C4}";
- public const LATIN_CAPITAL_LETTER_A_WITH_RING_ABOVE = "\u{00C5}";
- public const LATIN_CAPITAL_LETTER_AE = "\u{00C6}";
- public const LATIN_CAPITAL_LETTER_C_WITH_CEDILLA = "\u{00C7}";
- public const LATIN_CAPITAL_LETTER_E_WITH_GRAVE = "\u{00C8}";
- public const LATIN_CAPITAL_LETTER_E_WITH_ACUTE = "\u{00C9}";
- public const LATIN_CAPITAL_LETTER_E_WITH_CIRCUMFLEX = "\u{00CA}";
- public const LATIN_CAPITAL_LETTER_E_WITH_DIAERESIS = "\u{00CB}";
- public const LATIN_CAPITAL_LETTER_I_WITH_GRAVE = "\u{00CC}";
- public const LATIN_CAPITAL_LETTER_I_WITH_ACUTE = "\u{00CD}";
- public const LATIN_CAPITAL_LETTER_I_WITH_CIRCUMFLEX = "\u{00CE}";
- public const LATIN_CAPITAL_LETTER_I_WITH_DIAERESIS = "\u{00CF}";
- public const LATIN_CAPITAL_LETTER_ETH = "\u{00D0}";
- public const LATIN_CAPITAL_LETTER_N_WITH_TILDE = "\u{00D1}";
- public const LATIN_CAPITAL_LETTER_O_WITH_GRAVE = "\u{00D2}";
- public const LATIN_CAPITAL_LETTER_O_WITH_ACUTE = "\u{00D3}";
- public const LATIN_CAPITAL_LETTER_O_WITH_CIRCUMFLEX = "\u{00D4}";
- public const LATIN_CAPITAL_LETTER_O_WITH_TILDE = "\u{00D5}";
- public const LATIN_CAPITAL_LETTER_O_WITH_DIAERESIS = "\u{00D6}";
- public const MULTIPLICATION_SIGN = "\u{00D7}";
- public const LATIN_CAPITAL_LETTER_O_WITH_STROKE = "\u{00D8}";
- public const LATIN_CAPITAL_LETTER_U_WITH_GRAVE = "\u{00D9}";
- public const LATIN_CAPITAL_LETTER_U_WITH_ACUTE = "\u{00DA}";
- public const LATIN_CAPITAL_LETTER_U_WITH_CIRCUMFLEX = "\u{00DB}";
- public const LATIN_CAPITAL_LETTER_U_WITH_DIAERESIS = "\u{00DC}";
- public const LATIN_CAPITAL_LETTER_Y_WITH_ACUTE = "\u{00DD}";
- public const LATIN_CAPITAL_LETTER_THORN = "\u{00DE}";
- public const LATIN_SMALL_LETTER_SHARP_S = "\u{00DF}";
- public const LATIN_SMALL_LETTER_A_WITH_GRAVE = "\u{00E0}";
- public const LATIN_SMALL_LETTER_A_WITH_ACUTE = "\u{00E1}";
- public const LATIN_SMALL_LETTER_A_WITH_CIRCUMFLEX = "\u{00E2}";
- public const LATIN_SMALL_LETTER_A_WITH_TILDE = "\u{00E3}";
- public const LATIN_SMALL_LETTER_A_WITH_DIAERESIS = "\u{00E4}";
- public const LATIN_SMALL_LETTER_A_WITH_RING_ABOVE = "\u{00E5}";
- public const LATIN_SMALL_LETTER_AE = "\u{00E6}";
- public const LATIN_SMALL_LETTER_C_WITH_CEDILLA = "\u{00E7}";
- public const LATIN_SMALL_LETTER_E_WITH_GRAVE = "\u{00E8}";
- public const LATIN_SMALL_LETTER_E_WITH_ACUTE = "\u{00E9}";
- public const LATIN_SMALL_LETTER_E_WITH_CIRCUMFLEX = "\u{00EA}";
- public const LATIN_SMALL_LETTER_E_WITH_DIAERESIS = "\u{00EB}";
- public const LATIN_SMALL_LETTER_I_WITH_GRAVE = "\u{00EC}";
- public const LATIN_SMALL_LETTER_I_WITH_ACUTE = "\u{00ED}";
- public const LATIN_SMALL_LETTER_I_WITH_CIRCUMFLEX = "\u{00EE}";
- public const LATIN_SMALL_LETTER_I_WITH_DIAERESIS = "\u{00EF}";
- public const LATIN_SMALL_LETTER_ETH = "\u{00F0}";
- public const LATIN_SMALL_LETTER_N_WITH_TILDE = "\u{00F1}";
- public const LATIN_SMALL_LETTER_O_WITH_GRAVE = "\u{00F2}";
- public const LATIN_SMALL_LETTER_O_WITH_ACUTE = "\u{00F3}";
- public const LATIN_SMALL_LETTER_O_WITH_CIRCUMFLEX = "\u{00F4}";
- public const LATIN_SMALL_LETTER_O_WITH_TILDE = "\u{00F5}";
- public const LATIN_SMALL_LETTER_O_WITH_DIAERESIS = "\u{00F6}";
- public const DIVISION_SIGN = "\u{00F7}";
- public const LATIN_SMALL_LETTER_O_WITH_STROKE = "\u{00F8}";
- public const LATIN_SMALL_LETTER_U_WITH_GRAVE = "\u{00F9}";
- public const LATIN_SMALL_LETTER_U_WITH_ACUTE = "\u{00FA}";
- public const LATIN_SMALL_LETTER_U_WITH_CIRCUMFLEX = "\u{00FB}";
- public const LATIN_SMALL_LETTER_U_WITH_DIAERESIS = "\u{00FC}";
- public const LATIN_SMALL_LETTER_Y_WITH_ACUTE = "\u{00FD}";
- public const LATIN_SMALL_LETTER_THORN = "\u{00FE}";
- public const LATIN_SMALL_LETTER_Y_WITH_DIAERESIS = "\u{00FF}";
- public const LATIN_CAPITAL_LETTER_A_WITH_MACRON = "\u{0100}";
- public const LATIN_SMALL_LETTER_A_WITH_MACRON = "\u{0101}";
- public const LATIN_CAPITAL_LETTER_A_WITH_BREVE = "\u{0102}";
- public const LATIN_SMALL_LETTER_A_WITH_BREVE = "\u{0103}";
- public const LATIN_CAPITAL_LETTER_A_WITH_OGONEK = "\u{0104}";
- public const LATIN_SMALL_LETTER_A_WITH_OGONEK = "\u{0105}";
- public const LATIN_CAPITAL_LETTER_C_WITH_ACUTE = "\u{0106}";
- public const LATIN_SMALL_LETTER_C_WITH_ACUTE = "\u{0107}";
- public const LATIN_CAPITAL_LETTER_C_WITH_CIRCUMFLEX = "\u{0108}";
- public const LATIN_SMALL_LETTER_C_WITH_CIRCUMFLEX = "\u{0109}";
- public const LATIN_CAPITAL_LETTER_C_WITH_DOT_ABOVE = "\u{010A}";
- public const LATIN_SMALL_LETTER_C_WITH_DOT_ABOVE = "\u{010B}";
- public const LATIN_CAPITAL_LETTER_C_WITH_CARON = "\u{010C}";
- public const LATIN_SMALL_LETTER_C_WITH_CARON = "\u{010D}";
- public const LATIN_CAPITAL_LETTER_D_WITH_CARON = "\u{010E}";
- public const LATIN_SMALL_LETTER_D_WITH_CARON = "\u{010F}";
- public const LATIN_CAPITAL_LETTER_D_WITH_STROKE = "\u{0110}";
- public const LATIN_SMALL_LETTER_D_WITH_STROKE = "\u{0111}";
- public const LATIN_CAPITAL_LETTER_E_WITH_MACRON = "\u{0112}";
- public const LATIN_SMALL_LETTER_E_WITH_MACRON = "\u{0113}";
- public const LATIN_CAPITAL_LETTER_E_WITH_BREVE = "\u{0114}";
- public const LATIN_SMALL_LETTER_E_WITH_BREVE = "\u{0115}";
- public const LATIN_CAPITAL_LETTER_E_WITH_DOT_ABOVE = "\u{0116}";
- public const LATIN_SMALL_LETTER_E_WITH_DOT_ABOVE = "\u{0117}";
- public const LATIN_CAPITAL_LETTER_E_WITH_OGONEK = "\u{0118}";
- public const LATIN_SMALL_LETTER_E_WITH_OGONEK = "\u{0119}";
- public const LATIN_CAPITAL_LETTER_E_WITH_CARON = "\u{011A}";
- public const LATIN_SMALL_LETTER_E_WITH_CARON = "\u{011B}";
- public const LATIN_CAPITAL_LETTER_G_WITH_CIRCUMFLEX = "\u{011C}";
- public const LATIN_SMALL_LETTER_G_WITH_CIRCUMFLEX = "\u{011D}";
- public const LATIN_CAPITAL_LETTER_G_WITH_BREVE = "\u{011E}";
- public const LATIN_SMALL_LETTER_G_WITH_BREVE = "\u{011F}";
- public const LATIN_CAPITAL_LETTER_G_WITH_DOT_ABOVE = "\u{0120}";
- public const LATIN_SMALL_LETTER_G_WITH_DOT_ABOVE = "\u{0121}";
- public const LATIN_CAPITAL_LETTER_G_WITH_CEDILLA = "\u{0122}";
- public const LATIN_SMALL_LETTER_G_WITH_CEDILLA = "\u{0123}";
- public const LATIN_CAPITAL_LETTER_H_WITH_CIRCUMFLEX = "\u{0124}";
- public const LATIN_SMALL_LETTER_H_WITH_CIRCUMFLEX = "\u{0125}";
- public const LATIN_CAPITAL_LETTER_H_WITH_STROKE = "\u{0126}";
- public const LATIN_SMALL_LETTER_H_WITH_STROKE = "\u{0127}";
- public const LATIN_CAPITAL_LETTER_I_WITH_TILDE = "\u{0128}";
- public const LATIN_SMALL_LETTER_I_WITH_TILDE = "\u{0129}";
- public const LATIN_CAPITAL_LETTER_I_WITH_MACRON = "\u{012A}";
- public const LATIN_SMALL_LETTER_I_WITH_MACRON = "\u{012B}";
- public const LATIN_CAPITAL_LETTER_I_WITH_BREVE = "\u{012C}";
- public const LATIN_SMALL_LETTER_I_WITH_BREVE = "\u{012D}";
- public const LATIN_CAPITAL_LETTER_I_WITH_OGONEK = "\u{012E}";
- public const LATIN_SMALL_LETTER_I_WITH_OGONEK = "\u{012F}";
- public const LATIN_CAPITAL_LETTER_I_WITH_DOT_ABOVE = "\u{0130}";
- public const LATIN_SMALL_LETTER_DOTLESS_I = "\u{0131}";
- public const LATIN_CAPITAL_LIGATURE_IJ = "\u{0132}";
- public const LATIN_SMALL_LIGATURE_IJ = "\u{0133}";
- public const LATIN_CAPITAL_LETTER_J_WITH_CIRCUMFLEX = "\u{0134}";
- public const LATIN_SMALL_LETTER_J_WITH_CIRCUMFLEX = "\u{0135}";
- public const LATIN_CAPITAL_LETTER_K_WITH_CEDILLA = "\u{0136}";
- public const LATIN_SMALL_LETTER_K_WITH_CEDILLA = "\u{0137}";
- public const LATIN_SMALL_LETTER_KRA = "\u{0138}";
- public const LATIN_CAPITAL_LETTER_L_WITH_ACUTE = "\u{0139}";
- public const LATIN_SMALL_LETTER_L_WITH_ACUTE = "\u{013A}";
- public const LATIN_CAPITAL_LETTER_L_WITH_CEDILLA = "\u{013B}";
- public const LATIN_SMALL_LETTER_L_WITH_CEDILLA = "\u{013C}";
- public const LATIN_CAPITAL_LETTER_L_WITH_CARON = "\u{013D}";
- public const LATIN_SMALL_LETTER_L_WITH_CARON = "\u{013E}";
- public const LATIN_CAPITAL_LETTER_L_WITH_MIDDLE_DOT = "\u{013F}";
- public const LATIN_SMALL_LETTER_L_WITH_MIDDLE_DOT = "\u{0140}";
- public const LATIN_CAPITAL_LETTER_L_WITH_STROKE = "\u{0141}";
- public const LATIN_SMALL_LETTER_L_WITH_STROKE = "\u{0142}";
- public const LATIN_CAPITAL_LETTER_N_WITH_ACUTE = "\u{0143}";
- public const LATIN_SMALL_LETTER_N_WITH_ACUTE = "\u{0144}";
- public const LATIN_CAPITAL_LETTER_N_WITH_CEDILLA = "\u{0145}";
- public const LATIN_SMALL_LETTER_N_WITH_CEDILLA = "\u{0146}";
- public const LATIN_CAPITAL_LETTER_N_WITH_CARON = "\u{0147}";
- public const LATIN_SMALL_LETTER_N_WITH_CARON = "\u{0148}";
- public const LATIN_SMALL_LETTER_N_PRECEDED_BY_APOSTROPHE = "\u{0149}";
- public const LATIN_CAPITAL_LETTER_ENG = "\u{014A}";
- public const LATIN_SMALL_LETTER_ENG = "\u{014B}";
- public const LATIN_CAPITAL_LETTER_O_WITH_MACRON = "\u{014C}";
- public const LATIN_SMALL_LETTER_O_WITH_MACRON = "\u{014D}";
- public const LATIN_CAPITAL_LETTER_O_WITH_BREVE = "\u{014E}";
- public const LATIN_SMALL_LETTER_O_WITH_BREVE = "\u{014F}";
- public const LATIN_CAPITAL_LETTER_O_WITH_DOUBLE_ACUTE = "\u{0150}";
- public const LATIN_SMALL_LETTER_O_WITH_DOUBLE_ACUTE = "\u{0151}";
- public const LATIN_CAPITAL_LIGATURE_OE = "\u{0152}";
- public const LATIN_SMALL_LIGATURE_OE = "\u{0153}";
- public const LATIN_CAPITAL_LETTER_R_WITH_ACUTE = "\u{0154}";
- public const LATIN_SMALL_LETTER_R_WITH_ACUTE = "\u{0155}";
- public const LATIN_CAPITAL_LETTER_R_WITH_CEDILLA = "\u{0156}";
- public const LATIN_SMALL_LETTER_R_WITH_CEDILLA = "\u{0157}";
- public const LATIN_CAPITAL_LETTER_R_WITH_CARON = "\u{0158}";
- public const LATIN_SMALL_LETTER_R_WITH_CARON = "\u{0159}";
- public const LATIN_CAPITAL_LETTER_S_WITH_ACUTE = "\u{015A}";
- public const LATIN_SMALL_LETTER_S_WITH_ACUTE = "\u{015B}";
- public const LATIN_CAPITAL_LETTER_S_WITH_CIRCUMFLEX = "\u{015C}";
- public const LATIN_SMALL_LETTER_S_WITH_CIRCUMFLEX = "\u{015D}";
- public const LATIN_CAPITAL_LETTER_S_WITH_CEDILLA = "\u{015E}";
- public const LATIN_SMALL_LETTER_S_WITH_CEDILLA = "\u{015F}";
- public const LATIN_CAPITAL_LETTER_S_WITH_CARON = "\u{0160}";
- public const LATIN_SMALL_LETTER_S_WITH_CARON = "\u{0161}";
- public const LATIN_CAPITAL_LETTER_T_WITH_CEDILLA = "\u{0162}";
- public const LATIN_SMALL_LETTER_T_WITH_CEDILLA = "\u{0163}";
- public const LATIN_CAPITAL_LETTER_T_WITH_CARON = "\u{0164}";
- public const LATIN_SMALL_LETTER_T_WITH_CARON = "\u{0165}";
- public const LATIN_CAPITAL_LETTER_T_WITH_STROKE = "\u{0166}";
- public const LATIN_SMALL_LETTER_T_WITH_STROKE = "\u{0167}";
- public const LATIN_CAPITAL_LETTER_U_WITH_TILDE = "\u{0168}";
- public const LATIN_SMALL_LETTER_U_WITH_TILDE = "\u{0169}";
- public const LATIN_CAPITAL_LETTER_U_WITH_MACRON = "\u{016A}";
- public const LATIN_SMALL_LETTER_U_WITH_MACRON = "\u{016B}";
- public const LATIN_CAPITAL_LETTER_U_WITH_BREVE = "\u{016C}";
- public const LATIN_SMALL_LETTER_U_WITH_BREVE = "\u{016D}";
- public const LATIN_CAPITAL_LETTER_U_WITH_RING_ABOVE = "\u{016E}";
- public const LATIN_SMALL_LETTER_U_WITH_RING_ABOVE = "\u{016F}";
- public const LATIN_CAPITAL_LETTER_U_WITH_DOUBLE_ACUTE = "\u{0170}";
- public const LATIN_SMALL_LETTER_U_WITH_DOUBLE_ACUTE = "\u{0171}";
- public const LATIN_CAPITAL_LETTER_U_WITH_OGONEK = "\u{0172}";
- public const LATIN_SMALL_LETTER_U_WITH_OGONEK = "\u{0173}";
- public const LATIN_CAPITAL_LETTER_W_WITH_CIRCUMFLEX = "\u{0174}";
- public const LATIN_SMALL_LETTER_W_WITH_CIRCUMFLEX = "\u{0175}";
- public const LATIN_CAPITAL_LETTER_Y_WITH_CIRCUMFLEX = "\u{0176}";
- public const LATIN_SMALL_LETTER_Y_WITH_CIRCUMFLEX = "\u{0177}";
- public const LATIN_CAPITAL_LETTER_Y_WITH_DIAERESIS = "\u{0178}";
- public const LATIN_CAPITAL_LETTER_Z_WITH_ACUTE = "\u{0179}";
- public const LATIN_SMALL_LETTER_Z_WITH_ACUTE = "\u{017A}";
- public const LATIN_CAPITAL_LETTER_Z_WITH_DOT_ABOVE = "\u{017B}";
- public const LATIN_SMALL_LETTER_Z_WITH_DOT_ABOVE = "\u{017C}";
- public const LATIN_CAPITAL_LETTER_Z_WITH_CARON = "\u{017D}";
- public const LATIN_SMALL_LETTER_Z_WITH_CARON = "\u{017E}";
- public const LATIN_SMALL_LETTER_LONG_S = "\u{017F}";
- public const LATIN_SMALL_LETTER_B_WITH_STROKE = "\u{0180}";
- public const LATIN_CAPITAL_LETTER_B_WITH_HOOK = "\u{0181}";
- public const LATIN_CAPITAL_LETTER_B_WITH_TOPBAR = "\u{0182}";
- public const LATIN_SMALL_LETTER_B_WITH_TOPBAR = "\u{0183}";
- public const LATIN_CAPITAL_LETTER_F_WITH_HOOK = "\u{0191}";
- public const LATIN_SMALL_LETTER_F_WITH_HOOK = "\u{0192}";
- public const LATIN_SMALL_LETTER_O_WITH_HORN = "\u{01A1}";
- public const LATIN_CAPITAL_LETTER_O_WITH_HORN = "\u{01A0}";
- public const LATIN_CAPITAL_LETTER_U_WITH_HORN = "\u{01AF}";
- public const LATIN_SMALL_LETTER_U_WITH_HORN = "\u{01B0}";
- public const LATIN_CAPITAL_LETTER_A_WITH_CARON = "\u{01CD}";
- public const LATIN_SMALL_LETTER_A_WITH_CARON = "\u{01CE}";
- public const LATIN_CAPITAL_LETTER_I_WITH_CARON = "\u{01CF}";
- public const LATIN_SMALL_LETTER_I_WITH_CARON = "\u{01D0}";
- public const LATIN_CAPITAL_LETTER_O_WITH_CARON = "\u{01D1}";
- public const LATIN_SMALL_LETTER_O_WITH_CARON = "\u{01D2}";
- public const LATIN_CAPITAL_LETTER_U_WITH_CARON = "\u{01D3}";
- public const LATIN_SMALL_LETTER_U_WITH_CARON = "\u{01D4}";
- public const LATIN_CAPITAL_LETTER_U_WITH_DIAERESIS_AND_MACRON = "\u{01D5}";
- public const LATIN_SMALL_LETTER_U_WITH_DIAERESIS_AND_MACRON = "\u{01D6}";
- public const LATIN_CAPITAL_LETTER_U_WITH_DIAERESIS_AND_ACUTE = "\u{01D7}";
- public const LATIN_SMALL_LETTER_U_WITH_DIAERESIS_AND_ACUTE = "\u{01D8}";
- public const LATIN_CAPITAL_LETTER_U_WITH_DIAERESIS_AND_CARON = "\u{01D9}";
- public const LATIN_SMALL_LETTER_U_WITH_DIAERESIS_AND_CARON = "\u{01DA}";
- public const LATIN_CAPITAL_LETTER_U_WITH_DIAERESIS_AND_GRAVE = "\u{01DB}";
- public const LATIN_SMALL_LETTER_U_WITH_DIAERESIS_AND_GRAVE = "\u{01DC}";
- public const LATIN_CAPITAL_LETTER_A_WITH_DIAERESIS_AND_MACRON = "\u{01DE}";
- public const LATIN_SMALL_LETTER_A_WITH_DIAERESIS_AND_MACRON = "\u{01DF}";
- public const LATIN_CAPITAL_LETTER_A_WITH_DOT_ABOVE_AND_MACRON = "\u{01E0}";
- public const LATIN_SMALL_LETTER_A_WITH_DOT_ABOVE_AND_MACRON = "\u{01E1}";
- public const LATIN_CAPITAL_LETTER_AE_WITH_MACRON = "\u{01E2}";
- public const LATIN_SMALL_LETTER_AE_WITH_MACRON = "\u{01E3}";
- public const LATIN_CAPITAL_LETTER_G_WITH_CARON = "\u{01E6}";
- public const LATIN_SMALL_LETTER_G_WITH_CARON = "\u{01E7}";
- public const LATIN_CAPITAL_LETTER_K_WITH_CARON = "\u{01E8}";
- public const LATIN_SMALL_LETTER_K_WITH_CARON = "\u{01E9}";
- public const LATIN_CAPITAL_LETTER_O_WITH_OGONEK = "\u{01EA}";
- public const LATIN_SMALL_LETTER_O_WITH_OGONEK = "\u{01EB}";
- public const LATIN_CAPITAL_LETTER_O_WITH_OGONEK_AND_MACRON = "\u{01EC}";
- public const LATIN_SMALL_LETTER_O_WITH_OGONEK_AND_MACRON = "\u{01ED}";
- public const LATIN_SMALL_LETTER_J_WITH_CARON = "\u{01F0}";
- public const LATIN_CAPITAL_LETTER_G_WITH_ACUTE = "\u{01F4}";
- public const LATIN_SMALL_LETTER_G_WITH_ACUTE = "\u{01F5}";
- public const LATIN_CAPITAL_LETTER_N_WITH_GRAVE = "\u{01F8}";
- public const LATIN_SMALL_LETTER_N_WITH_GRAVE = "\u{01F9}";
- public const LATIN_CAPITAL_LETTER_A_WITH_RING_ABOVE_AND_ACUTE = "\u{01FA}";
- public const LATIN_SMALL_LETTER_A_WITH_RING_ABOVE_AND_ACUTE = "\u{01FB}";
- public const LATIN_CAPITAL_LETTER_AE_WITH_ACUTE = "\u{01FC}";
- public const LATIN_SMALL_LETTER_AE_WITH_ACUTE = "\u{01FD}";
- public const LATIN_CAPITAL_LETTER_O_WITH_STROKE_AND_ACUTE = "\u{01FE}";
- public const LATIN_SMALL_LETTER_O_WITH_STROKE_AND_ACUTE = "\u{01FF}";
- public const LATIN_CAPITAL_LETTER_S_WITH_COMMA_BELOW = "\u{0218}";
- public const LATIN_SMALL_LETTER_S_WITH_COMMA_BELOW = "\u{0219}";
- public const LATIN_CAPITAL_LETTER_T_WITH_COMMA_BELOW = "\u{021A}";
- public const LATIN_SMALL_LETTER_T_WITH_COMMA_BELOW = "\u{021B}";
- public const LATIN_CAPITAL_LETTER_H_WITH_CARON = "\u{021E}";
- public const LATIN_SMALL_LETTER_H_WITH_CARON = "\u{021F}";
- public const LATIN_CAPITAL_LETTER_A_WITH_DOT_ABOVE = "\u{0226}";
- public const LATIN_SMALL_LETTER_A_WITH_DOT_ABOVE = "\u{0227}";
- public const LATIN_CAPITAL_LETTER_E_WITH_CEDILLA = "\u{0228}";
- public const LATIN_SMALL_LETTER_E_WITH_CEDILLA = "\u{0229}";
- public const LATIN_CAPITAL_LETTER_O_WITH_DIAERESIS_AND_MACRON = "\u{022A}";
- public const LATIN_SMALL_LETTER_O_WITH_DIAERESIS_AND_MACRON = "\u{022B}";
- public const LATIN_CAPITAL_LETTER_O_WITH_TILDE_AND_MACRON = "\u{022C}";
- public const LATIN_SMALL_LETTER_O_WITH_TILDE_AND_MACRON = "\u{022D}";
- public const LATIN_CAPITAL_LETTER_O_WITH_DOT_ABOVE = "\u{022E}";
- public const LATIN_SMALL_LETTER_O_WITH_DOT_ABOVE = "\u{022F}";
- public const LATIN_CAPITAL_LETTER_O_WITH_DOT_ABOVE_AND_MACRON = "\u{0230}";
- public const LATIN_SMALL_LETTER_O_WITH_DOT_ABOVE_AND_MACRON = "\u{0231}";
- public const LATIN_CAPITAL_LETTER_Y_WITH_MACRON = "\u{0232}";
- public const LATIN_SMALL_LETTER_Y_WITH_MACRON = "\u{0233}";
- public const MODIFIER_LETTER_PRIME = "\u{02B9}";
- public const MODIFIER_LETTER_DOUBLE_PRIME = "\u{02BA}";
- public const MODIFIER_LETTER_TURNED_COMMA = "\u{02BB}";
- public const MODIFIER_LETTER_APOSTROPHE = "\u{02BC}";
- public const MODIFIER_LETTER_CIRCUMFLEX_ACCENT = "\u{02C6}";
- public const CARON = "\u{02C7}";
- public const BREVE = "\u{02D8}";
- public const DOT_ABOVE = "\u{02D9}";
- public const RING_ABOVE = "\u{02DA}";
- public const OGONEK = "\u{02DB}";
- public const SMALL_TILDE = "\u{02DC}";
- public const DOUBLE_ACUTE_ACCENT = "\u{02DD}";
- public const COMBINING_GRAVE_ACCENT = "\u{0300}";
- public const COMBINING_ACUTE_ACCENT = "\u{0301}";
- public const COMBINING_CIRCUMFLEX_ACCENT = "\u{0302}";
- public const COMBINING_TILDE = "\u{0303}";
- public const COMBINING_MACRON = "\u{0304}";
- public const COMBINING_OVERLINE = "\u{0305}";
- public const COMBINING_BREVE = "\u{0306}";
- public const COMBINING_DOT_ABOVE = "\u{0307}";
- public const COMBINING_DIAERESIS = "\u{0308}";
- public const COMBINING_HOOK_ABOVE = "\u{0309}";
- public const COMBINING_RING_ABOVE = "\u{030A}";
- public const COMBINING_DOUBLE_ACUTE_ACCENT = "\u{030B}";
- public const COMBINING_CARON = "\u{030C}";
- public const COMBINING_CANDRABINDU = "\u{0310}";
- public const COMBINING_COMMA_ABOVE = "\u{0313}";
- public const COMBINING_COMMA_ABOVE_RIGHT = "\u{0315}";
- public const COMBINING_HORN = "\u{031B}";
- public const COMBINING_LEFT_HALF_RING_BELOW = "\u{031C}";
- public const COMBINING_DOT_BELOW = "\u{0323}";
- public const COMBINING_DIAERESIS_BELOW = "\u{0324}";
- public const COMBINING_RING_BELOW = "\u{0325}";
- public const COMBINING_COMMA_BELOW = "\u{0326}";
- public const COMBINING_CEDILLA = "\u{0327}";
- public const COMBINING_OGONEK = "\u{0328}";
- public const COMBINING_BRIDGE_BELOW = "\u{032A}";
- public const COMBINING_BREVE_BELOW = "\u{032E}";
- public const COMBINING_LOW_LINE = "\u{0332}";
- public const COMBINING_DOUBLE_LOW_LINE = "\u{0333}";
- public const COMBINING_SHORT_STROKE_OVERLAY = "\u{0335}";
- public const COMBINING_LONG_STROKE_OVERLAY = "\u{0336}";
- public const COMBINING_SHORT_SOLIDUS_OVERLAY = "\u{0338}";
- public const COMBINING_LONG_SOLIDUS_OVERLAY = "\u{0338}";
- public const COMBINING_DOUBLE_TILDE = "\u{0360}";
- public const COMBINING_DOUBLE_INVERTED_BREVE = "\u{0361}";
- public const GREEK_CAPITAL_LETTER_GAMMA = "\u{0393}";
- public const GREEK_CAPITAL_LETTER_THETA = "\u{0398}";
- public const GREEK_CAPITAL_LETTER_SIGMA = "\u{03A3}";
- public const GREEK_CAPITAL_LETTER_PHI = "\u{03A6}";
- public const GREEK_CAPITAL_LETTER_OMEGA = "\u{03A9}";
- public const GREEK_SMALL_LETTER_ALPHA = "\u{03B1}";
- public const GREEK_SMALL_LETTER_DELTA = "\u{03B4}";
- public const GREEK_SMALL_LETTER_EPSILON = "\u{03B5}";
- public const GREEK_SMALL_LETTER_PI = "\u{03C0}";
- public const GREEK_SMALL_LETTER_SIGMA = "\u{03C3}";
- public const GREEK_SMALL_LETTER_TAU = "\u{03C4}";
- public const GREEK_SMALL_LETTER_PHI = "\u{03C6}";
- public const CYRILLIC_CAPITAL_LETTER_IO = "\u{0401}";
- public const CYRILLIC_CAPITAL_LETTER_DJE = "\u{0402}";
- public const CYRILLIC_CAPITAL_LETTER_GJE = "\u{0403}";
- public const CYRILLIC_CAPITAL_LETTER_UKRANIAN_IE = "\u{0404}";
- public const CYRILLIC_CAPITAL_LETTER_DZE = "\u{0405}";
- public const CYRILLIC_CAPITAL_LETTER_BYELORUSSIAN_UKRAINIAN_I = "\u{0406}";
- public const CYRILLIC_CAPITAL_LETTER_YI = "\u{0407}";
- public const CYRILLIC_CAPITAL_LETTER_JE = "\u{0408}";
- public const CYRILLIC_CAPITAL_LETTER_LJE = "\u{0409}";
- public const CYRILLIC_CAPITAL_LETTER_NJE = "\u{040A}";
- public const CYRILLIC_CAPITAL_LETTER_TSHE = "\u{040B}";
- public const CYRILLIC_CAPITAL_LETTER_KJE = "\u{040C}";
- public const CYRILLIC_CAPITAL_LETTER_SHORT_U = "\u{040E}";
- public const CYRILLIC_CAPITAL_LETTER_DZHE = "\u{040F}";
- public const CYRILLIC_CAPITAL_LETTER_A = "\u{0410}";
- public const CYRILLIC_CAPITAL_LETTER_BE = "\u{0411}";
- public const CYRILLIC_CAPITAL_LETTER_VE = "\u{0412}";
- public const CYRILLIC_CAPITAL_LETTER_GHE = "\u{0413}";
- public const CYRILLIC_CAPITAL_LETTER_DE = "\u{0414}";
- public const CYRILLIC_CAPITAL_LETTER_IE = "\u{0415}";
- public const CYRILLIC_CAPITAL_LETTER_ZHE = "\u{0416}";
- public const CYRILLIC_CAPITAL_LETTER_ZE = "\u{0417}";
- public const CYRILLIC_CAPITAL_LETTER_I = "\u{0418}";
- public const CYRILLIC_CAPITAL_LETTER_SHORT_I = "\u{0419}";
- public const CYRILLIC_CAPITAL_LETTER_KA = "\u{041A}";
- public const CYRILLIC_CAPITAL_LETTER_EL = "\u{041B}";
- public const CYRILLIC_CAPITAL_LETTER_EM = "\u{041C}";
- public const CYRILLIC_CAPITAL_LETTER_EN = "\u{041D}";
- public const CYRILLIC_CAPITAL_LETTER_O = "\u{041E}";
- public const CYRILLIC_CAPITAL_LETTER_PE = "\u{041F}";
- public const CYRILLIC_CAPITAL_LETTER_ER = "\u{0420}";
- public const CYRILLIC_CAPITAL_LETTER_ES = "\u{0421}";
- public const CYRILLIC_CAPITAL_LETTER_TE = "\u{0422}";
- public const CYRILLIC_CAPITAL_LETTER_U = "\u{0423}";
- public const CYRILLIC_CAPITAL_LETTER_EF = "\u{0424}";
- public const CYRILLIC_CAPITAL_LETTER_HA = "\u{0425}";
- public const CYRILLIC_CAPITAL_LETTER_TSE = "\u{0426}";
- public const CYRILLIC_CAPITAL_LETTER_CHE = "\u{0427}";
- public const CYRILLIC_CAPITAL_LETTER_SHA = "\u{0428}";
- public const CYRILLIC_CAPITAL_LETTER_SHCHA = "\u{0429}";
- public const CYRILLIC_CAPITAL_LETTER_HARD_SIGN = "\u{042A}";
- public const CYRILLIC_CAPITAL_LETTER_YERU = "\u{042B}";
- public const CYRILLIC_CAPITAL_LETTER_SOFT_SIGN = "\u{042C}";
- public const CYRILLIC_CAPITAL_LETTER_E = "\u{042D}";
- public const CYRILLIC_CAPITAL_LETTER_YU = "\u{042E}";
- public const CYRILLIC_CAPITAL_LETTER_YA = "\u{042F}";
- public const CYRILLIC_SMALL_LETTER_A = "\u{0430}";
- public const CYRILLIC_SMALL_LETTER_BE = "\u{0431}";
- public const CYRILLIC_SMALL_LETTER_VE = "\u{0432}";
- public const CYRILLIC_SMALL_LETTER_GHE = "\u{0433}";
- public const CYRILLIC_SMALL_LETTER_DE = "\u{0434}";
- public const CYRILLIC_SMALL_LETTER_IE = "\u{0435}";
- public const CYRILLIC_SMALL_LETTER_ZHE = "\u{0436}";
- public const CYRILLIC_SMALL_LETTER_ZE = "\u{0437}";
- public const CYRILLIC_SMALL_LETTER_I = "\u{0438}";
- public const CYRILLIC_SMALL_LETTER_SHORT_I = "\u{0439}";
- public const CYRILLIC_SMALL_LETTER_KA = "\u{043A}";
- public const CYRILLIC_SMALL_LETTER_EL = "\u{043B}";
- public const CYRILLIC_SMALL_LETTER_EM = "\u{043C}";
- public const CYRILLIC_SMALL_LETTER_EN = "\u{043D}";
- public const CYRILLIC_SMALL_LETTER_O = "\u{043E}";
- public const CYRILLIC_SMALL_LETTER_PE = "\u{043F}";
- public const CYRILLIC_SMALL_LETTER_ER = "\u{0440}";
- public const CYRILLIC_SMALL_LETTER_ES = "\u{0441}";
- public const CYRILLIC_SMALL_LETTER_TE = "\u{0442}";
- public const CYRILLIC_SMALL_LETTER_U = "\u{0443}";
- public const CYRILLIC_SMALL_LETTER_EF = "\u{0444}";
- public const CYRILLIC_SMALL_LETTER_HA = "\u{0445}";
- public const CYRILLIC_SMALL_LETTER_TSE = "\u{0446}";
- public const CYRILLIC_SMALL_LETTER_CHE = "\u{0447}";
- public const CYRILLIC_SMALL_LETTER_SHA = "\u{0448}";
- public const CYRILLIC_SMALL_LETTER_SHCHA = "\u{0449}";
- public const CYRILLIC_SMALL_LETTER_HARD_SIGN = "\u{044A}";
- public const CYRILLIC_SMALL_LETTER_YERU = "\u{044B}";
- public const CYRILLIC_SMALL_LETTER_SOFT_SIGN = "\u{044C}";
- public const CYRILLIC_SMALL_LETTER_E = "\u{044D}";
- public const CYRILLIC_SMALL_LETTER_YU = "\u{044E}";
- public const CYRILLIC_SMALL_LETTER_YA = "\u{044F}";
- public const CYRILLIC_SMALL_LETTER_IO = "\u{0451}";
- public const CYRILLIC_SMALL_LETTER_DJE = "\u{0452}";
- public const CYRILLIC_SMALL_LETTER_GJE = "\u{0453}";
- public const CYRILLIC_SMALL_LETTER_UKRANIAN_IE = "\u{0454}";
- public const CYRILLIC_SMALL_LETTER_DZE = "\u{0455}";
- public const CYRILLIC_SMALL_LETTER_BYELORUSSIAN_UKRAINIAN_I = "\u{0456}";
- public const CYRILLIC_SMALL_LETTER_YI = "\u{0457}";
- public const CYRILLIC_SMALL_LETTER_JE = "\u{0458}";
- public const CYRILLIC_SMALL_LETTER_LJE = "\u{0459}";
- public const CYRILLIC_SMALL_LETTER_NJE = "\u{045A}";
- public const CYRILLIC_SMALL_LETTER_TSHE = "\u{045B}";
- public const CYRILLIC_SMALL_LETTER_KJE = "\u{045C}";
- public const CYRILLIC_SMALL_LETTER_SHORT_U = "\u{045E}";
- public const CYRILLIC_SMALL_LETTER_DZHE = "\u{045F}";
- public const CYRILLIC_CAPITAL_LETTER_GHE_WITH_UPTURN = "\u{0490}";
- public const CYRILLIC_SMALL_LETTER_GHE_WITH_UPTURN = "\u{0491}";
- public const ARABIC_LETTER_HAMZA = "\u{0621}";
- public const ARABIC_LETTER_ALEF = "\u{0627}";
- public const ARABIC_LETTER_BEH = "\u{0628}";
- public const ARABIC_LETTER_TEH_MARBUTA = "\u{0629}";
- public const ARABIC_LETTER_TEH = "\u{062A}";
- public const ARABIC_LETTER_THEH = "\u{062B}";
- public const ARABIC_LETTER_JEEM = "\u{062C}";
- public const ARABIC_LETTER_HAH = "\u{062D}";
- public const ARABIC_LETTER_KHAH = "\u{062E}";
- public const ARABIC_LETTER_DAL = "\u{062F}";
- public const ARABIC_LETTER_THAL = "\u{0630}";
- public const ARABIC_LETTER_REH = "\u{0631}";
- public const ARABIC_LETTER_ZAIN = "\u{0632}";
- public const ARABIC_LETTER_SEEN = "\u{0633}";
- public const ARABIC_LETTER_SHEEN = "\u{0634}";
- public const ARABIC_LETTER_SAD = "\u{0635}";
- public const ARABIC_LETTER_DAD = "\u{0636}";
- public const ARABIC_LETTER_TAH = "\u{0637}";
- public const ARABIC_LETTER_ZAH = "\u{0638}";
- public const ARABIC_LETTER_AIN = "\u{0639}";
- public const ARABIC_LETTER_GHAIN = "\u{063A}";
- public const ARABIC_LETTER_FEH = "\u{0641}";
- public const ARABIC_LETTER_QAF = "\u{0642}";
- public const ARABIC_LETTER_KAF = "\u{0643}";
- public const ARABIC_LETTER_LAM = "\u{0644}";
- public const ARABIC_LETTER_MEEM = "\u{0645}";
- public const ARABIC_LETTER_NOON = "\u{0646}";
- public const ARABIC_LETTER_HEH = "\u{0647}";
- public const ARABIC_LETTER_WAW = "\u{0648}";
- public const ARABIC_LETTER_ALEF_MAKSURA = "\u{0649}";
- public const ARABIC_LETTER_YEH = "\u{064A}";
- public const LATIN_CAPITAL_LETTER_A_WITH_RING_BELOW = "\u{1E00}";
- public const LATIN_SMALL_LETTER_A_WITH_RING_BELOW = "\u{1E01}";
- public const LATIN_CAPITAL_LETTER_B_WITH_DOT_ABOVE = "\u{1E02}";
- public const LATIN_SMALL_LETTER_B_WITH_DOT_ABOVE = "\u{1E03}";
- public const LATIN_CAPITAL_LETTER_B_WITH_DOT_BELOW = "\u{1E04}";
- public const LATIN_SMALL_LETTER_B_WITH_DOT_BELOW = "\u{1E05}";
- public const LATIN_CAPITAL_LETTER_C_WITH_CEDILLA_AND_ACUTE = "\u{1E08}";
- public const LATIN_SMALL_LETTER_C_WITH_CEDILLA_AND_ACUTE = "\u{1E09}";
- public const LATIN_CAPITAL_LETTER_D_WITH_DOT_ABOVE = "\u{1E0A}";
- public const LATIN_SMALL_LETTER_D_WITH_DOT_ABOVE = "\u{1E0B}";
- public const LATIN_CAPITAL_LETTER_D_WITH_DOT_BELOW = "\u{1E0C}";
- public const LATIN_SMALL_LETTER_D_WITH_DOT_BELOW = "\u{1E0D}";
- public const LATIN_CAPITAL_LETTER_SHARP_S = "\u{1E9E}";
- public const LATIN_CAPITAL_LETTER_D_WITH_CEDILLA = "\u{1E10}";
- public const LATIN_SMALL_LETTER_D_WITH_CEDILLA = "\u{1E11}";
- public const LATIN_CAPITAL_LETTER_E_WITH_MACRON_AND_GRAVE = "\u{1E14}";
- public const LATIN_SMALL_LETTER_E_WITH_MACRON_AND_GRAVE = "\u{1E15}";
- public const LATIN_CAPITAL_LETTER_E_WITH_MACRON_AND_ACUTE = "\u{1E16}";
- public const LATIN_SMALL_LETTER_E_WITH_MACRON_AND_ACUTE = "\u{1E17}";
- public const LATIN_CAPITAL_LETTER_E_WITH_CEDILLA_AND_BREVE = "\u{1E1C}";
- public const LATIN_SMALL_LETTER_E_WITH_CEDILLA_AND_BREVE = "\u{1E1D}";
- public const LATIN_CAPITAL_LETTER_F_WITH_DOT_ABOVE = "\u{1E1E}";
- public const LATIN_SMALL_LETTER_F_WITH_DOT_ABOVE = "\u{1E1F}";
- public const LATIN_CAPITAL_LETTER_G_WITH_MACRON = "\u{1E20}";
- public const LATIN_SMALL_LETTER_G_WITH_MACRON = "\u{1E21}";
- public const LATIN_CAPITAL_LETTER_H_WITH_DOT_ABOVE = "\u{1E22}";
- public const LATIN_SMALL_LETTER_H_WITH_DOT_ABOVE = "\u{1E23}";
- public const LATIN_CAPITAL_LETTER_H_WITH_DOT_BELOW = "\u{1E24}";
- public const LATIN_SMALL_LETTER_H_WITH_DOT_BELOW = "\u{1E25}";
- public const LATIN_CAPITAL_LETTER_H_WITH_DIAERESIS = "\u{1E26}";
- public const LATIN_SMALL_LETTER_H_WITH_DIAERESIS = "\u{1E27}";
- public const LATIN_CAPITAL_LETTER_H_WITH_CEDILLA = "\u{1E28}";
- public const LATIN_SMALL_LETTER_H_WITH_CEDILLA = "\u{1E29}";
- public const LATIN_CAPITAL_LETTER_H_WITH_BREVE_BELOW = "\u{1E2A}";
- public const LATIN_SMALL_LETTER_H_WITH_BREVE_BELOW = "\u{1E2B}";
- public const LATIN_CAPITAL_LETTER_I_WITH_DIAERESIS_AND_ACUTE = "\u{1E2E}";
- public const LATIN_SMALL_LETTER_I_WITH_DIAERESIS_AND_ACUTE = "\u{1E2F}";
- public const LATIN_CAPITAL_LETTER_K_WITH_ACUTE = "\u{1E30}";
- public const LATIN_SMALL_LETTER_K_WITH_ACUTE = "\u{1E31}";
- public const LATIN_CAPITAL_LETTER_K_WITH_DOT_BELOW = "\u{1E32}";
- public const LATIN_SMALL_LETTER_K_WITH_DOT_BELOW = "\u{1E33}";
- public const LATIN_CAPITAL_LETTER_L_WITH_DOT_BELOW = "\u{1E36}";
- public const LATIN_SMALL_LETTER_L_WITH_DOT_BELOW = "\u{1E37}";
- public const LATIN_CAPITAL_LETTER_L_WITH_DOT_BELOW_AND_MACRON = "\u{1E38}";
- public const LATIN_SMALL_LETTER_L_WITH_DOT_BELOW_AND_MACRON = "\u{1E39}";
- public const LATIN_CAPITAL_LETTER_M_WITH_ACUTE = "\u{1E3E}";
- public const LATIN_SMALL_LETTER_M_WITH_ACUTE = "\u{1E3F}";
- public const LATIN_CAPITAL_LETTER_M_WITH_DOT_ABOVE = "\u{1E40}";
- public const LATIN_SMALL_LETTER_M_WITH_DOT_ABOVE = "\u{1E41}";
- public const LATIN_CAPITAL_LETTER_M_WITH_DOT_BELOW = "\u{1E42}";
- public const LATIN_SMALL_LETTER_M_WITH_DOT_BELOW = "\u{1E43}";
- public const LATIN_CAPITAL_LETTER_N_WITH_DOT_ABOVE = "\u{1E44}";
- public const LATIN_SMALL_LETTER_N_WITH_DOT_ABOVE = "\u{1E45}";
- public const LATIN_CAPITAL_LETTER_N_WITH_DOT_BELOW = "\u{1E46}";
- public const LATIN_SMALL_LETTER_N_WITH_DOT_BELOW = "\u{1E47}";
- public const LATIN_CAPITAL_LETTER_O_WITH_TILDE_AND_ACUTE = "\u{1E4C}";
- public const LATIN_SMALL_LETTER_O_WITH_TILDE_AND_ACUTE = "\u{1E4D}";
- public const LATIN_CAPITAL_LETTER_O_WITH_TILDE_AND_DIAERESIS = "\u{1E4E}";
- public const LATIN_SMALL_LETTER_O_WITH_TILDE_AND_DIAERESIS = "\u{1E4F}";
- public const LATIN_CAPITAL_LETTER_O_WITH_MACRON_AND_GRAVE = "\u{1E50}";
- public const LATIN_SMALL_LETTER_O_WITH_MACRON_AND_GRAVE = "\u{1E51}";
- public const LATIN_CAPITAL_LETTER_O_WITH_MACRON_AND_ACUTE = "\u{1E52}";
- public const LATIN_SMALL_LETTER_O_WITH_MACRON_AND_ACUTE = "\u{1E53}";
- public const LATIN_CAPITAL_LETTER_P_WITH_ACUTE = "\u{1E54}";
- public const LATIN_SMALL_LETTER_P_WITH_ACUTE = "\u{1E55}";
- public const LATIN_CAPITAL_LETTER_P_WITH_DOT_ABOVE = "\u{1E56}";
- public const LATIN_SMALL_LETTER_P_WITH_DOT_ABOVE = "\u{1E57}";
- public const LATIN_CAPITAL_LETTER_R_WITH_DOT_ABOVE = "\u{1E58}";
- public const LATIN_SMALL_LETTER_R_WITH_DOT_ABOVE = "\u{1E59}";
- public const LATIN_CAPITAL_LETTER_R_WITH_DOT_BELOW = "\u{1E5A}";
- public const LATIN_SMALL_LETTER_R_WITH_DOT_BELOW = "\u{1E5B}";
- public const LATIN_CAPITAL_LETTER_R_WITH_DOT_BELOW_AND_MACRON = "\u{1E5C}";
- public const LATIN_SMALL_LETTER_R_WITH_DOT_BELOW_AND_MACRON = "\u{1E5D}";
- public const LATIN_CAPITAL_LETTER_S_WITH_DOT_ABOVE = "\u{1E60}";
- public const LATIN_SMALL_LETTER_S_WITH_DOT_ABOVE = "\u{1E61}";
- public const LATIN_CAPITAL_LETTER_S_WITH_DOT_BELOW = "\u{1E62}";
- public const LATIN_SMALL_LETTER_S_WITH_DOT_BELOW = "\u{1E63}";
- public const LATIN_CAPITAL_LETTER_S_WITH_ACUTE_AND_DOT_ABOVE = "\u{1E64}";
- public const LATIN_SMALL_LETTER_S_WITH_ACUTE_AND_DOT_ABOVE = "\u{1E65}";
- public const LATIN_CAPITAL_LETTER_S_WITH_CARON_AND_DOT_ABOVE = "\u{1E66}";
- public const LATIN_SMALL_LETTER_S_WITH_CARON_AND_DOT_ABOVE = "\u{1E67}";
- public const LATIN_CAPITAL_LETTER_S_WITH_DOT_BELOW_AND_DOT_ABOVE = "\u{1E68}";
- public const LATIN_SMALL_LETTER_S_WITH_DOT_BELOW_AND_DOT_ABOVE = "\u{1E69}";
- public const LATIN_CAPITAL_LETTER_T_WITH_DOT_ABOVE = "\u{1E6A}";
- public const LATIN_SMALL_LETTER_T_WITH_DOT_ABOVE = "\u{1E6B}";
- public const LATIN_CAPITAL_LETTER_T_WITH_DOT_BELOW = "\u{1E6C}";
- public const LATIN_SMALL_LETTER_T_WITH_DOT_BELOW = "\u{1E6D}";
- public const LATIN_CAPITAL_LETTER_U_WITH_DIAERESIS_BELOW = "\u{1E72}";
- public const LATIN_SMALL_LETTER_U_WITH_DIAERESIS_BELOW = "\u{1E73}";
- public const LATIN_CAPITAL_LETTER_U_WITH_TILDE_AND_ACUTE = "\u{1E78}";
- public const LATIN_SMALL_LETTER_U_WITH_TILDE_AND_ACUTE = "\u{1E79}";
- public const LATIN_CAPITAL_LETTER_U_WITH_MACRON_AND_DIAERESIS = "\u{1E7A}";
- public const LATIN_SMALL_LETTER_U_WITH_MACRON_AND_DIAERESIS = "\u{1E7B}";
- public const LATIN_CAPITAL_LETTER_V_WITH_TILDE = "\u{1E7C}";
- public const LATIN_SMALL_LETTER_V_WITH_TILDE = "\u{1E7D}";
- public const LATIN_CAPITAL_LETTER_V_WITH_DOT_BELOW = "\u{1E7E}";
- public const LATIN_SMALL_LETTER_V_WITH_DOT_BELOW = "\u{1E7F}";
- public const LATIN_CAPITAL_LETTER_W_WITH_GRAVE = "\u{1E80}";
- public const LATIN_SMALL_LETTER_W_WITH_GRAVE = "\u{1E81}";
- public const LATIN_CAPITAL_LETTER_W_WITH_ACUTE = "\u{1E82}";
- public const LATIN_SMALL_LETTER_W_WITH_ACUTE = "\u{1E83}";
- public const LATIN_CAPITAL_LETTER_W_WITH_DIAERESIS = "\u{1E84}";
- public const LATIN_SMALL_LETTER_W_WITH_DIAERESIS = "\u{1E85}";
- public const LATIN_CAPITAL_LETTER_W_WITH_DOT_ABOVE = "\u{1E86}";
- public const LATIN_SMALL_LETTER_W_WITH_DOT_ABOVE = "\u{1E87}";
- public const LATIN_CAPITAL_LETTER_W_WITH_DOT_BELOW = "\u{1E88}";
- public const LATIN_SMALL_LETTER_W_WITH_DOT_BELOW = "\u{1E89}";
- public const LATIN_CAPITAL_LETTER_X_WITH_DOT_ABOVE = "\u{1E8A}";
- public const LATIN_SMALL_LETTER_X_WITH_DOT_ABOVE = "\u{1E8B}";
- public const LATIN_CAPITAL_LETTER_X_WITH_DIAERESIS = "\u{1E8C}";
- public const LATIN_SMALL_LETTER_X_WITH_DIAERESIS = "\u{1E8D}";
- public const LATIN_CAPITAL_LETTER_Y_WITH_DOT_ABOVE = "\u{1E8E}";
- public const LATIN_SMALL_LETTER_Y_WITH_DOT_ABOVE = "\u{1E8F}";
- public const LATIN_CAPITAL_LETTER_Z_WITH_CIRCUMFLEX = "\u{1E90}";
- public const LATIN_SMALL_LETTER_Z_WITH_CIRCUMFLEX = "\u{1E91}";
- public const LATIN_CAPITAL_LETTER_Z_WITH_DOT_BELOW = "\u{1E92}";
- public const LATIN_SMALL_LETTER_Z_WITH_DOT_BELOW = "\u{1E93}";
- public const LATIN_SMALL_LETTER_T_WITH_DIAERESIS = "\u{1E97}";
- public const LATIN_SMALL_LETTER_W_WITH_RING_ABOVE = "\u{1E98}";
- public const LATIN_SMALL_LETTER_Y_WITH_RING_ABOVE = "\u{1E99}";
- public const LATIN_CAPITAL_LETTER_A_WITH_DOT_BELOW = "\u{1EA0}";
- public const LATIN_SMALL_LETTER_A_WITH_DOT_BELOW = "\u{1EA1}";
- public const LATIN_CAPITAL_LETTER_A_WITH_HOOK_ABOVE = "\u{1EA2}";
- public const LATIN_SMALL_LETTER_A_WITH_HOOK_ABOVE = "\u{1EA3}";
- public const LATIN_CAPITAL_LETTER_A_WITH_CIRCUMFLEX_AND_ACUTE = "\u{1EA4}";
- public const LATIN_SMALL_LETTER_A_WITH_CIRCUMFLEX_AND_ACUTE = "\u{1EA5}";
- public const LATIN_CAPITAL_LETTER_A_WITH_CIRCUMFLEX_AND_GRAVE = "\u{1EA6}";
- public const LATIN_SMALL_LETTER_A_WITH_CIRCUMFLEX_AND_GRAVE = "\u{1EA7}";
- public const LATIN_CAPITAL_LETTER_A_WITH_CIRCUMFLEX_AND_HOOK_ABOVE = "\u{1EA8}";
- public const LATIN_SMALL_LETTER_A_WITH_CIRCUMFLEX_AND_HOOK_ABOVE = "\u{1EA9}";
- public const LATIN_CAPITAL_LETTER_A_WITH_CIRCUMFLEX_AND_TILDE = "\u{1EAA}";
- public const LATIN_SMALL_LETTER_A_WITH_CIRCUMFLEX_AND_TILDE = "\u{1EAB}";
- public const LATIN_CAPITAL_LETTER_A_WITH_CIRCUMFLEX_AND_DOT_BELOW = "\u{1EAC}";
- public const LATIN_SMALL_LETTER_A_WITH_CIRCUMFLEX_AND_DOT_BELOW = "\u{1EAD}";
- public const LATIN_CAPITAL_LETTER_A_WITH_BREVE_AND_ACUTE = "\u{1EAE}";
- public const LATIN_SMALL_LETTER_A_WITH_BREVE_AND_ACUTE = "\u{1EAF}";
- public const LATIN_CAPITAL_LETTER_A_WITH_BREVE_AND_GRAVE = "\u{1EB0}";
- public const LATIN_SMALL_LETTER_A_WITH_BREVE_AND_GRAVE = "\u{1EB1}";
- public const LATIN_CAPITAL_LETTER_A_WITH_BREVE_AND_HOOK_ABOVE = "\u{1EB2}";
- public const LATIN_SMALL_LETTER_A_WITH_BREVE_AND_HOOK_ABOVE = "\u{1EB3}";
- public const LATIN_CAPITAL_LETTER_A_WITH_BREVE_AND_TILDE = "\u{1EB4}";
- public const LATIN_SMALL_LETTER_A_WITH_BREVE_AND_TILDE = "\u{1EB5}";
- public const LATIN_CAPITAL_LETTER_A_WITH_BREVE_AND_DOT_BELOW = "\u{1EB6}";
- public const LATIN_SMALL_LETTER_A_WITH_BREVE_AND_DOT_BELOW = "\u{1EB7}";
- public const LATIN_CAPITAL_LETTER_E_WITH_DOT_BELOW = "\u{1EB8}";
- public const LATIN_SMALL_LETTER_E_WITH_DOT_BELOW = "\u{1EB9}";
- public const LATIN_CAPITAL_LETTER_E_WITH_HOOK_ABOVE = "\u{1EBA}";
- public const LATIN_SMALL_LETTER_E_WITH_HOOK_ABOVE = "\u{1EBB}";
- public const LATIN_CAPITAL_LETTER_E_WITH_TILDE = "\u{1EBC}";
- public const LATIN_SMALL_LETTER_E_WITH_TILDE = "\u{1EBD}";
- public const LATIN_CAPITAL_LETTER_E_WITH_CIRCUMFLEX_AND_ACUTE = "\u{1EBE}";
- public const LATIN_SMALL_LETTER_E_WITH_CIRCUMFLEX_AND_ACUTE = "\u{1EBF}";
- public const LATIN_CAPITAL_LETTER_E_WITH_CIRCUMFLEX_AND_GRAVE = "\u{1EC0}";
- public const LATIN_SMALL_LETTER_E_WITH_CIRCUMFLEX_AND_GRAVE = "\u{1EC1}";
- public const LATIN_CAPITAL_LETTER_E_WITH_CIRCUMFLEX_AND_HOOK_ABOVE = "\u{1EC2}";
- public const LATIN_SMALL_LETTER_E_WITH_CIRCUMFLEX_AND_HOOK_ABOVE = "\u{1EC3}";
- public const LATIN_CAPITAL_LETTER_E_WITH_CIRCUMFLEX_AND_TILDE = "\u{1EC4}";
- public const LATIN_SMALL_LETTER_E_WITH_CIRCUMFLEX_AND_TILDE = "\u{1EC5}";
- public const LATIN_CAPITAL_LETTER_E_WITH_CIRCUMFLEX_AND_DOT_BELOW = "\u{1EC6}";
- public const LATIN_SMALL_LETTER_E_WITH_CIRCUMFLEX_AND_DOT_BELOW = "\u{1EC7}";
- public const LATIN_CAPITAL_LETTER_I_WITH_HOOK_ABOVE = "\u{1EC8}";
- public const LATIN_SMALL_LETTER_I_WITH_HOOK_ABOVE = "\u{1EC9}";
- public const LATIN_CAPITAL_LETTER_I_WITH_DOT_BELOW = "\u{1ECA}";
- public const LATIN_SMALL_LETTER_I_WITH_DOT_BELOW = "\u{1ECB}";
- public const LATIN_CAPITAL_LETTER_O_WITH_DOT_BELOW = "\u{1ECC}";
- public const LATIN_SMALL_LETTER_O_WITH_DOT_BELOW = "\u{1ECD}";
- public const LATIN_CAPITAL_LETTER_O_WITH_HOOK_ABOVE = "\u{1ECE}";
- public const LATIN_SMALL_LETTER_O_WITH_HOOK_ABOVE = "\u{1ECF}";
- public const LATIN_CAPITAL_LETTER_O_WITH_CIRCUMFLEX_AND_ACUTE = "\u{1ED0}";
- public const LATIN_SMALL_LETTER_O_WITH_CIRCUMFLEX_AND_ACUTE = "\u{1ED1}";
- public const LATIN_CAPITAL_LETTER_O_WITH_CIRCUMFLEX_AND_GRAVE = "\u{1ED2}";
- public const LATIN_SMALL_LETTER_O_WITH_CIRCUMFLEX_AND_GRAVE = "\u{1ED3}";
- public const LATIN_CAPITAL_LETTER_O_WITH_CIRCUMFLEX_AND_HOOK_ABOVE = "\u{1ED4}";
- public const LATIN_SMALL_LETTER_O_WITH_CIRCUMFLEX_AND_HOOK_ABOVE = "\u{1ED5}";
- public const LATIN_CAPITAL_LETTER_O_WITH_CIRCUMFLEX_AND_TILDE = "\u{1ED6}";
- public const LATIN_SMALL_LETTER_O_WITH_CIRCUMFLEX_AND_TILDE = "\u{1ED7}";
- public const LATIN_CAPITAL_LETTER_O_WITH_CIRCUMFLEX_AND_DOT_BELOW = "\u{1ED8}";
- public const LATIN_SMALL_LETTER_O_WITH_CIRCUMFLEX_AND_DOT_BELOW = "\u{1ED9}";
- public const LATIN_CAPITAL_LETTER_U_WITH_DOT_BELOW = "\u{1EE4}";
- public const LATIN_SMALL_LETTER_U_WITH_DOT_BELOW = "\u{1EE5}";
- public const LATIN_CAPITAL_LETTER_U_WITH_HOOK_ABOVE = "\u{1EE6}";
- public const LATIN_SMALL_LETTER_U_WITH_HOOK_ABOVE = "\u{1EE7}";
- public const LATIN_CAPITAL_LETTER_Y_WITH_GRAVE = "\u{1EF2}";
- public const LATIN_SMALL_LETTER_Y_WITH_GRAVE = "\u{1EF3}";
- public const LATIN_CAPITAL_LETTER_Y_WITH_DOT_BELOW = "\u{1EF4}";
- public const LATIN_SMALL_LETTER_Y_WITH_DOT_BELOW = "\u{1EF5}";
- public const LATIN_CAPITAL_LETTER_Y_WITH_HOOK_ABOVE = "\u{1EF6}";
- public const LATIN_SMALL_LETTER_Y_WITH_HOOK_ABOVE = "\u{1EF7}";
- public const LATIN_CAPITAL_LETTER_Y_WITH_TILDE = "\u{1EF8}";
- public const LATIN_SMALL_LETTER_Y_WITH_TILDE = "\u{1EF9}";
- public const ZERO_WIDTH_NON_JOINER = "\u{200C}";
- public const ZERO_WIDTH_JOINER = "\u{200D}";
- public const EN_DASH = "\u{2013}";
- public const EM_DASH = "\u{2014}";
- public const DOUBLE_LOW_LINE = "\u{2017}";
- public const LEFT_SINGLE_QUOTATION_MARK = "\u{2018}";
- public const RIGHT_SINGLE_QUOTATION_MARK = "\u{2019}";
- public const SINGLE_LOW_9_QUOTATION_MARK = "\u{201A}";
- public const LEFT_DOUBLE_QUOTATION_MARK = "\u{201C}";
- public const RIGHT_DOUBLE_QUOTATION_MARK = "\u{201D}";
- public const DOUBLE_LOW_9_QUOTATION_MARK = "\u{201E}";
- public const DAGGER = "\u{2020}";
- public const DOUBLE_DAGGER = "\u{2021}";
- public const BULLET = "\u{2022}";
- public const HORIZONTAL_ELLIPSIS = "\u{2026}";
- public const PER_MILLE_SIGN = "\u{2030}";
- public const SINGLE_LEFT_POINTING_ANGLE_QUOTATION_MARK = "\u{2039}";
- public const SINGLE_RIGHT_POINTING_ANGLE_QUOTATION_MARK = "\u{203A}";
- public const FRACTION_SLASH = "\u{2044}";
- public const SUPERSCRIPT_LATIN_SMALL_LETTER_N = "\u{207F}";
- public const PESETA_SIGN = "\u{20A7}";
- public const EURO_SIGN = "\u{20AC}";
- public const SCRIPT_SMALL_L = "\u{2113}";
- public const NUMERO_SIGN = "\u{2116}";
- public const SOUND_RECORDING_COPYRIGHT = "\u{2117}";
- public const TRADE_MARK_SIGN = "\u{2122}";
- public const PARTIAL_DIFFERENTIAL = "\u{2202}";
- public const INCREMENT = "\u{2206}";
- public const N_ARY_PRODUCT = "\u{220F}";
- public const N_ARY_SUMMATION = "\u{2211}";
- public const BULLET_OPERATOR = "\u{2219}";
- public const SQUARE_ROOT = "\u{221A}";
- public const INFINITY = "\u{221E}";
- public const INTERSECTION = "\u{2229}";
- public const INTEGRAL = "\u{222B}";
- public const ALMOST_EQUAL_TO = "\u{2248}";
- public const NOT_EQUAL_TO = "\u{2260}";
- public const IDENTICAL_TO = "\u{2261}";
- public const LESS_THAN_OR_EQUAL_TO = "\u{2264}";
- public const GREATER_THAN_OR_EQUAL_TO = "\u{2265}";
- public const REVERSED_NOT_SIGN = "\u{2310}";
- public const TOP_HALF_INTEGRAL = "\u{2320}";
- public const BOTTOM_HALF_INTEGRAL = "\u{2321}";
- public const BOX_DRAWINGS_LIGHT_HORIZONTAL = "\u{2500}";
- public const BOX_DRAWINGS_LIGHT_VERTICAL = "\u{2502}";
- public const BOX_DRAWINGS_LIGHT_DOWN_AND_RIGHT = "\u{250C}";
- public const BOX_DRAWINGS_LIGHT_DOWN_AND_LEFT = "\u{2510}";
- public const BOX_DRAWINGS_LIGHT_UP_AND_LEFT = "\u{2518}";
- public const BOX_DRAWINGS_LIGHT_UP_AND_RIGHT = "\u{2514}";
- public const BOX_DRAWINGS_LIGHT_VERTICAL_AND_RIGHT = "\u{251C}";
- public const BOX_DRAWINGS_LIGHT_VERTICAL_AND_LEFT = "\u{2524}";
- public const BOX_DRAWINGS_LIGHT_DOWN_AND_HORIZONTAL = "\u{252C}";
- public const BOX_DRAWINGS_LIGHT_UP_AND_HORIZONTAL = "\u{2534}";
- public const BOX_DRAWINGS_LIGHT_VERTICAL_AND_HORIZONTAL = "\u{253C}";
- public const BOX_DRAWINGS_DOUBLE_HORIZONTAL = "\u{2550}";
- public const BOX_DRAWINGS_DOUBLE_VERTICAL = "\u{2551}";
- public const BOX_DRAWINGS_DOWN_SINGLE_AND_RIGHT_DOUBLE = "\u{2552}";
- public const BOX_DRAWINGS_DOWN_DOUBLE_AND_RIGHT_SINGLE = "\u{2553}";
- public const BOX_DRAWINGS_DOUBLE_DOWN_AND_RIGHT = "\u{2554}";
- public const BOX_DRAWINGS_DOWN_SINGLE_AND_LEFT_DOUBLE = "\u{2555}";
- public const BOX_DRAWINGS_DOWN_DOUBLE_AND_LEFT_SINGLE = "\u{2556}";
- public const BOX_DRAWINGS_DOUBLE_DOWN_AND_LEFT = "\u{2557}";
- public const BOX_DRAWINGS_UP_SINGLE_AND_RIGHT_DOUBLE = "\u{2558}";
- public const BOX_DRAWINGS_UP_DOUBLE_AND_RIGHT_SINGLE = "\u{2559}";
- public const BOX_DRAWINGS_DOUBLE_UP_AND_RIGHT = "\u{255A}";
- public const BOX_DRAWINGS_UP_SINGLE_AND_LEFT_DOUBLE = "\u{255B}";
- public const BOX_DRAWINGS_UP_DOUBLE_AND_LEFT_SINGLE = "\u{255C}";
- public const BOX_DRAWINGS_DOUBLE_UP_AND_LEFT = "\u{255D}";
- public const BOX_DRAWINGS_VERTICAL_SINGLE_AND_RIGHT_DOUBLE = "\u{255E}";
- public const BOX_DRAWINGS_VERTICAL_DOUBLE_AND_RIGHT_SINGLE = "\u{255F}";
- public const BOX_DRAWINGS_DOUBLE_VERTICAL_AND_RIGHT = "\u{2560}";
- public const BOX_DRAWINGS_VERTICAL_SINGLE_AND_LEFT_DOUBLE = "\u{2561}";
- public const BOX_DRAWINGS_VERTICAL_DOUBLE_AND_LEFT_SINGLE = "\u{2562}";
- public const BOX_DRAWINGS_DOUBLE_VERTICAL_AND_LEFT = "\u{2563}";
- public const BOX_DRAWINGS_DOWN_SINGLE_AND_HORIZONTAL_DOUBLE = "\u{2564}";
- public const BOX_DRAWINGS_DOWN_DOUBLE_AND_HORIZONTAL_SINGLE = "\u{2565}";
- public const BOX_DRAWINGS_DOUBLE_DOWN_AND_HORIZONTAL = "\u{2566}";
- public const BOX_DRAWINGS_UP_SINGLE_AND_HORIZONTAL_DOUBLE = "\u{2567}";
- public const BOX_DRAWINGS_UP_DOUBLE_AND_HORIZONTAL_SINGLE = "\u{2568}";
- public const BOX_DRAWINGS_BOX_DRAWINGS_DOUBLE_UP_AND_HORIZONTAL = "\u{2569}";
- public const BOX_DRAWINGS_VERTICAL_SINGLE_AND_HORIZONTAL_DOUBLE = "\u{256A}";
- public const BOX_DRAWINGS_VERTICAL_DOUBLE_AND_HORIZONTAL_SINGLE = "\u{256B}";
- public const BOX_DRAWINGS_DOUBLE_VERTICAL_AND_HORIZONTAL = "\u{256C}";
- public const UPPER_HALF_BLOCK = "\u{2580}";
- public const LOWER_HALF_BLOCK = "\u{2584}";
- public const FULL_BLOCK = "\u{2588}";
- public const LEFT_HALF_BLOCK = "\u{258C}";
- public const RIGHT_HALF_BLOCK = "\u{2590}";
- public const LIGHT_SHADE = "\u{2591}";
- public const MEDIUM_SHADE = "\u{2592}";
- public const DARK_SHADE = "\u{2593}";
- public const BLACK_SQUARE = "\u{25A0}";
- public const WHITE_SQUARE = "\u{25A1}";
- public const LOZENGE = "\u{25CA}";
- public const MUSIC_FLAT_SIGN = "\u{266D}";
- public const MUSIC_SHARP_SIGN = "\u{266F}";
- public const LATIN_SMALL_LIGATURE_FI = "\u{FB01}";
- public const LATIN_SMALL_LIGATURE_FL = "\u{FB02}";
- public const BYTE_ORDER_MARK = "\u{FEFF}";
- public const REPLACEMENT_CHARACTER = "\u{FFFD}";
+ public const string START_OF_STRING = "\u{0098}";
+ public const string STRING_TERMINATOR = "\u{009C}";
+ public const string NO_BREAK_SPACE = "\u{00A0}";
+ public const string INVERTED_EXCLAMATION_MARK = "\u{00A1}";
+ public const string CENT_SIGN = "\u{00A2}";
+ public const string POUND_SIGN = "\u{00A3}";
+ public const string CURRENCY_SIGN = "\u{00A4}";
+ public const string YEN_SIGN = "\u{00A5}";
+ public const string BROKEN_BAR = "\u{00A6}";
+ public const string SECTION_SIGN = "\u{00A7}";
+ public const string DIAERESIS = "\u{00A8}";
+ public const string COPYRIGHT_SIGN = "\u{00A9}";
+ public const string FEMININE_ORDINAL_INDICATOR = "\u{00AA}";
+ public const string LEFT_POINTING_DOUBLE_ANGLE_QUOTATION_MARK = "\u{00AB}";
+ public const string NOT_SIGN = "\u{00AC}";
+ public const string SOFT_HYPHEN = "\u{00AD}";
+ public const string REGISTERED_SIGN = "\u{00AE}";
+ public const string MACRON = "\u{00AF}";
+ public const string DEGREE_SIGN = "\u{00B0}";
+ public const string PLUS_MINUS_SIGN = "\u{00B1}";
+ public const string SUPERSCRIPT_TWO = "\u{00B2}";
+ public const string SUPERSCRIPT_THREE = "\u{00B3}";
+ public const string ACUTE_ACCENT = "\u{00B4}";
+ public const string MICRO_SIGN = "\u{00B5}";
+ public const string PILCROW_SIGN = "\u{00B6}";
+ public const string MIDDLE_DOT = "\u{00B7}";
+ public const string CEDILLA = "\u{00B8}";
+ public const string SUPERSCRIPT_ONE = "\u{00B9}";
+ public const string MASCULINE_ORDINAL_INDICATOR = "\u{00BA}";
+ public const string RIGHT_POINTING_DOUBLE_ANGLE_QUOTATION_MARK = "\u{00BB}";
+ public const string VULGAR_FRACTION_ONE_QUARTER = "\u{00BC}";
+ public const string VULGAR_FRACTION_ONE_HALF = "\u{00BD}";
+ public const string VULGAR_FRACTION_THREE_QUARTERS = "\u{00BE}";
+ public const string INVERTED_QUESTION_MARK = "\u{00BF}";
+ public const string LATIN_CAPITAL_LETTER_A_WITH_GRAVE = "\u{00C0}";
+ public const string LATIN_CAPITAL_LETTER_A_WITH_ACUTE = "\u{00C1}";
+ public const string LATIN_CAPITAL_LETTER_A_WITH_CIRCUMFLEX = "\u{00C2}";
+ public const string LATIN_CAPITAL_LETTER_A_WITH_TILDE = "\u{00C3}";
+ public const string LATIN_CAPITAL_LETTER_A_WITH_DIAERESIS = "\u{00C4}";
+ public const string LATIN_CAPITAL_LETTER_A_WITH_RING_ABOVE = "\u{00C5}";
+ public const string LATIN_CAPITAL_LETTER_AE = "\u{00C6}";
+ public const string LATIN_CAPITAL_LETTER_C_WITH_CEDILLA = "\u{00C7}";
+ public const string LATIN_CAPITAL_LETTER_E_WITH_GRAVE = "\u{00C8}";
+ public const string LATIN_CAPITAL_LETTER_E_WITH_ACUTE = "\u{00C9}";
+ public const string LATIN_CAPITAL_LETTER_E_WITH_CIRCUMFLEX = "\u{00CA}";
+ public const string LATIN_CAPITAL_LETTER_E_WITH_DIAERESIS = "\u{00CB}";
+ public const string LATIN_CAPITAL_LETTER_I_WITH_GRAVE = "\u{00CC}";
+ public const string LATIN_CAPITAL_LETTER_I_WITH_ACUTE = "\u{00CD}";
+ public const string LATIN_CAPITAL_LETTER_I_WITH_CIRCUMFLEX = "\u{00CE}";
+ public const string LATIN_CAPITAL_LETTER_I_WITH_DIAERESIS = "\u{00CF}";
+ public const string LATIN_CAPITAL_LETTER_ETH = "\u{00D0}";
+ public const string LATIN_CAPITAL_LETTER_N_WITH_TILDE = "\u{00D1}";
+ public const string LATIN_CAPITAL_LETTER_O_WITH_GRAVE = "\u{00D2}";
+ public const string LATIN_CAPITAL_LETTER_O_WITH_ACUTE = "\u{00D3}";
+ public const string LATIN_CAPITAL_LETTER_O_WITH_CIRCUMFLEX = "\u{00D4}";
+ public const string LATIN_CAPITAL_LETTER_O_WITH_TILDE = "\u{00D5}";
+ public const string LATIN_CAPITAL_LETTER_O_WITH_DIAERESIS = "\u{00D6}";
+ public const string MULTIPLICATION_SIGN = "\u{00D7}";
+ public const string LATIN_CAPITAL_LETTER_O_WITH_STROKE = "\u{00D8}";
+ public const string LATIN_CAPITAL_LETTER_U_WITH_GRAVE = "\u{00D9}";
+ public const string LATIN_CAPITAL_LETTER_U_WITH_ACUTE = "\u{00DA}";
+ public const string LATIN_CAPITAL_LETTER_U_WITH_CIRCUMFLEX = "\u{00DB}";
+ public const string LATIN_CAPITAL_LETTER_U_WITH_DIAERESIS = "\u{00DC}";
+ public const string LATIN_CAPITAL_LETTER_Y_WITH_ACUTE = "\u{00DD}";
+ public const string LATIN_CAPITAL_LETTER_THORN = "\u{00DE}";
+ public const string LATIN_SMALL_LETTER_SHARP_S = "\u{00DF}";
+ public const string LATIN_SMALL_LETTER_A_WITH_GRAVE = "\u{00E0}";
+ public const string LATIN_SMALL_LETTER_A_WITH_ACUTE = "\u{00E1}";
+ public const string LATIN_SMALL_LETTER_A_WITH_CIRCUMFLEX = "\u{00E2}";
+ public const string LATIN_SMALL_LETTER_A_WITH_TILDE = "\u{00E3}";
+ public const string LATIN_SMALL_LETTER_A_WITH_DIAERESIS = "\u{00E4}";
+ public const string LATIN_SMALL_LETTER_A_WITH_RING_ABOVE = "\u{00E5}";
+ public const string LATIN_SMALL_LETTER_AE = "\u{00E6}";
+ public const string LATIN_SMALL_LETTER_C_WITH_CEDILLA = "\u{00E7}";
+ public const string LATIN_SMALL_LETTER_E_WITH_GRAVE = "\u{00E8}";
+ public const string LATIN_SMALL_LETTER_E_WITH_ACUTE = "\u{00E9}";
+ public const string LATIN_SMALL_LETTER_E_WITH_CIRCUMFLEX = "\u{00EA}";
+ public const string LATIN_SMALL_LETTER_E_WITH_DIAERESIS = "\u{00EB}";
+ public const string LATIN_SMALL_LETTER_I_WITH_GRAVE = "\u{00EC}";
+ public const string LATIN_SMALL_LETTER_I_WITH_ACUTE = "\u{00ED}";
+ public const string LATIN_SMALL_LETTER_I_WITH_CIRCUMFLEX = "\u{00EE}";
+ public const string LATIN_SMALL_LETTER_I_WITH_DIAERESIS = "\u{00EF}";
+ public const string LATIN_SMALL_LETTER_ETH = "\u{00F0}";
+ public const string LATIN_SMALL_LETTER_N_WITH_TILDE = "\u{00F1}";
+ public const string LATIN_SMALL_LETTER_O_WITH_GRAVE = "\u{00F2}";
+ public const string LATIN_SMALL_LETTER_O_WITH_ACUTE = "\u{00F3}";
+ public const string LATIN_SMALL_LETTER_O_WITH_CIRCUMFLEX = "\u{00F4}";
+ public const string LATIN_SMALL_LETTER_O_WITH_TILDE = "\u{00F5}";
+ public const string LATIN_SMALL_LETTER_O_WITH_DIAERESIS = "\u{00F6}";
+ public const string DIVISION_SIGN = "\u{00F7}";
+ public const string LATIN_SMALL_LETTER_O_WITH_STROKE = "\u{00F8}";
+ public const string LATIN_SMALL_LETTER_U_WITH_GRAVE = "\u{00F9}";
+ public const string LATIN_SMALL_LETTER_U_WITH_ACUTE = "\u{00FA}";
+ public const string LATIN_SMALL_LETTER_U_WITH_CIRCUMFLEX = "\u{00FB}";
+ public const string LATIN_SMALL_LETTER_U_WITH_DIAERESIS = "\u{00FC}";
+ public const string LATIN_SMALL_LETTER_Y_WITH_ACUTE = "\u{00FD}";
+ public const string LATIN_SMALL_LETTER_THORN = "\u{00FE}";
+ public const string LATIN_SMALL_LETTER_Y_WITH_DIAERESIS = "\u{00FF}";
+ public const string LATIN_CAPITAL_LETTER_A_WITH_MACRON = "\u{0100}";
+ public const string LATIN_SMALL_LETTER_A_WITH_MACRON = "\u{0101}";
+ public const string LATIN_CAPITAL_LETTER_A_WITH_BREVE = "\u{0102}";
+ public const string LATIN_SMALL_LETTER_A_WITH_BREVE = "\u{0103}";
+ public const string LATIN_CAPITAL_LETTER_A_WITH_OGONEK = "\u{0104}";
+ public const string LATIN_SMALL_LETTER_A_WITH_OGONEK = "\u{0105}";
+ public const string LATIN_CAPITAL_LETTER_C_WITH_ACUTE = "\u{0106}";
+ public const string LATIN_SMALL_LETTER_C_WITH_ACUTE = "\u{0107}";
+ public const string LATIN_CAPITAL_LETTER_C_WITH_CIRCUMFLEX = "\u{0108}";
+ public const string LATIN_SMALL_LETTER_C_WITH_CIRCUMFLEX = "\u{0109}";
+ public const string LATIN_CAPITAL_LETTER_C_WITH_DOT_ABOVE = "\u{010A}";
+ public const string LATIN_SMALL_LETTER_C_WITH_DOT_ABOVE = "\u{010B}";
+ public const string LATIN_CAPITAL_LETTER_C_WITH_CARON = "\u{010C}";
+ public const string LATIN_SMALL_LETTER_C_WITH_CARON = "\u{010D}";
+ public const string LATIN_CAPITAL_LETTER_D_WITH_CARON = "\u{010E}";
+ public const string LATIN_SMALL_LETTER_D_WITH_CARON = "\u{010F}";
+ public const string LATIN_CAPITAL_LETTER_D_WITH_STROKE = "\u{0110}";
+ public const string LATIN_SMALL_LETTER_D_WITH_STROKE = "\u{0111}";
+ public const string LATIN_CAPITAL_LETTER_E_WITH_MACRON = "\u{0112}";
+ public const string LATIN_SMALL_LETTER_E_WITH_MACRON = "\u{0113}";
+ public const string LATIN_CAPITAL_LETTER_E_WITH_BREVE = "\u{0114}";
+ public const string LATIN_SMALL_LETTER_E_WITH_BREVE = "\u{0115}";
+ public const string LATIN_CAPITAL_LETTER_E_WITH_DOT_ABOVE = "\u{0116}";
+ public const string LATIN_SMALL_LETTER_E_WITH_DOT_ABOVE = "\u{0117}";
+ public const string LATIN_CAPITAL_LETTER_E_WITH_OGONEK = "\u{0118}";
+ public const string LATIN_SMALL_LETTER_E_WITH_OGONEK = "\u{0119}";
+ public const string LATIN_CAPITAL_LETTER_E_WITH_CARON = "\u{011A}";
+ public const string LATIN_SMALL_LETTER_E_WITH_CARON = "\u{011B}";
+ public const string LATIN_CAPITAL_LETTER_G_WITH_CIRCUMFLEX = "\u{011C}";
+ public const string LATIN_SMALL_LETTER_G_WITH_CIRCUMFLEX = "\u{011D}";
+ public const string LATIN_CAPITAL_LETTER_G_WITH_BREVE = "\u{011E}";
+ public const string LATIN_SMALL_LETTER_G_WITH_BREVE = "\u{011F}";
+ public const string LATIN_CAPITAL_LETTER_G_WITH_DOT_ABOVE = "\u{0120}";
+ public const string LATIN_SMALL_LETTER_G_WITH_DOT_ABOVE = "\u{0121}";
+ public const string LATIN_CAPITAL_LETTER_G_WITH_CEDILLA = "\u{0122}";
+ public const string LATIN_SMALL_LETTER_G_WITH_CEDILLA = "\u{0123}";
+ public const string LATIN_CAPITAL_LETTER_H_WITH_CIRCUMFLEX = "\u{0124}";
+ public const string LATIN_SMALL_LETTER_H_WITH_CIRCUMFLEX = "\u{0125}";
+ public const string LATIN_CAPITAL_LETTER_H_WITH_STROKE = "\u{0126}";
+ public const string LATIN_SMALL_LETTER_H_WITH_STROKE = "\u{0127}";
+ public const string LATIN_CAPITAL_LETTER_I_WITH_TILDE = "\u{0128}";
+ public const string LATIN_SMALL_LETTER_I_WITH_TILDE = "\u{0129}";
+ public const string LATIN_CAPITAL_LETTER_I_WITH_MACRON = "\u{012A}";
+ public const string LATIN_SMALL_LETTER_I_WITH_MACRON = "\u{012B}";
+ public const string LATIN_CAPITAL_LETTER_I_WITH_BREVE = "\u{012C}";
+ public const string LATIN_SMALL_LETTER_I_WITH_BREVE = "\u{012D}";
+ public const string LATIN_CAPITAL_LETTER_I_WITH_OGONEK = "\u{012E}";
+ public const string LATIN_SMALL_LETTER_I_WITH_OGONEK = "\u{012F}";
+ public const string LATIN_CAPITAL_LETTER_I_WITH_DOT_ABOVE = "\u{0130}";
+ public const string LATIN_SMALL_LETTER_DOTLESS_I = "\u{0131}";
+ public const string LATIN_CAPITAL_LIGATURE_IJ = "\u{0132}";
+ public const string LATIN_SMALL_LIGATURE_IJ = "\u{0133}";
+ public const string LATIN_CAPITAL_LETTER_J_WITH_CIRCUMFLEX = "\u{0134}";
+ public const string LATIN_SMALL_LETTER_J_WITH_CIRCUMFLEX = "\u{0135}";
+ public const string LATIN_CAPITAL_LETTER_K_WITH_CEDILLA = "\u{0136}";
+ public const string LATIN_SMALL_LETTER_K_WITH_CEDILLA = "\u{0137}";
+ public const string LATIN_SMALL_LETTER_KRA = "\u{0138}";
+ public const string LATIN_CAPITAL_LETTER_L_WITH_ACUTE = "\u{0139}";
+ public const string LATIN_SMALL_LETTER_L_WITH_ACUTE = "\u{013A}";
+ public const string LATIN_CAPITAL_LETTER_L_WITH_CEDILLA = "\u{013B}";
+ public const string LATIN_SMALL_LETTER_L_WITH_CEDILLA = "\u{013C}";
+ public const string LATIN_CAPITAL_LETTER_L_WITH_CARON = "\u{013D}";
+ public const string LATIN_SMALL_LETTER_L_WITH_CARON = "\u{013E}";
+ public const string LATIN_CAPITAL_LETTER_L_WITH_MIDDLE_DOT = "\u{013F}";
+ public const string LATIN_SMALL_LETTER_L_WITH_MIDDLE_DOT = "\u{0140}";
+ public const string LATIN_CAPITAL_LETTER_L_WITH_STROKE = "\u{0141}";
+ public const string LATIN_SMALL_LETTER_L_WITH_STROKE = "\u{0142}";
+ public const string LATIN_CAPITAL_LETTER_N_WITH_ACUTE = "\u{0143}";
+ public const string LATIN_SMALL_LETTER_N_WITH_ACUTE = "\u{0144}";
+ public const string LATIN_CAPITAL_LETTER_N_WITH_CEDILLA = "\u{0145}";
+ public const string LATIN_SMALL_LETTER_N_WITH_CEDILLA = "\u{0146}";
+ public const string LATIN_CAPITAL_LETTER_N_WITH_CARON = "\u{0147}";
+ public const string LATIN_SMALL_LETTER_N_WITH_CARON = "\u{0148}";
+ public const string LATIN_SMALL_LETTER_N_PRECEDED_BY_APOSTROPHE = "\u{0149}";
+ public const string LATIN_CAPITAL_LETTER_ENG = "\u{014A}";
+ public const string LATIN_SMALL_LETTER_ENG = "\u{014B}";
+ public const string LATIN_CAPITAL_LETTER_O_WITH_MACRON = "\u{014C}";
+ public const string LATIN_SMALL_LETTER_O_WITH_MACRON = "\u{014D}";
+ public const string LATIN_CAPITAL_LETTER_O_WITH_BREVE = "\u{014E}";
+ public const string LATIN_SMALL_LETTER_O_WITH_BREVE = "\u{014F}";
+ public const string LATIN_CAPITAL_LETTER_O_WITH_DOUBLE_ACUTE = "\u{0150}";
+ public const string LATIN_SMALL_LETTER_O_WITH_DOUBLE_ACUTE = "\u{0151}";
+ public const string LATIN_CAPITAL_LIGATURE_OE = "\u{0152}";
+ public const string LATIN_SMALL_LIGATURE_OE = "\u{0153}";
+ public const string LATIN_CAPITAL_LETTER_R_WITH_ACUTE = "\u{0154}";
+ public const string LATIN_SMALL_LETTER_R_WITH_ACUTE = "\u{0155}";
+ public const string LATIN_CAPITAL_LETTER_R_WITH_CEDILLA = "\u{0156}";
+ public const string LATIN_SMALL_LETTER_R_WITH_CEDILLA = "\u{0157}";
+ public const string LATIN_CAPITAL_LETTER_R_WITH_CARON = "\u{0158}";
+ public const string LATIN_SMALL_LETTER_R_WITH_CARON = "\u{0159}";
+ public const string LATIN_CAPITAL_LETTER_S_WITH_ACUTE = "\u{015A}";
+ public const string LATIN_SMALL_LETTER_S_WITH_ACUTE = "\u{015B}";
+ public const string LATIN_CAPITAL_LETTER_S_WITH_CIRCUMFLEX = "\u{015C}";
+ public const string LATIN_SMALL_LETTER_S_WITH_CIRCUMFLEX = "\u{015D}";
+ public const string LATIN_CAPITAL_LETTER_S_WITH_CEDILLA = "\u{015E}";
+ public const string LATIN_SMALL_LETTER_S_WITH_CEDILLA = "\u{015F}";
+ public const string LATIN_CAPITAL_LETTER_S_WITH_CARON = "\u{0160}";
+ public const string LATIN_SMALL_LETTER_S_WITH_CARON = "\u{0161}";
+ public const string LATIN_CAPITAL_LETTER_T_WITH_CEDILLA = "\u{0162}";
+ public const string LATIN_SMALL_LETTER_T_WITH_CEDILLA = "\u{0163}";
+ public const string LATIN_CAPITAL_LETTER_T_WITH_CARON = "\u{0164}";
+ public const string LATIN_SMALL_LETTER_T_WITH_CARON = "\u{0165}";
+ public const string LATIN_CAPITAL_LETTER_T_WITH_STROKE = "\u{0166}";
+ public const string LATIN_SMALL_LETTER_T_WITH_STROKE = "\u{0167}";
+ public const string LATIN_CAPITAL_LETTER_U_WITH_TILDE = "\u{0168}";
+ public const string LATIN_SMALL_LETTER_U_WITH_TILDE = "\u{0169}";
+ public const string LATIN_CAPITAL_LETTER_U_WITH_MACRON = "\u{016A}";
+ public const string LATIN_SMALL_LETTER_U_WITH_MACRON = "\u{016B}";
+ public const string LATIN_CAPITAL_LETTER_U_WITH_BREVE = "\u{016C}";
+ public const string LATIN_SMALL_LETTER_U_WITH_BREVE = "\u{016D}";
+ public const string LATIN_CAPITAL_LETTER_U_WITH_RING_ABOVE = "\u{016E}";
+ public const string LATIN_SMALL_LETTER_U_WITH_RING_ABOVE = "\u{016F}";
+ public const string LATIN_CAPITAL_LETTER_U_WITH_DOUBLE_ACUTE = "\u{0170}";
+ public const string LATIN_SMALL_LETTER_U_WITH_DOUBLE_ACUTE = "\u{0171}";
+ public const string LATIN_CAPITAL_LETTER_U_WITH_OGONEK = "\u{0172}";
+ public const string LATIN_SMALL_LETTER_U_WITH_OGONEK = "\u{0173}";
+ public const string LATIN_CAPITAL_LETTER_W_WITH_CIRCUMFLEX = "\u{0174}";
+ public const string LATIN_SMALL_LETTER_W_WITH_CIRCUMFLEX = "\u{0175}";
+ public const string LATIN_CAPITAL_LETTER_Y_WITH_CIRCUMFLEX = "\u{0176}";
+ public const string LATIN_SMALL_LETTER_Y_WITH_CIRCUMFLEX = "\u{0177}";
+ public const string LATIN_CAPITAL_LETTER_Y_WITH_DIAERESIS = "\u{0178}";
+ public const string LATIN_CAPITAL_LETTER_Z_WITH_ACUTE = "\u{0179}";
+ public const string LATIN_SMALL_LETTER_Z_WITH_ACUTE = "\u{017A}";
+ public const string LATIN_CAPITAL_LETTER_Z_WITH_DOT_ABOVE = "\u{017B}";
+ public const string LATIN_SMALL_LETTER_Z_WITH_DOT_ABOVE = "\u{017C}";
+ public const string LATIN_CAPITAL_LETTER_Z_WITH_CARON = "\u{017D}";
+ public const string LATIN_SMALL_LETTER_Z_WITH_CARON = "\u{017E}";
+ public const string LATIN_SMALL_LETTER_LONG_S = "\u{017F}";
+ public const string LATIN_SMALL_LETTER_B_WITH_STROKE = "\u{0180}";
+ public const string LATIN_CAPITAL_LETTER_B_WITH_HOOK = "\u{0181}";
+ public const string LATIN_CAPITAL_LETTER_B_WITH_TOPBAR = "\u{0182}";
+ public const string LATIN_SMALL_LETTER_B_WITH_TOPBAR = "\u{0183}";
+ public const string LATIN_CAPITAL_LETTER_F_WITH_HOOK = "\u{0191}";
+ public const string LATIN_SMALL_LETTER_F_WITH_HOOK = "\u{0192}";
+ public const string LATIN_SMALL_LETTER_O_WITH_HORN = "\u{01A1}";
+ public const string LATIN_CAPITAL_LETTER_O_WITH_HORN = "\u{01A0}";
+ public const string LATIN_CAPITAL_LETTER_U_WITH_HORN = "\u{01AF}";
+ public const string LATIN_SMALL_LETTER_U_WITH_HORN = "\u{01B0}";
+ public const string LATIN_CAPITAL_LETTER_A_WITH_CARON = "\u{01CD}";
+ public const string LATIN_SMALL_LETTER_A_WITH_CARON = "\u{01CE}";
+ public const string LATIN_CAPITAL_LETTER_I_WITH_CARON = "\u{01CF}";
+ public const string LATIN_SMALL_LETTER_I_WITH_CARON = "\u{01D0}";
+ public const string LATIN_CAPITAL_LETTER_O_WITH_CARON = "\u{01D1}";
+ public const string LATIN_SMALL_LETTER_O_WITH_CARON = "\u{01D2}";
+ public const string LATIN_CAPITAL_LETTER_U_WITH_CARON = "\u{01D3}";
+ public const string LATIN_SMALL_LETTER_U_WITH_CARON = "\u{01D4}";
+ public const string LATIN_CAPITAL_LETTER_U_WITH_DIAERESIS_AND_MACRON = "\u{01D5}";
+ public const string LATIN_SMALL_LETTER_U_WITH_DIAERESIS_AND_MACRON = "\u{01D6}";
+ public const string LATIN_CAPITAL_LETTER_U_WITH_DIAERESIS_AND_ACUTE = "\u{01D7}";
+ public const string LATIN_SMALL_LETTER_U_WITH_DIAERESIS_AND_ACUTE = "\u{01D8}";
+ public const string LATIN_CAPITAL_LETTER_U_WITH_DIAERESIS_AND_CARON = "\u{01D9}";
+ public const string LATIN_SMALL_LETTER_U_WITH_DIAERESIS_AND_CARON = "\u{01DA}";
+ public const string LATIN_CAPITAL_LETTER_U_WITH_DIAERESIS_AND_GRAVE = "\u{01DB}";
+ public const string LATIN_SMALL_LETTER_U_WITH_DIAERESIS_AND_GRAVE = "\u{01DC}";
+ public const string LATIN_CAPITAL_LETTER_A_WITH_DIAERESIS_AND_MACRON = "\u{01DE}";
+ public const string LATIN_SMALL_LETTER_A_WITH_DIAERESIS_AND_MACRON = "\u{01DF}";
+ public const string LATIN_CAPITAL_LETTER_A_WITH_DOT_ABOVE_AND_MACRON = "\u{01E0}";
+ public const string LATIN_SMALL_LETTER_A_WITH_DOT_ABOVE_AND_MACRON = "\u{01E1}";
+ public const string LATIN_CAPITAL_LETTER_AE_WITH_MACRON = "\u{01E2}";
+ public const string LATIN_SMALL_LETTER_AE_WITH_MACRON = "\u{01E3}";
+ public const string LATIN_CAPITAL_LETTER_G_WITH_CARON = "\u{01E6}";
+ public const string LATIN_SMALL_LETTER_G_WITH_CARON = "\u{01E7}";
+ public const string LATIN_CAPITAL_LETTER_K_WITH_CARON = "\u{01E8}";
+ public const string LATIN_SMALL_LETTER_K_WITH_CARON = "\u{01E9}";
+ public const string LATIN_CAPITAL_LETTER_O_WITH_OGONEK = "\u{01EA}";
+ public const string LATIN_SMALL_LETTER_O_WITH_OGONEK = "\u{01EB}";
+ public const string LATIN_CAPITAL_LETTER_O_WITH_OGONEK_AND_MACRON = "\u{01EC}";
+ public const string LATIN_SMALL_LETTER_O_WITH_OGONEK_AND_MACRON = "\u{01ED}";
+ public const string LATIN_SMALL_LETTER_J_WITH_CARON = "\u{01F0}";
+ public const string LATIN_CAPITAL_LETTER_G_WITH_ACUTE = "\u{01F4}";
+ public const string LATIN_SMALL_LETTER_G_WITH_ACUTE = "\u{01F5}";
+ public const string LATIN_CAPITAL_LETTER_N_WITH_GRAVE = "\u{01F8}";
+ public const string LATIN_SMALL_LETTER_N_WITH_GRAVE = "\u{01F9}";
+ public const string LATIN_CAPITAL_LETTER_A_WITH_RING_ABOVE_AND_ACUTE = "\u{01FA}";
+ public const string LATIN_SMALL_LETTER_A_WITH_RING_ABOVE_AND_ACUTE = "\u{01FB}";
+ public const string LATIN_CAPITAL_LETTER_AE_WITH_ACUTE = "\u{01FC}";
+ public const string LATIN_SMALL_LETTER_AE_WITH_ACUTE = "\u{01FD}";
+ public const string LATIN_CAPITAL_LETTER_O_WITH_STROKE_AND_ACUTE = "\u{01FE}";
+ public const string LATIN_SMALL_LETTER_O_WITH_STROKE_AND_ACUTE = "\u{01FF}";
+ public const string LATIN_CAPITAL_LETTER_S_WITH_COMMA_BELOW = "\u{0218}";
+ public const string LATIN_SMALL_LETTER_S_WITH_COMMA_BELOW = "\u{0219}";
+ public const string LATIN_CAPITAL_LETTER_T_WITH_COMMA_BELOW = "\u{021A}";
+ public const string LATIN_SMALL_LETTER_T_WITH_COMMA_BELOW = "\u{021B}";
+ public const string LATIN_CAPITAL_LETTER_H_WITH_CARON = "\u{021E}";
+ public const string LATIN_SMALL_LETTER_H_WITH_CARON = "\u{021F}";
+ public const string LATIN_CAPITAL_LETTER_A_WITH_DOT_ABOVE = "\u{0226}";
+ public const string LATIN_SMALL_LETTER_A_WITH_DOT_ABOVE = "\u{0227}";
+ public const string LATIN_CAPITAL_LETTER_E_WITH_CEDILLA = "\u{0228}";
+ public const string LATIN_SMALL_LETTER_E_WITH_CEDILLA = "\u{0229}";
+ public const string LATIN_CAPITAL_LETTER_O_WITH_DIAERESIS_AND_MACRON = "\u{022A}";
+ public const string LATIN_SMALL_LETTER_O_WITH_DIAERESIS_AND_MACRON = "\u{022B}";
+ public const string LATIN_CAPITAL_LETTER_O_WITH_TILDE_AND_MACRON = "\u{022C}";
+ public const string LATIN_SMALL_LETTER_O_WITH_TILDE_AND_MACRON = "\u{022D}";
+ public const string LATIN_CAPITAL_LETTER_O_WITH_DOT_ABOVE = "\u{022E}";
+ public const string LATIN_SMALL_LETTER_O_WITH_DOT_ABOVE = "\u{022F}";
+ public const string LATIN_CAPITAL_LETTER_O_WITH_DOT_ABOVE_AND_MACRON = "\u{0230}";
+ public const string LATIN_SMALL_LETTER_O_WITH_DOT_ABOVE_AND_MACRON = "\u{0231}";
+ public const string LATIN_CAPITAL_LETTER_Y_WITH_MACRON = "\u{0232}";
+ public const string LATIN_SMALL_LETTER_Y_WITH_MACRON = "\u{0233}";
+ public const string MODIFIER_LETTER_PRIME = "\u{02B9}";
+ public const string MODIFIER_LETTER_DOUBLE_PRIME = "\u{02BA}";
+ public const string MODIFIER_LETTER_TURNED_COMMA = "\u{02BB}";
+ public const string MODIFIER_LETTER_APOSTROPHE = "\u{02BC}";
+ public const string MODIFIER_LETTER_CIRCUMFLEX_ACCENT = "\u{02C6}";
+ public const string CARON = "\u{02C7}";
+ public const string BREVE = "\u{02D8}";
+ public const string DOT_ABOVE = "\u{02D9}";
+ public const string RING_ABOVE = "\u{02DA}";
+ public const string OGONEK = "\u{02DB}";
+ public const string SMALL_TILDE = "\u{02DC}";
+ public const string DOUBLE_ACUTE_ACCENT = "\u{02DD}";
+ public const string COMBINING_GRAVE_ACCENT = "\u{0300}";
+ public const string COMBINING_ACUTE_ACCENT = "\u{0301}";
+ public const string COMBINING_CIRCUMFLEX_ACCENT = "\u{0302}";
+ public const string COMBINING_TILDE = "\u{0303}";
+ public const string COMBINING_MACRON = "\u{0304}";
+ public const string COMBINING_OVERLINE = "\u{0305}";
+ public const string COMBINING_BREVE = "\u{0306}";
+ public const string COMBINING_DOT_ABOVE = "\u{0307}";
+ public const string COMBINING_DIAERESIS = "\u{0308}";
+ public const string COMBINING_HOOK_ABOVE = "\u{0309}";
+ public const string COMBINING_RING_ABOVE = "\u{030A}";
+ public const string COMBINING_DOUBLE_ACUTE_ACCENT = "\u{030B}";
+ public const string COMBINING_CARON = "\u{030C}";
+ public const string COMBINING_CANDRABINDU = "\u{0310}";
+ public const string COMBINING_COMMA_ABOVE = "\u{0313}";
+ public const string COMBINING_COMMA_ABOVE_RIGHT = "\u{0315}";
+ public const string COMBINING_HORN = "\u{031B}";
+ public const string COMBINING_LEFT_HALF_RING_BELOW = "\u{031C}";
+ public const string COMBINING_DOT_BELOW = "\u{0323}";
+ public const string COMBINING_DIAERESIS_BELOW = "\u{0324}";
+ public const string COMBINING_RING_BELOW = "\u{0325}";
+ public const string COMBINING_COMMA_BELOW = "\u{0326}";
+ public const string COMBINING_CEDILLA = "\u{0327}";
+ public const string COMBINING_OGONEK = "\u{0328}";
+ public const string COMBINING_BRIDGE_BELOW = "\u{032A}";
+ public const string COMBINING_BREVE_BELOW = "\u{032E}";
+ public const string COMBINING_LOW_LINE = "\u{0332}";
+ public const string COMBINING_DOUBLE_LOW_LINE = "\u{0333}";
+ public const string COMBINING_SHORT_STROKE_OVERLAY = "\u{0335}";
+ public const string COMBINING_LONG_STROKE_OVERLAY = "\u{0336}";
+ public const string COMBINING_SHORT_SOLIDUS_OVERLAY = "\u{0338}";
+ public const string COMBINING_LONG_SOLIDUS_OVERLAY = "\u{0338}";
+ public const string COMBINING_DOUBLE_TILDE = "\u{0360}";
+ public const string COMBINING_DOUBLE_INVERTED_BREVE = "\u{0361}";
+ public const string GREEK_CAPITAL_LETTER_GAMMA = "\u{0393}";
+ public const string GREEK_CAPITAL_LETTER_THETA = "\u{0398}";
+ public const string GREEK_CAPITAL_LETTER_SIGMA = "\u{03A3}";
+ public const string GREEK_CAPITAL_LETTER_PHI = "\u{03A6}";
+ public const string GREEK_CAPITAL_LETTER_OMEGA = "\u{03A9}";
+ public const string GREEK_SMALL_LETTER_ALPHA = "\u{03B1}";
+ public const string GREEK_SMALL_LETTER_DELTA = "\u{03B4}";
+ public const string GREEK_SMALL_LETTER_EPSILON = "\u{03B5}";
+ public const string GREEK_SMALL_LETTER_PI = "\u{03C0}";
+ public const string GREEK_SMALL_LETTER_SIGMA = "\u{03C3}";
+ public const string GREEK_SMALL_LETTER_TAU = "\u{03C4}";
+ public const string GREEK_SMALL_LETTER_PHI = "\u{03C6}";
+ public const string CYRILLIC_CAPITAL_LETTER_IO = "\u{0401}";
+ public const string CYRILLIC_CAPITAL_LETTER_DJE = "\u{0402}";
+ public const string CYRILLIC_CAPITAL_LETTER_GJE = "\u{0403}";
+ public const string CYRILLIC_CAPITAL_LETTER_UKRANIAN_IE = "\u{0404}";
+ public const string CYRILLIC_CAPITAL_LETTER_DZE = "\u{0405}";
+ public const string CYRILLIC_CAPITAL_LETTER_BYELORUSSIAN_UKRAINIAN_I = "\u{0406}";
+ public const string CYRILLIC_CAPITAL_LETTER_YI = "\u{0407}";
+ public const string CYRILLIC_CAPITAL_LETTER_JE = "\u{0408}";
+ public const string CYRILLIC_CAPITAL_LETTER_LJE = "\u{0409}";
+ public const string CYRILLIC_CAPITAL_LETTER_NJE = "\u{040A}";
+ public const string CYRILLIC_CAPITAL_LETTER_TSHE = "\u{040B}";
+ public const string CYRILLIC_CAPITAL_LETTER_KJE = "\u{040C}";
+ public const string CYRILLIC_CAPITAL_LETTER_SHORT_U = "\u{040E}";
+ public const string CYRILLIC_CAPITAL_LETTER_DZHE = "\u{040F}";
+ public const string CYRILLIC_CAPITAL_LETTER_A = "\u{0410}";
+ public const string CYRILLIC_CAPITAL_LETTER_BE = "\u{0411}";
+ public const string CYRILLIC_CAPITAL_LETTER_VE = "\u{0412}";
+ public const string CYRILLIC_CAPITAL_LETTER_GHE = "\u{0413}";
+ public const string CYRILLIC_CAPITAL_LETTER_DE = "\u{0414}";
+ public const string CYRILLIC_CAPITAL_LETTER_IE = "\u{0415}";
+ public const string CYRILLIC_CAPITAL_LETTER_ZHE = "\u{0416}";
+ public const string CYRILLIC_CAPITAL_LETTER_ZE = "\u{0417}";
+ public const string CYRILLIC_CAPITAL_LETTER_I = "\u{0418}";
+ public const string CYRILLIC_CAPITAL_LETTER_SHORT_I = "\u{0419}";
+ public const string CYRILLIC_CAPITAL_LETTER_KA = "\u{041A}";
+ public const string CYRILLIC_CAPITAL_LETTER_EL = "\u{041B}";
+ public const string CYRILLIC_CAPITAL_LETTER_EM = "\u{041C}";
+ public const string CYRILLIC_CAPITAL_LETTER_EN = "\u{041D}";
+ public const string CYRILLIC_CAPITAL_LETTER_O = "\u{041E}";
+ public const string CYRILLIC_CAPITAL_LETTER_PE = "\u{041F}";
+ public const string CYRILLIC_CAPITAL_LETTER_ER = "\u{0420}";
+ public const string CYRILLIC_CAPITAL_LETTER_ES = "\u{0421}";
+ public const string CYRILLIC_CAPITAL_LETTER_TE = "\u{0422}";
+ public const string CYRILLIC_CAPITAL_LETTER_U = "\u{0423}";
+ public const string CYRILLIC_CAPITAL_LETTER_EF = "\u{0424}";
+ public const string CYRILLIC_CAPITAL_LETTER_HA = "\u{0425}";
+ public const string CYRILLIC_CAPITAL_LETTER_TSE = "\u{0426}";
+ public const string CYRILLIC_CAPITAL_LETTER_CHE = "\u{0427}";
+ public const string CYRILLIC_CAPITAL_LETTER_SHA = "\u{0428}";
+ public const string CYRILLIC_CAPITAL_LETTER_SHCHA = "\u{0429}";
+ public const string CYRILLIC_CAPITAL_LETTER_HARD_SIGN = "\u{042A}";
+ public const string CYRILLIC_CAPITAL_LETTER_YERU = "\u{042B}";
+ public const string CYRILLIC_CAPITAL_LETTER_SOFT_SIGN = "\u{042C}";
+ public const string CYRILLIC_CAPITAL_LETTER_E = "\u{042D}";
+ public const string CYRILLIC_CAPITAL_LETTER_YU = "\u{042E}";
+ public const string CYRILLIC_CAPITAL_LETTER_YA = "\u{042F}";
+ public const string CYRILLIC_SMALL_LETTER_A = "\u{0430}";
+ public const string CYRILLIC_SMALL_LETTER_BE = "\u{0431}";
+ public const string CYRILLIC_SMALL_LETTER_VE = "\u{0432}";
+ public const string CYRILLIC_SMALL_LETTER_GHE = "\u{0433}";
+ public const string CYRILLIC_SMALL_LETTER_DE = "\u{0434}";
+ public const string CYRILLIC_SMALL_LETTER_IE = "\u{0435}";
+ public const string CYRILLIC_SMALL_LETTER_ZHE = "\u{0436}";
+ public const string CYRILLIC_SMALL_LETTER_ZE = "\u{0437}";
+ public const string CYRILLIC_SMALL_LETTER_I = "\u{0438}";
+ public const string CYRILLIC_SMALL_LETTER_SHORT_I = "\u{0439}";
+ public const string CYRILLIC_SMALL_LETTER_KA = "\u{043A}";
+ public const string CYRILLIC_SMALL_LETTER_EL = "\u{043B}";
+ public const string CYRILLIC_SMALL_LETTER_EM = "\u{043C}";
+ public const string CYRILLIC_SMALL_LETTER_EN = "\u{043D}";
+ public const string CYRILLIC_SMALL_LETTER_O = "\u{043E}";
+ public const string CYRILLIC_SMALL_LETTER_PE = "\u{043F}";
+ public const string CYRILLIC_SMALL_LETTER_ER = "\u{0440}";
+ public const string CYRILLIC_SMALL_LETTER_ES = "\u{0441}";
+ public const string CYRILLIC_SMALL_LETTER_TE = "\u{0442}";
+ public const string CYRILLIC_SMALL_LETTER_U = "\u{0443}";
+ public const string CYRILLIC_SMALL_LETTER_EF = "\u{0444}";
+ public const string CYRILLIC_SMALL_LETTER_HA = "\u{0445}";
+ public const string CYRILLIC_SMALL_LETTER_TSE = "\u{0446}";
+ public const string CYRILLIC_SMALL_LETTER_CHE = "\u{0447}";
+ public const string CYRILLIC_SMALL_LETTER_SHA = "\u{0448}";
+ public const string CYRILLIC_SMALL_LETTER_SHCHA = "\u{0449}";
+ public const string CYRILLIC_SMALL_LETTER_HARD_SIGN = "\u{044A}";
+ public const string CYRILLIC_SMALL_LETTER_YERU = "\u{044B}";
+ public const string CYRILLIC_SMALL_LETTER_SOFT_SIGN = "\u{044C}";
+ public const string CYRILLIC_SMALL_LETTER_E = "\u{044D}";
+ public const string CYRILLIC_SMALL_LETTER_YU = "\u{044E}";
+ public const string CYRILLIC_SMALL_LETTER_YA = "\u{044F}";
+ public const string CYRILLIC_SMALL_LETTER_IO = "\u{0451}";
+ public const string CYRILLIC_SMALL_LETTER_DJE = "\u{0452}";
+ public const string CYRILLIC_SMALL_LETTER_GJE = "\u{0453}";
+ public const string CYRILLIC_SMALL_LETTER_UKRANIAN_IE = "\u{0454}";
+ public const string CYRILLIC_SMALL_LETTER_DZE = "\u{0455}";
+ public const string CYRILLIC_SMALL_LETTER_BYELORUSSIAN_UKRAINIAN_I = "\u{0456}";
+ public const string CYRILLIC_SMALL_LETTER_YI = "\u{0457}";
+ public const string CYRILLIC_SMALL_LETTER_JE = "\u{0458}";
+ public const string CYRILLIC_SMALL_LETTER_LJE = "\u{0459}";
+ public const string CYRILLIC_SMALL_LETTER_NJE = "\u{045A}";
+ public const string CYRILLIC_SMALL_LETTER_TSHE = "\u{045B}";
+ public const string CYRILLIC_SMALL_LETTER_KJE = "\u{045C}";
+ public const string CYRILLIC_SMALL_LETTER_SHORT_U = "\u{045E}";
+ public const string CYRILLIC_SMALL_LETTER_DZHE = "\u{045F}";
+ public const string CYRILLIC_CAPITAL_LETTER_GHE_WITH_UPTURN = "\u{0490}";
+ public const string CYRILLIC_SMALL_LETTER_GHE_WITH_UPTURN = "\u{0491}";
+ public const string ARABIC_LETTER_HAMZA = "\u{0621}";
+ public const string ARABIC_LETTER_ALEF = "\u{0627}";
+ public const string ARABIC_LETTER_BEH = "\u{0628}";
+ public const string ARABIC_LETTER_TEH_MARBUTA = "\u{0629}";
+ public const string ARABIC_LETTER_TEH = "\u{062A}";
+ public const string ARABIC_LETTER_THEH = "\u{062B}";
+ public const string ARABIC_LETTER_JEEM = "\u{062C}";
+ public const string ARABIC_LETTER_HAH = "\u{062D}";
+ public const string ARABIC_LETTER_KHAH = "\u{062E}";
+ public const string ARABIC_LETTER_DAL = "\u{062F}";
+ public const string ARABIC_LETTER_THAL = "\u{0630}";
+ public const string ARABIC_LETTER_REH = "\u{0631}";
+ public const string ARABIC_LETTER_ZAIN = "\u{0632}";
+ public const string ARABIC_LETTER_SEEN = "\u{0633}";
+ public const string ARABIC_LETTER_SHEEN = "\u{0634}";
+ public const string ARABIC_LETTER_SAD = "\u{0635}";
+ public const string ARABIC_LETTER_DAD = "\u{0636}";
+ public const string ARABIC_LETTER_TAH = "\u{0637}";
+ public const string ARABIC_LETTER_ZAH = "\u{0638}";
+ public const string ARABIC_LETTER_AIN = "\u{0639}";
+ public const string ARABIC_LETTER_GHAIN = "\u{063A}";
+ public const string ARABIC_LETTER_FEH = "\u{0641}";
+ public const string ARABIC_LETTER_QAF = "\u{0642}";
+ public const string ARABIC_LETTER_KAF = "\u{0643}";
+ public const string ARABIC_LETTER_LAM = "\u{0644}";
+ public const string ARABIC_LETTER_MEEM = "\u{0645}";
+ public const string ARABIC_LETTER_NOON = "\u{0646}";
+ public const string ARABIC_LETTER_HEH = "\u{0647}";
+ public const string ARABIC_LETTER_WAW = "\u{0648}";
+ public const string ARABIC_LETTER_ALEF_MAKSURA = "\u{0649}";
+ public const string ARABIC_LETTER_YEH = "\u{064A}";
+ public const string LATIN_CAPITAL_LETTER_A_WITH_RING_BELOW = "\u{1E00}";
+ public const string LATIN_SMALL_LETTER_A_WITH_RING_BELOW = "\u{1E01}";
+ public const string LATIN_CAPITAL_LETTER_B_WITH_DOT_ABOVE = "\u{1E02}";
+ public const string LATIN_SMALL_LETTER_B_WITH_DOT_ABOVE = "\u{1E03}";
+ public const string LATIN_CAPITAL_LETTER_B_WITH_DOT_BELOW = "\u{1E04}";
+ public const string LATIN_SMALL_LETTER_B_WITH_DOT_BELOW = "\u{1E05}";
+ public const string LATIN_CAPITAL_LETTER_C_WITH_CEDILLA_AND_ACUTE = "\u{1E08}";
+ public const string LATIN_SMALL_LETTER_C_WITH_CEDILLA_AND_ACUTE = "\u{1E09}";
+ public const string LATIN_CAPITAL_LETTER_D_WITH_DOT_ABOVE = "\u{1E0A}";
+ public const string LATIN_SMALL_LETTER_D_WITH_DOT_ABOVE = "\u{1E0B}";
+ public const string LATIN_CAPITAL_LETTER_D_WITH_DOT_BELOW = "\u{1E0C}";
+ public const string LATIN_SMALL_LETTER_D_WITH_DOT_BELOW = "\u{1E0D}";
+ public const string LATIN_CAPITAL_LETTER_SHARP_S = "\u{1E9E}";
+ public const string LATIN_CAPITAL_LETTER_D_WITH_CEDILLA = "\u{1E10}";
+ public const string LATIN_SMALL_LETTER_D_WITH_CEDILLA = "\u{1E11}";
+ public const string LATIN_CAPITAL_LETTER_E_WITH_MACRON_AND_GRAVE = "\u{1E14}";
+ public const string LATIN_SMALL_LETTER_E_WITH_MACRON_AND_GRAVE = "\u{1E15}";
+ public const string LATIN_CAPITAL_LETTER_E_WITH_MACRON_AND_ACUTE = "\u{1E16}";
+ public const string LATIN_SMALL_LETTER_E_WITH_MACRON_AND_ACUTE = "\u{1E17}";
+ public const string LATIN_CAPITAL_LETTER_E_WITH_CEDILLA_AND_BREVE = "\u{1E1C}";
+ public const string LATIN_SMALL_LETTER_E_WITH_CEDILLA_AND_BREVE = "\u{1E1D}";
+ public const string LATIN_CAPITAL_LETTER_F_WITH_DOT_ABOVE = "\u{1E1E}";
+ public const string LATIN_SMALL_LETTER_F_WITH_DOT_ABOVE = "\u{1E1F}";
+ public const string LATIN_CAPITAL_LETTER_G_WITH_MACRON = "\u{1E20}";
+ public const string LATIN_SMALL_LETTER_G_WITH_MACRON = "\u{1E21}";
+ public const string LATIN_CAPITAL_LETTER_H_WITH_DOT_ABOVE = "\u{1E22}";
+ public const string LATIN_SMALL_LETTER_H_WITH_DOT_ABOVE = "\u{1E23}";
+ public const string LATIN_CAPITAL_LETTER_H_WITH_DOT_BELOW = "\u{1E24}";
+ public const string LATIN_SMALL_LETTER_H_WITH_DOT_BELOW = "\u{1E25}";
+ public const string LATIN_CAPITAL_LETTER_H_WITH_DIAERESIS = "\u{1E26}";
+ public const string LATIN_SMALL_LETTER_H_WITH_DIAERESIS = "\u{1E27}";
+ public const string LATIN_CAPITAL_LETTER_H_WITH_CEDILLA = "\u{1E28}";
+ public const string LATIN_SMALL_LETTER_H_WITH_CEDILLA = "\u{1E29}";
+ public const string LATIN_CAPITAL_LETTER_H_WITH_BREVE_BELOW = "\u{1E2A}";
+ public const string LATIN_SMALL_LETTER_H_WITH_BREVE_BELOW = "\u{1E2B}";
+ public const string LATIN_CAPITAL_LETTER_I_WITH_DIAERESIS_AND_ACUTE = "\u{1E2E}";
+ public const string LATIN_SMALL_LETTER_I_WITH_DIAERESIS_AND_ACUTE = "\u{1E2F}";
+ public const string LATIN_CAPITAL_LETTER_K_WITH_ACUTE = "\u{1E30}";
+ public const string LATIN_SMALL_LETTER_K_WITH_ACUTE = "\u{1E31}";
+ public const string LATIN_CAPITAL_LETTER_K_WITH_DOT_BELOW = "\u{1E32}";
+ public const string LATIN_SMALL_LETTER_K_WITH_DOT_BELOW = "\u{1E33}";
+ public const string LATIN_CAPITAL_LETTER_L_WITH_DOT_BELOW = "\u{1E36}";
+ public const string LATIN_SMALL_LETTER_L_WITH_DOT_BELOW = "\u{1E37}";
+ public const string LATIN_CAPITAL_LETTER_L_WITH_DOT_BELOW_AND_MACRON = "\u{1E38}";
+ public const string LATIN_SMALL_LETTER_L_WITH_DOT_BELOW_AND_MACRON = "\u{1E39}";
+ public const string LATIN_CAPITAL_LETTER_M_WITH_ACUTE = "\u{1E3E}";
+ public const string LATIN_SMALL_LETTER_M_WITH_ACUTE = "\u{1E3F}";
+ public const string LATIN_CAPITAL_LETTER_M_WITH_DOT_ABOVE = "\u{1E40}";
+ public const string LATIN_SMALL_LETTER_M_WITH_DOT_ABOVE = "\u{1E41}";
+ public const string LATIN_CAPITAL_LETTER_M_WITH_DOT_BELOW = "\u{1E42}";
+ public const string LATIN_SMALL_LETTER_M_WITH_DOT_BELOW = "\u{1E43}";
+ public const string LATIN_CAPITAL_LETTER_N_WITH_DOT_ABOVE = "\u{1E44}";
+ public const string LATIN_SMALL_LETTER_N_WITH_DOT_ABOVE = "\u{1E45}";
+ public const string LATIN_CAPITAL_LETTER_N_WITH_DOT_BELOW = "\u{1E46}";
+ public const string LATIN_SMALL_LETTER_N_WITH_DOT_BELOW = "\u{1E47}";
+ public const string LATIN_CAPITAL_LETTER_O_WITH_TILDE_AND_ACUTE = "\u{1E4C}";
+ public const string LATIN_SMALL_LETTER_O_WITH_TILDE_AND_ACUTE = "\u{1E4D}";
+ public const string LATIN_CAPITAL_LETTER_O_WITH_TILDE_AND_DIAERESIS = "\u{1E4E}";
+ public const string LATIN_SMALL_LETTER_O_WITH_TILDE_AND_DIAERESIS = "\u{1E4F}";
+ public const string LATIN_CAPITAL_LETTER_O_WITH_MACRON_AND_GRAVE = "\u{1E50}";
+ public const string LATIN_SMALL_LETTER_O_WITH_MACRON_AND_GRAVE = "\u{1E51}";
+ public const string LATIN_CAPITAL_LETTER_O_WITH_MACRON_AND_ACUTE = "\u{1E52}";
+ public const string LATIN_SMALL_LETTER_O_WITH_MACRON_AND_ACUTE = "\u{1E53}";
+ public const string LATIN_CAPITAL_LETTER_P_WITH_ACUTE = "\u{1E54}";
+ public const string LATIN_SMALL_LETTER_P_WITH_ACUTE = "\u{1E55}";
+ public const string LATIN_CAPITAL_LETTER_P_WITH_DOT_ABOVE = "\u{1E56}";
+ public const string LATIN_SMALL_LETTER_P_WITH_DOT_ABOVE = "\u{1E57}";
+ public const string LATIN_CAPITAL_LETTER_R_WITH_DOT_ABOVE = "\u{1E58}";
+ public const string LATIN_SMALL_LETTER_R_WITH_DOT_ABOVE = "\u{1E59}";
+ public const string LATIN_CAPITAL_LETTER_R_WITH_DOT_BELOW = "\u{1E5A}";
+ public const string LATIN_SMALL_LETTER_R_WITH_DOT_BELOW = "\u{1E5B}";
+ public const string LATIN_CAPITAL_LETTER_R_WITH_DOT_BELOW_AND_MACRON = "\u{1E5C}";
+ public const string LATIN_SMALL_LETTER_R_WITH_DOT_BELOW_AND_MACRON = "\u{1E5D}";
+ public const string LATIN_CAPITAL_LETTER_S_WITH_DOT_ABOVE = "\u{1E60}";
+ public const string LATIN_SMALL_LETTER_S_WITH_DOT_ABOVE = "\u{1E61}";
+ public const string LATIN_CAPITAL_LETTER_S_WITH_DOT_BELOW = "\u{1E62}";
+ public const string LATIN_SMALL_LETTER_S_WITH_DOT_BELOW = "\u{1E63}";
+ public const string LATIN_CAPITAL_LETTER_S_WITH_ACUTE_AND_DOT_ABOVE = "\u{1E64}";
+ public const string LATIN_SMALL_LETTER_S_WITH_ACUTE_AND_DOT_ABOVE = "\u{1E65}";
+ public const string LATIN_CAPITAL_LETTER_S_WITH_CARON_AND_DOT_ABOVE = "\u{1E66}";
+ public const string LATIN_SMALL_LETTER_S_WITH_CARON_AND_DOT_ABOVE = "\u{1E67}";
+ public const string LATIN_CAPITAL_LETTER_S_WITH_DOT_BELOW_AND_DOT_ABOVE = "\u{1E68}";
+ public const string LATIN_SMALL_LETTER_S_WITH_DOT_BELOW_AND_DOT_ABOVE = "\u{1E69}";
+ public const string LATIN_CAPITAL_LETTER_T_WITH_DOT_ABOVE = "\u{1E6A}";
+ public const string LATIN_SMALL_LETTER_T_WITH_DOT_ABOVE = "\u{1E6B}";
+ public const string LATIN_CAPITAL_LETTER_T_WITH_DOT_BELOW = "\u{1E6C}";
+ public const string LATIN_SMALL_LETTER_T_WITH_DOT_BELOW = "\u{1E6D}";
+ public const string LATIN_CAPITAL_LETTER_U_WITH_DIAERESIS_BELOW = "\u{1E72}";
+ public const string LATIN_SMALL_LETTER_U_WITH_DIAERESIS_BELOW = "\u{1E73}";
+ public const string LATIN_CAPITAL_LETTER_U_WITH_TILDE_AND_ACUTE = "\u{1E78}";
+ public const string LATIN_SMALL_LETTER_U_WITH_TILDE_AND_ACUTE = "\u{1E79}";
+ public const string LATIN_CAPITAL_LETTER_U_WITH_MACRON_AND_DIAERESIS = "\u{1E7A}";
+ public const string LATIN_SMALL_LETTER_U_WITH_MACRON_AND_DIAERESIS = "\u{1E7B}";
+ public const string LATIN_CAPITAL_LETTER_V_WITH_TILDE = "\u{1E7C}";
+ public const string LATIN_SMALL_LETTER_V_WITH_TILDE = "\u{1E7D}";
+ public const string LATIN_CAPITAL_LETTER_V_WITH_DOT_BELOW = "\u{1E7E}";
+ public const string LATIN_SMALL_LETTER_V_WITH_DOT_BELOW = "\u{1E7F}";
+ public const string LATIN_CAPITAL_LETTER_W_WITH_GRAVE = "\u{1E80}";
+ public const string LATIN_SMALL_LETTER_W_WITH_GRAVE = "\u{1E81}";
+ public const string LATIN_CAPITAL_LETTER_W_WITH_ACUTE = "\u{1E82}";
+ public const string LATIN_SMALL_LETTER_W_WITH_ACUTE = "\u{1E83}";
+ public const string LATIN_CAPITAL_LETTER_W_WITH_DIAERESIS = "\u{1E84}";
+ public const string LATIN_SMALL_LETTER_W_WITH_DIAERESIS = "\u{1E85}";
+ public const string LATIN_CAPITAL_LETTER_W_WITH_DOT_ABOVE = "\u{1E86}";
+ public const string LATIN_SMALL_LETTER_W_WITH_DOT_ABOVE = "\u{1E87}";
+ public const string LATIN_CAPITAL_LETTER_W_WITH_DOT_BELOW = "\u{1E88}";
+ public const string LATIN_SMALL_LETTER_W_WITH_DOT_BELOW = "\u{1E89}";
+ public const string LATIN_CAPITAL_LETTER_X_WITH_DOT_ABOVE = "\u{1E8A}";
+ public const string LATIN_SMALL_LETTER_X_WITH_DOT_ABOVE = "\u{1E8B}";
+ public const string LATIN_CAPITAL_LETTER_X_WITH_DIAERESIS = "\u{1E8C}";
+ public const string LATIN_SMALL_LETTER_X_WITH_DIAERESIS = "\u{1E8D}";
+ public const string LATIN_CAPITAL_LETTER_Y_WITH_DOT_ABOVE = "\u{1E8E}";
+ public const string LATIN_SMALL_LETTER_Y_WITH_DOT_ABOVE = "\u{1E8F}";
+ public const string LATIN_CAPITAL_LETTER_Z_WITH_CIRCUMFLEX = "\u{1E90}";
+ public const string LATIN_SMALL_LETTER_Z_WITH_CIRCUMFLEX = "\u{1E91}";
+ public const string LATIN_CAPITAL_LETTER_Z_WITH_DOT_BELOW = "\u{1E92}";
+ public const string LATIN_SMALL_LETTER_Z_WITH_DOT_BELOW = "\u{1E93}";
+ public const string LATIN_SMALL_LETTER_T_WITH_DIAERESIS = "\u{1E97}";
+ public const string LATIN_SMALL_LETTER_W_WITH_RING_ABOVE = "\u{1E98}";
+ public const string LATIN_SMALL_LETTER_Y_WITH_RING_ABOVE = "\u{1E99}";
+ public const string LATIN_CAPITAL_LETTER_A_WITH_DOT_BELOW = "\u{1EA0}";
+ public const string LATIN_SMALL_LETTER_A_WITH_DOT_BELOW = "\u{1EA1}";
+ public const string LATIN_CAPITAL_LETTER_A_WITH_HOOK_ABOVE = "\u{1EA2}";
+ public const string LATIN_SMALL_LETTER_A_WITH_HOOK_ABOVE = "\u{1EA3}";
+ public const string LATIN_CAPITAL_LETTER_A_WITH_CIRCUMFLEX_AND_ACUTE = "\u{1EA4}";
+ public const string LATIN_SMALL_LETTER_A_WITH_CIRCUMFLEX_AND_ACUTE = "\u{1EA5}";
+ public const string LATIN_CAPITAL_LETTER_A_WITH_CIRCUMFLEX_AND_GRAVE = "\u{1EA6}";
+ public const string LATIN_SMALL_LETTER_A_WITH_CIRCUMFLEX_AND_GRAVE = "\u{1EA7}";
+ public const string LATIN_CAPITAL_LETTER_A_WITH_CIRCUMFLEX_AND_HOOK_ABOVE = "\u{1EA8}";
+ public const string LATIN_SMALL_LETTER_A_WITH_CIRCUMFLEX_AND_HOOK_ABOVE = "\u{1EA9}";
+ public const string LATIN_CAPITAL_LETTER_A_WITH_CIRCUMFLEX_AND_TILDE = "\u{1EAA}";
+ public const string LATIN_SMALL_LETTER_A_WITH_CIRCUMFLEX_AND_TILDE = "\u{1EAB}";
+ public const string LATIN_CAPITAL_LETTER_A_WITH_CIRCUMFLEX_AND_DOT_BELOW = "\u{1EAC}";
+ public const string LATIN_SMALL_LETTER_A_WITH_CIRCUMFLEX_AND_DOT_BELOW = "\u{1EAD}";
+ public const string LATIN_CAPITAL_LETTER_A_WITH_BREVE_AND_ACUTE = "\u{1EAE}";
+ public const string LATIN_SMALL_LETTER_A_WITH_BREVE_AND_ACUTE = "\u{1EAF}";
+ public const string LATIN_CAPITAL_LETTER_A_WITH_BREVE_AND_GRAVE = "\u{1EB0}";
+ public const string LATIN_SMALL_LETTER_A_WITH_BREVE_AND_GRAVE = "\u{1EB1}";
+ public const string LATIN_CAPITAL_LETTER_A_WITH_BREVE_AND_HOOK_ABOVE = "\u{1EB2}";
+ public const string LATIN_SMALL_LETTER_A_WITH_BREVE_AND_HOOK_ABOVE = "\u{1EB3}";
+ public const string LATIN_CAPITAL_LETTER_A_WITH_BREVE_AND_TILDE = "\u{1EB4}";
+ public const string LATIN_SMALL_LETTER_A_WITH_BREVE_AND_TILDE = "\u{1EB5}";
+ public const string LATIN_CAPITAL_LETTER_A_WITH_BREVE_AND_DOT_BELOW = "\u{1EB6}";
+ public const string LATIN_SMALL_LETTER_A_WITH_BREVE_AND_DOT_BELOW = "\u{1EB7}";
+ public const string LATIN_CAPITAL_LETTER_E_WITH_DOT_BELOW = "\u{1EB8}";
+ public const string LATIN_SMALL_LETTER_E_WITH_DOT_BELOW = "\u{1EB9}";
+ public const string LATIN_CAPITAL_LETTER_E_WITH_HOOK_ABOVE = "\u{1EBA}";
+ public const string LATIN_SMALL_LETTER_E_WITH_HOOK_ABOVE = "\u{1EBB}";
+ public const string LATIN_CAPITAL_LETTER_E_WITH_TILDE = "\u{1EBC}";
+ public const string LATIN_SMALL_LETTER_E_WITH_TILDE = "\u{1EBD}";
+ public const string LATIN_CAPITAL_LETTER_E_WITH_CIRCUMFLEX_AND_ACUTE = "\u{1EBE}";
+ public const string LATIN_SMALL_LETTER_E_WITH_CIRCUMFLEX_AND_ACUTE = "\u{1EBF}";
+ public const string LATIN_CAPITAL_LETTER_E_WITH_CIRCUMFLEX_AND_GRAVE = "\u{1EC0}";
+ public const string LATIN_SMALL_LETTER_E_WITH_CIRCUMFLEX_AND_GRAVE = "\u{1EC1}";
+ public const string LATIN_CAPITAL_LETTER_E_WITH_CIRCUMFLEX_AND_HOOK_ABOVE = "\u{1EC2}";
+ public const string LATIN_SMALL_LETTER_E_WITH_CIRCUMFLEX_AND_HOOK_ABOVE = "\u{1EC3}";
+ public const string LATIN_CAPITAL_LETTER_E_WITH_CIRCUMFLEX_AND_TILDE = "\u{1EC4}";
+ public const string LATIN_SMALL_LETTER_E_WITH_CIRCUMFLEX_AND_TILDE = "\u{1EC5}";
+ public const string LATIN_CAPITAL_LETTER_E_WITH_CIRCUMFLEX_AND_DOT_BELOW = "\u{1EC6}";
+ public const string LATIN_SMALL_LETTER_E_WITH_CIRCUMFLEX_AND_DOT_BELOW = "\u{1EC7}";
+ public const string LATIN_CAPITAL_LETTER_I_WITH_HOOK_ABOVE = "\u{1EC8}";
+ public const string LATIN_SMALL_LETTER_I_WITH_HOOK_ABOVE = "\u{1EC9}";
+ public const string LATIN_CAPITAL_LETTER_I_WITH_DOT_BELOW = "\u{1ECA}";
+ public const string LATIN_SMALL_LETTER_I_WITH_DOT_BELOW = "\u{1ECB}";
+ public const string LATIN_CAPITAL_LETTER_O_WITH_DOT_BELOW = "\u{1ECC}";
+ public const string LATIN_SMALL_LETTER_O_WITH_DOT_BELOW = "\u{1ECD}";
+ public const string LATIN_CAPITAL_LETTER_O_WITH_HOOK_ABOVE = "\u{1ECE}";
+ public const string LATIN_SMALL_LETTER_O_WITH_HOOK_ABOVE = "\u{1ECF}";
+ public const string LATIN_CAPITAL_LETTER_O_WITH_CIRCUMFLEX_AND_ACUTE = "\u{1ED0}";
+ public const string LATIN_SMALL_LETTER_O_WITH_CIRCUMFLEX_AND_ACUTE = "\u{1ED1}";
+ public const string LATIN_CAPITAL_LETTER_O_WITH_CIRCUMFLEX_AND_GRAVE = "\u{1ED2}";
+ public const string LATIN_SMALL_LETTER_O_WITH_CIRCUMFLEX_AND_GRAVE = "\u{1ED3}";
+ public const string LATIN_CAPITAL_LETTER_O_WITH_CIRCUMFLEX_AND_HOOK_ABOVE = "\u{1ED4}";
+ public const string LATIN_SMALL_LETTER_O_WITH_CIRCUMFLEX_AND_HOOK_ABOVE = "\u{1ED5}";
+ public const string LATIN_CAPITAL_LETTER_O_WITH_CIRCUMFLEX_AND_TILDE = "\u{1ED6}";
+ public const string LATIN_SMALL_LETTER_O_WITH_CIRCUMFLEX_AND_TILDE = "\u{1ED7}";
+ public const string LATIN_CAPITAL_LETTER_O_WITH_CIRCUMFLEX_AND_DOT_BELOW = "\u{1ED8}";
+ public const string LATIN_SMALL_LETTER_O_WITH_CIRCUMFLEX_AND_DOT_BELOW = "\u{1ED9}";
+ public const string LATIN_CAPITAL_LETTER_U_WITH_DOT_BELOW = "\u{1EE4}";
+ public const string LATIN_SMALL_LETTER_U_WITH_DOT_BELOW = "\u{1EE5}";
+ public const string LATIN_CAPITAL_LETTER_U_WITH_HOOK_ABOVE = "\u{1EE6}";
+ public const string LATIN_SMALL_LETTER_U_WITH_HOOK_ABOVE = "\u{1EE7}";
+ public const string LATIN_CAPITAL_LETTER_Y_WITH_GRAVE = "\u{1EF2}";
+ public const string LATIN_SMALL_LETTER_Y_WITH_GRAVE = "\u{1EF3}";
+ public const string LATIN_CAPITAL_LETTER_Y_WITH_DOT_BELOW = "\u{1EF4}";
+ public const string LATIN_SMALL_LETTER_Y_WITH_DOT_BELOW = "\u{1EF5}";
+ public const string LATIN_CAPITAL_LETTER_Y_WITH_HOOK_ABOVE = "\u{1EF6}";
+ public const string LATIN_SMALL_LETTER_Y_WITH_HOOK_ABOVE = "\u{1EF7}";
+ public const string LATIN_CAPITAL_LETTER_Y_WITH_TILDE = "\u{1EF8}";
+ public const string LATIN_SMALL_LETTER_Y_WITH_TILDE = "\u{1EF9}";
+ public const string ZERO_WIDTH_NON_JOINER = "\u{200C}";
+ public const string ZERO_WIDTH_JOINER = "\u{200D}";
+ public const string EN_DASH = "\u{2013}";
+ public const string EM_DASH = "\u{2014}";
+ public const string DOUBLE_LOW_LINE = "\u{2017}";
+ public const string LEFT_SINGLE_QUOTATION_MARK = "\u{2018}";
+ public const string RIGHT_SINGLE_QUOTATION_MARK = "\u{2019}";
+ public const string SINGLE_LOW_9_QUOTATION_MARK = "\u{201A}";
+ public const string LEFT_DOUBLE_QUOTATION_MARK = "\u{201C}";
+ public const string RIGHT_DOUBLE_QUOTATION_MARK = "\u{201D}";
+ public const string DOUBLE_LOW_9_QUOTATION_MARK = "\u{201E}";
+ public const string DAGGER = "\u{2020}";
+ public const string DOUBLE_DAGGER = "\u{2021}";
+ public const string BULLET = "\u{2022}";
+ public const string HORIZONTAL_ELLIPSIS = "\u{2026}";
+ public const string PER_MILLE_SIGN = "\u{2030}";
+ public const string SINGLE_LEFT_POINTING_ANGLE_QUOTATION_MARK = "\u{2039}";
+ public const string SINGLE_RIGHT_POINTING_ANGLE_QUOTATION_MARK = "\u{203A}";
+ public const string FRACTION_SLASH = "\u{2044}";
+ public const string SUPERSCRIPT_LATIN_SMALL_LETTER_N = "\u{207F}";
+ public const string PESETA_SIGN = "\u{20A7}";
+ public const string EURO_SIGN = "\u{20AC}";
+ public const string SCRIPT_SMALL_L = "\u{2113}";
+ public const string NUMERO_SIGN = "\u{2116}";
+ public const string SOUND_RECORDING_COPYRIGHT = "\u{2117}";
+ public const string TRADE_MARK_SIGN = "\u{2122}";
+ public const string PARTIAL_DIFFERENTIAL = "\u{2202}";
+ public const string INCREMENT = "\u{2206}";
+ public const string N_ARY_PRODUCT = "\u{220F}";
+ public const string N_ARY_SUMMATION = "\u{2211}";
+ public const string BULLET_OPERATOR = "\u{2219}";
+ public const string SQUARE_ROOT = "\u{221A}";
+ public const string INFINITY = "\u{221E}";
+ public const string INTERSECTION = "\u{2229}";
+ public const string INTEGRAL = "\u{222B}";
+ public const string ALMOST_EQUAL_TO = "\u{2248}";
+ public const string NOT_EQUAL_TO = "\u{2260}";
+ public const string IDENTICAL_TO = "\u{2261}";
+ public const string LESS_THAN_OR_EQUAL_TO = "\u{2264}";
+ public const string GREATER_THAN_OR_EQUAL_TO = "\u{2265}";
+ public const string REVERSED_NOT_SIGN = "\u{2310}";
+ public const string TOP_HALF_INTEGRAL = "\u{2320}";
+ public const string BOTTOM_HALF_INTEGRAL = "\u{2321}";
+ public const string BOX_DRAWINGS_LIGHT_HORIZONTAL = "\u{2500}";
+ public const string BOX_DRAWINGS_LIGHT_VERTICAL = "\u{2502}";
+ public const string BOX_DRAWINGS_LIGHT_DOWN_AND_RIGHT = "\u{250C}";
+ public const string BOX_DRAWINGS_LIGHT_DOWN_AND_LEFT = "\u{2510}";
+ public const string BOX_DRAWINGS_LIGHT_UP_AND_LEFT = "\u{2518}";
+ public const string BOX_DRAWINGS_LIGHT_UP_AND_RIGHT = "\u{2514}";
+ public const string BOX_DRAWINGS_LIGHT_VERTICAL_AND_RIGHT = "\u{251C}";
+ public const string BOX_DRAWINGS_LIGHT_VERTICAL_AND_LEFT = "\u{2524}";
+ public const string BOX_DRAWINGS_LIGHT_DOWN_AND_HORIZONTAL = "\u{252C}";
+ public const string BOX_DRAWINGS_LIGHT_UP_AND_HORIZONTAL = "\u{2534}";
+ public const string BOX_DRAWINGS_LIGHT_VERTICAL_AND_HORIZONTAL = "\u{253C}";
+ public const string BOX_DRAWINGS_DOUBLE_HORIZONTAL = "\u{2550}";
+ public const string BOX_DRAWINGS_DOUBLE_VERTICAL = "\u{2551}";
+ public const string BOX_DRAWINGS_DOWN_SINGLE_AND_RIGHT_DOUBLE = "\u{2552}";
+ public const string BOX_DRAWINGS_DOWN_DOUBLE_AND_RIGHT_SINGLE = "\u{2553}";
+ public const string BOX_DRAWINGS_DOUBLE_DOWN_AND_RIGHT = "\u{2554}";
+ public const string BOX_DRAWINGS_DOWN_SINGLE_AND_LEFT_DOUBLE = "\u{2555}";
+ public const string BOX_DRAWINGS_DOWN_DOUBLE_AND_LEFT_SINGLE = "\u{2556}";
+ public const string BOX_DRAWINGS_DOUBLE_DOWN_AND_LEFT = "\u{2557}";
+ public const string BOX_DRAWINGS_UP_SINGLE_AND_RIGHT_DOUBLE = "\u{2558}";
+ public const string BOX_DRAWINGS_UP_DOUBLE_AND_RIGHT_SINGLE = "\u{2559}";
+ public const string BOX_DRAWINGS_DOUBLE_UP_AND_RIGHT = "\u{255A}";
+ public const string BOX_DRAWINGS_UP_SINGLE_AND_LEFT_DOUBLE = "\u{255B}";
+ public const string BOX_DRAWINGS_UP_DOUBLE_AND_LEFT_SINGLE = "\u{255C}";
+ public const string BOX_DRAWINGS_DOUBLE_UP_AND_LEFT = "\u{255D}";
+ public const string BOX_DRAWINGS_VERTICAL_SINGLE_AND_RIGHT_DOUBLE = "\u{255E}";
+ public const string BOX_DRAWINGS_VERTICAL_DOUBLE_AND_RIGHT_SINGLE = "\u{255F}";
+ public const string BOX_DRAWINGS_DOUBLE_VERTICAL_AND_RIGHT = "\u{2560}";
+ public const string BOX_DRAWINGS_VERTICAL_SINGLE_AND_LEFT_DOUBLE = "\u{2561}";
+ public const string BOX_DRAWINGS_VERTICAL_DOUBLE_AND_LEFT_SINGLE = "\u{2562}";
+ public const string BOX_DRAWINGS_DOUBLE_VERTICAL_AND_LEFT = "\u{2563}";
+ public const string BOX_DRAWINGS_DOWN_SINGLE_AND_HORIZONTAL_DOUBLE = "\u{2564}";
+ public const string BOX_DRAWINGS_DOWN_DOUBLE_AND_HORIZONTAL_SINGLE = "\u{2565}";
+ public const string BOX_DRAWINGS_DOUBLE_DOWN_AND_HORIZONTAL = "\u{2566}";
+ public const string BOX_DRAWINGS_UP_SINGLE_AND_HORIZONTAL_DOUBLE = "\u{2567}";
+ public const string BOX_DRAWINGS_UP_DOUBLE_AND_HORIZONTAL_SINGLE = "\u{2568}";
+ public const string BOX_DRAWINGS_BOX_DRAWINGS_DOUBLE_UP_AND_HORIZONTAL = "\u{2569}";
+ public const string BOX_DRAWINGS_VERTICAL_SINGLE_AND_HORIZONTAL_DOUBLE = "\u{256A}";
+ public const string BOX_DRAWINGS_VERTICAL_DOUBLE_AND_HORIZONTAL_SINGLE = "\u{256B}";
+ public const string BOX_DRAWINGS_DOUBLE_VERTICAL_AND_HORIZONTAL = "\u{256C}";
+ public const string UPPER_HALF_BLOCK = "\u{2580}";
+ public const string LOWER_HALF_BLOCK = "\u{2584}";
+ public const string FULL_BLOCK = "\u{2588}";
+ public const string LEFT_HALF_BLOCK = "\u{258C}";
+ public const string RIGHT_HALF_BLOCK = "\u{2590}";
+ public const string LIGHT_SHADE = "\u{2591}";
+ public const string MEDIUM_SHADE = "\u{2592}";
+ public const string DARK_SHADE = "\u{2593}";
+ public const string BLACK_SQUARE = "\u{25A0}";
+ public const string WHITE_SQUARE = "\u{25A1}";
+ public const string LOZENGE = "\u{25CA}";
+ public const string MUSIC_FLAT_SIGN = "\u{266D}";
+ public const string MUSIC_SHARP_SIGN = "\u{266F}";
+ public const string LATIN_SMALL_LIGATURE_FI = "\u{FB01}";
+ public const string LATIN_SMALL_LIGATURE_FL = "\u{FB02}";
+ public const string BYTE_ORDER_MARK = "\u{FEFF}";
+ public const string REPLACEMENT_CHARACTER = "\u{FFFD}";
/**
* Convert text from (potentially invalid) UTF-8 to UTF-8.
diff --git a/app/Encodings/Windows1250.php b/app/Encodings/Windows1250.php
index 4ead70f0f4..fe597cbcdb 100644
--- a/app/Encodings/Windows1250.php
+++ b/app/Encodings/Windows1250.php
@@ -26,9 +26,9 @@ namespace Fisharebest\Webtrees\Encodings;
*/
class Windows1250 extends AbstractEncoding
{
- public const NAME = 'CP1250';
+ public const string NAME = 'CP1250';
- protected const TO_UTF8 = [
+ protected const array TO_UTF8 = [
"\x80" => UTF8::EURO_SIGN,
"\x81" => UTF8::REPLACEMENT_CHARACTER,
"\x82" => UTF8::SINGLE_LOW_9_QUOTATION_MARK,
diff --git a/app/Encodings/Windows1251.php b/app/Encodings/Windows1251.php
index 21c657dbd9..5932ab00ac 100644
--- a/app/Encodings/Windows1251.php
+++ b/app/Encodings/Windows1251.php
@@ -26,9 +26,9 @@ namespace Fisharebest\Webtrees\Encodings;
*/
class Windows1251 extends AbstractEncoding
{
- public const NAME = 'CP1251';
+ public const string NAME = 'CP1251';
- protected const TO_UTF8 = [
+ protected const array TO_UTF8 = [
"\x80" => UTF8::CYRILLIC_CAPITAL_LETTER_DJE,
"\x81" => UTF8::CYRILLIC_CAPITAL_LETTER_GJE,
"\x82" => UTF8::SINGLE_LOW_9_QUOTATION_MARK,
diff --git a/app/Encodings/Windows1252.php b/app/Encodings/Windows1252.php
index 13ce94ff7b..fef54159c0 100644
--- a/app/Encodings/Windows1252.php
+++ b/app/Encodings/Windows1252.php
@@ -26,9 +26,9 @@ namespace Fisharebest\Webtrees\Encodings;
*/
class Windows1252 extends AbstractEncoding
{
- public const NAME = 'CP1252';
+ public const string NAME = 'CP1252';
- protected const TO_UTF8 = [
+ protected const array TO_UTF8 = [
"\x80" => UTF8::EURO_SIGN,
"\x81" => UTF8::REPLACEMENT_CHARACTER,
"\x82" => UTF8::SINGLE_LOW_9_QUOTATION_MARK,
diff --git a/app/Fact.php b/app/Fact.php
index 13e689d38a..072ecd5cae 100644
--- a/app/Fact.php
+++ b/app/Fact.php
@@ -43,7 +43,7 @@ use function usort;
*/
class Fact
{
- private const FACT_ORDER = [
+ private const array FACT_ORDER = [
'BIRT',
'_HNM',
'ALIA',
diff --git a/app/Factories/CacheFactory.php b/app/Factories/CacheFactory.php
index 7b9c3e63aa..c2395fdfcb 100644
--- a/app/Factories/CacheFactory.php
+++ b/app/Factories/CacheFactory.php
@@ -33,11 +33,11 @@ use function random_int;
class CacheFactory implements CacheFactoryInterface
{
// How frequently to perform garbage collection.
- private const GC_PROBABILITY = 1000;
+ private const int GC_PROBABILITY = 1000;
// Filesystem cache parameters.
- private const FILES_TTL = 8640000;
- private const FILES_DIR = Webtrees::DATA_DIR . 'cache/';
+ private const int FILES_TTL = 8640000;
+ private const string FILES_DIR = Webtrees::DATA_DIR . 'cache/';
private ArrayAdapter $array_adapter;
diff --git a/app/Factories/FamilyFactory.php b/app/Factories/FamilyFactory.php
index 3763aa53e7..79b0936f52 100644
--- a/app/Factories/FamilyFactory.php
+++ b/app/Factories/FamilyFactory.php
@@ -34,7 +34,7 @@ use function preg_match;
*/
class FamilyFactory extends AbstractGedcomRecordFactory implements FamilyFactoryInterface
{
- private const TYPE_CHECK_REGEX = '/^0 @[^@]+@ ' . Family::RECORD_TYPE . '/';
+ private const string TYPE_CHECK_REGEX = '/^0 @[^@]+@ ' . Family::RECORD_TYPE . '/';
/**
* Create a family.
diff --git a/app/Factories/FilesystemFactory.php b/app/Factories/FilesystemFactory.php
index 418ac435a6..9dfed3d6f9 100644
--- a/app/Factories/FilesystemFactory.php
+++ b/app/Factories/FilesystemFactory.php
@@ -35,7 +35,7 @@ use const DIRECTORY_SEPARATOR;
*/
class FilesystemFactory implements FilesystemFactoryInterface
{
- private const ROOT_DIR = __DIR__ . '/../..';
+ private const string ROOT_DIR = __DIR__ . '/../..';
/**
* Create a filesystem for the user's data folder.
diff --git a/app/Factories/HeaderFactory.php b/app/Factories/HeaderFactory.php
index e4755de753..f25b6b3bc7 100644
--- a/app/Factories/HeaderFactory.php
+++ b/app/Factories/HeaderFactory.php
@@ -33,7 +33,7 @@ use function preg_match;
*/
class HeaderFactory extends AbstractGedcomRecordFactory implements HeaderFactoryInterface
{
- private const TYPE_CHECK_REGEX = '/^0 ' . Header::RECORD_TYPE . '/';
+ private const string TYPE_CHECK_REGEX = '/^0 ' . Header::RECORD_TYPE . '/';
/**
* Create a header.
diff --git a/app/Factories/ImageFactory.php b/app/Factories/ImageFactory.php
index a11b7c874b..e968a39845 100644
--- a/app/Factories/ImageFactory.php
+++ b/app/Factories/ImageFactory.php
@@ -60,14 +60,14 @@ use const PATHINFO_EXTENSION;
class ImageFactory implements ImageFactoryInterface
{
// Imagick can detect the quality setting for images. GD cannot.
- protected const GD_DEFAULT_IMAGE_QUALITY = 90;
- protected const GD_DEFAULT_THUMBNAIL_QUALITY = 70;
+ protected const int GD_DEFAULT_IMAGE_QUALITY = 90;
+ protected const int GD_DEFAULT_THUMBNAIL_QUALITY = 70;
- protected const WATERMARK_FILE = 'resources/img/watermark.png';
+ protected const string WATERMARK_FILE = 'resources/img/watermark.png';
- protected const THUMBNAIL_CACHE_TTL = 8640000;
+ protected const int THUMBNAIL_CACHE_TTL = 8640000;
- public const SUPPORTED_FORMATS = [
+ public const array SUPPORTED_FORMATS = [
'image/jpeg' => 'jpg',
'image/png' => 'png',
'image/gif' => 'gif',
diff --git a/app/Factories/IndividualFactory.php b/app/Factories/IndividualFactory.php
index a91e8c3f22..c51fe05665 100644
--- a/app/Factories/IndividualFactory.php
+++ b/app/Factories/IndividualFactory.php
@@ -33,7 +33,7 @@ use function preg_match;
*/
class IndividualFactory extends AbstractGedcomRecordFactory implements IndividualFactoryInterface
{
- private const TYPE_CHECK_REGEX = '/^0 @[^@]+@ ' . Individual::RECORD_TYPE . '/';
+ private const string TYPE_CHECK_REGEX = '/^0 @[^@]+@ ' . Individual::RECORD_TYPE . '/';
/**
* Create an individual.
diff --git a/app/Factories/LocationFactory.php b/app/Factories/LocationFactory.php
index 5dbd19e1b2..4bdc7d0d95 100644
--- a/app/Factories/LocationFactory.php
+++ b/app/Factories/LocationFactory.php
@@ -33,7 +33,7 @@ use function preg_match;
*/
class LocationFactory extends AbstractGedcomRecordFactory implements LocationFactoryInterface
{
- private const TYPE_CHECK_REGEX = '/^0 @[^@]+@ ' . Location::RECORD_TYPE . '/';
+ private const string TYPE_CHECK_REGEX = '/^0 @[^@]+@ ' . Location::RECORD_TYPE . '/';
/**
* Create a Location.
diff --git a/app/Factories/MarkdownFactory.php b/app/Factories/MarkdownFactory.php
index 57d51f78ce..b7ce8e1592 100644
--- a/app/Factories/MarkdownFactory.php
+++ b/app/Factories/MarkdownFactory.php
@@ -50,9 +50,9 @@ use function strtr;
class MarkdownFactory implements MarkdownFactoryInterface
{
// Commonmark uses the self-closing form of this tag, so we do the same for consistency.
- public const BREAK = '<br />';
+ public const string BREAK = '<br />';
- protected const CONFIG_AUTOLINK = [
+ protected const array CONFIG_AUTOLINK = [
'allow_unsafe_links' => false,
'html_input' => HtmlFilter::ESCAPE,
'renderer' => [
@@ -60,7 +60,7 @@ class MarkdownFactory implements MarkdownFactoryInterface
],
];
- protected const CONFIG_MARKDOWN = [
+ protected const array CONFIG_MARKDOWN = [
'allow_unsafe_links' => false,
'html_input' => HtmlFilter::ESCAPE,
'renderer' => [
diff --git a/app/Factories/MediaFactory.php b/app/Factories/MediaFactory.php
index eddbcb6ad5..692ecdc9bd 100644
--- a/app/Factories/MediaFactory.php
+++ b/app/Factories/MediaFactory.php
@@ -33,7 +33,7 @@ use function preg_match;
*/
class MediaFactory extends AbstractGedcomRecordFactory implements MediaFactoryInterface
{
- private const TYPE_CHECK_REGEX = '/^0 @[^@]+@ ' . Media::RECORD_TYPE . '/';
+ private const string TYPE_CHECK_REGEX = '/^0 @[^@]+@ ' . Media::RECORD_TYPE . '/';
/**
* Create a individual.
diff --git a/app/Factories/NoteFactory.php b/app/Factories/NoteFactory.php
index 9bcbcd68a8..9a3cde342f 100644
--- a/app/Factories/NoteFactory.php
+++ b/app/Factories/NoteFactory.php
@@ -33,7 +33,7 @@ use function preg_match;
*/
class NoteFactory extends AbstractGedcomRecordFactory implements NoteFactoryInterface
{
- private const TYPE_CHECK_REGEX = '/^0 @[^@]+@ ' . Note::RECORD_TYPE . '/';
+ private const string TYPE_CHECK_REGEX = '/^0 @[^@]+@ ' . Note::RECORD_TYPE . '/';
/**
* Create a note.
diff --git a/app/Factories/RepositoryFactory.php b/app/Factories/RepositoryFactory.php
index db96be0880..c4eac760a2 100644
--- a/app/Factories/RepositoryFactory.php
+++ b/app/Factories/RepositoryFactory.php
@@ -34,7 +34,7 @@ use function preg_match;
*/
class RepositoryFactory extends AbstractGedcomRecordFactory implements RepositoryFactoryInterface
{
- private const TYPE_CHECK_REGEX = '/^0 @[^@]+@ ' . Repository::RECORD_TYPE . '/';
+ private const string TYPE_CHECK_REGEX = '/^0 @[^@]+@ ' . Repository::RECORD_TYPE . '/';
/**
* Create a repository.
diff --git a/app/Factories/SharedNoteFactory.php b/app/Factories/SharedNoteFactory.php
index f2279843c0..f926b5cf20 100644
--- a/app/Factories/SharedNoteFactory.php
+++ b/app/Factories/SharedNoteFactory.php
@@ -33,7 +33,7 @@ use function preg_match;
*/
class SharedNoteFactory extends AbstractGedcomRecordFactory implements SharedNoteFactoryInterface
{
- private const TYPE_CHECK_REGEX = '/^0 @[^@]+@ ' . SharedNote::RECORD_TYPE . '/';
+ private const string TYPE_CHECK_REGEX = '/^0 @[^@]+@ ' . SharedNote::RECORD_TYPE . '/';
/**
* Create a note.
diff --git a/app/Factories/SourceFactory.php b/app/Factories/SourceFactory.php
index 559b13a858..535eba4036 100644
--- a/app/Factories/SourceFactory.php
+++ b/app/Factories/SourceFactory.php
@@ -33,7 +33,7 @@ use function preg_match;
*/
class SourceFactory extends AbstractGedcomRecordFactory implements SourceFactoryInterface
{
- private const TYPE_CHECK_REGEX = '/^0 @[^@]+@ ' . Source::RECORD_TYPE . '/';
+ private const string TYPE_CHECK_REGEX = '/^0 @[^@]+@ ' . Source::RECORD_TYPE . '/';
/**
* Create a individual.
diff --git a/app/Factories/SubmissionFactory.php b/app/Factories/SubmissionFactory.php
index ef94ae159a..d46d63e214 100644
--- a/app/Factories/SubmissionFactory.php
+++ b/app/Factories/SubmissionFactory.php
@@ -33,7 +33,7 @@ use function preg_match;
*/
class SubmissionFactory extends AbstractGedcomRecordFactory implements SubmissionFactoryInterface
{
- private const TYPE_CHECK_REGEX = '/^0 @[^@]+@ ' . Submission::RECORD_TYPE . '/';
+ private const string TYPE_CHECK_REGEX = '/^0 @[^@]+@ ' . Submission::RECORD_TYPE . '/';
/**
* Create a submission.
diff --git a/app/Factories/SubmitterFactory.php b/app/Factories/SubmitterFactory.php
index 74eacca8bf..b8f7ee1506 100644
--- a/app/Factories/SubmitterFactory.php
+++ b/app/Factories/SubmitterFactory.php
@@ -33,7 +33,7 @@ use function preg_match;
*/
class SubmitterFactory extends AbstractGedcomRecordFactory implements SubmitterFactoryInterface
{
- private const TYPE_CHECK_REGEX = '/^0 @[^@]+@ ' . Submitter::RECORD_TYPE . '/';
+ private const string TYPE_CHECK_REGEX = '/^0 @[^@]+@ ' . Submitter::RECORD_TYPE . '/';
/**
* Create a submitter.
diff --git a/app/Family.php b/app/Family.php
index e45dc3ef8f..3422b69b67 100644
--- a/app/Family.php
+++ b/app/Family.php
@@ -28,9 +28,9 @@ use Illuminate\Support\Collection;
*/
class Family extends GedcomRecord
{
- public const RECORD_TYPE = 'FAM';
+ public const string RECORD_TYPE = 'FAM';
- protected const ROUTE_NAME = FamilyPage::class;
+ protected const string ROUTE_NAME = FamilyPage::class;
// The husband (or first spouse for same-sex couples)
private Individual|null $husb = null;
diff --git a/app/FlashMessages.php b/app/FlashMessages.php
index 5c64bc5de7..9239dc0eb1 100644
--- a/app/FlashMessages.php
+++ b/app/FlashMessages.php
@@ -27,7 +27,7 @@ use function is_array;
class FlashMessages
{
// Session storage key
- private const FLASH_KEY = 'flash_messages';
+ private const string FLASH_KEY = 'flash_messages';
/**
* Add a message to the session storage.
diff --git a/app/Gedcom.php b/app/Gedcom.php
index c1a392ced4..4d33ef8f20 100644
--- a/app/Gedcom.php
+++ b/app/Gedcom.php
@@ -223,52 +223,52 @@ use Fisharebest\Webtrees\Elements\XrefSubmitter;
class Gedcom
{
// 255 less the EOL character.
- public const LINE_LENGTH = 253;
+ public const int LINE_LENGTH = 253;
// Gedcom tags which indicate the start of life.
- public const BIRTH_EVENTS = ['BIRT', 'CHR', 'BAPM'];
+ public const array BIRTH_EVENTS = ['BIRT', 'CHR', 'BAPM'];
// Gedcom tags which indicate the end of life.
- public const DEATH_EVENTS = ['DEAT', 'BURI', 'CREM'];
+ public const array DEATH_EVENTS = ['DEAT', 'BURI', 'CREM'];
// Gedcom tags which indicate the start of a relationship.
- public const MARRIAGE_EVENTS = ['MARR', '_NMR'];
+ public const array MARRIAGE_EVENTS = ['MARR', '_NMR'];
// Gedcom tags which indicate the end of a relationship.
- public const DIVORCE_EVENTS = ['DIV', 'ANUL', '_SEPR'];
+ public const array DIVORCE_EVENTS = ['DIV', 'ANUL', '_SEPR'];
// Regular expression to match a GEDCOM tag.
- public const REGEX_TAG = '[_A-Z][_A-Z0-9]*';
+ public const string REGEX_TAG = '[_A-Z][_A-Z0-9]*';
// Regular expression to match a GEDCOM XREF.
- public const REGEX_XREF = '[A-Za-z0-9:_.-]{1,20}';
+ public const string REGEX_XREF = '[A-Za-z0-9:_.-]{1,20}';
// Regular expression to match a GEDCOM fact/event for editing raw GEDCOM.
- private const REGEX_VALUE = '( .+)?';
- private const REGEX_LEVEL_9 = '\n9 ' . self::REGEX_TAG . self::REGEX_VALUE;
- private const REGEX_LEVEL_8 = '\n8 ' . self::REGEX_TAG . self::REGEX_VALUE . '(' . self::REGEX_LEVEL_9 . ')*';
- private const REGEX_LEVEL_7 = '\n7 ' . self::REGEX_TAG . self::REGEX_VALUE . '(' . self::REGEX_LEVEL_8 . ')*';
- private const REGEX_LEVEL_6 = '\n6 ' . self::REGEX_TAG . self::REGEX_VALUE . '(' . self::REGEX_LEVEL_7 . ')*';
- private const REGEX_LEVEL_5 = '\n5 ' . self::REGEX_TAG . self::REGEX_VALUE . '(' . self::REGEX_LEVEL_6 . ')*';
- private const REGEX_LEVEL_4 = '\n4 ' . self::REGEX_TAG . self::REGEX_VALUE . '(' . self::REGEX_LEVEL_5 . ')*';
- private const REGEX_LEVEL_3 = '\n3 ' . self::REGEX_TAG . self::REGEX_VALUE . '(' . self::REGEX_LEVEL_4 . ')*';
- private const REGEX_LEVEL_2 = '\n2 ' . self::REGEX_TAG . self::REGEX_VALUE . '(' . self::REGEX_LEVEL_3 . ')*';
- public const REGEX_FACT = '1 ' . self::REGEX_TAG . self::REGEX_VALUE . '(' . self::REGEX_LEVEL_2 . ')*\n?';
+ private const string REGEX_VALUE = '( .+)?';
+ private const string REGEX_LEVEL_9 = '\n9 ' . self::REGEX_TAG . self::REGEX_VALUE;
+ private const string REGEX_LEVEL_8 = '\n8 ' . self::REGEX_TAG . self::REGEX_VALUE . '(' . self::REGEX_LEVEL_9 . ')*';
+ private const string REGEX_LEVEL_7 = '\n7 ' . self::REGEX_TAG . self::REGEX_VALUE . '(' . self::REGEX_LEVEL_8 . ')*';
+ private const string REGEX_LEVEL_6 = '\n6 ' . self::REGEX_TAG . self::REGEX_VALUE . '(' . self::REGEX_LEVEL_7 . ')*';
+ private const string REGEX_LEVEL_5 = '\n5 ' . self::REGEX_TAG . self::REGEX_VALUE . '(' . self::REGEX_LEVEL_6 . ')*';
+ private const string REGEX_LEVEL_4 = '\n4 ' . self::REGEX_TAG . self::REGEX_VALUE . '(' . self::REGEX_LEVEL_5 . ')*';
+ private const string REGEX_LEVEL_3 = '\n3 ' . self::REGEX_TAG . self::REGEX_VALUE . '(' . self::REGEX_LEVEL_4 . ')*';
+ private const string REGEX_LEVEL_2 = '\n2 ' . self::REGEX_TAG . self::REGEX_VALUE . '(' . self::REGEX_LEVEL_3 . ')*';
+ public const string REGEX_FACT = '1 ' . self::REGEX_TAG . self::REGEX_VALUE . '(' . self::REGEX_LEVEL_2 . ')*\n?';
// Separates the parts of a place name.
- public const PLACE_SEPARATOR = ', ';
+ public const string PLACE_SEPARATOR = ', ';
// Regex to match a (badly formed) GEDCOM place separator.
- public const PLACE_SEPARATOR_REGEX = '/ *,[, ]*/';
+ public const string PLACE_SEPARATOR_REGEX = '/ *,[, ]*/';
// LATI and LONG tags
- public const LATITUDE_NORTH = 'N';
- public const LATITUDE_SOUTH = 'S';
- public const LONGITUDE_EAST = 'E';
- public const LONGITUDE_WEST = 'W';
+ public const string LATITUDE_NORTH = 'N';
+ public const string LATITUDE_SOUTH = 'S';
+ public const string LONGITUDE_EAST = 'E';
+ public const string LONGITUDE_WEST = 'W';
// Not all record types allow a CHAN event.
- public const RECORDS_WITH_CHAN = [
+ public const array RECORDS_WITH_CHAN = [
Family::RECORD_TYPE,
Individual::RECORD_TYPE,
Media::RECORD_TYPE,
@@ -279,7 +279,7 @@ class Gedcom
];
// These preferences control multiple tag definitions
- public const HIDDEN_TAGS = [
+ public const array HIDDEN_TAGS = [
// Individual names
'NAME_NPFX' => ['INDI:NAME:NPFX', 'INDI:NAME:FONE:NPFX', 'INDI:NAME:ROMN:NPFX'],
'NAME_SPFX' => ['INDI:NAME:SPFX', 'INDI:NAME:FONE:SPFX', 'INDI:NAME:ROMN:SPFX'],
@@ -341,7 +341,7 @@ class Gedcom
];
// Custom GEDCOM tags that can be created in webtrees.
- public const CUSTOM_FAMILY_TAGS = [
+ public const array CUSTOM_FAMILY_TAGS = [
'FACT',
'_COML',
'_MARI',
@@ -350,7 +350,7 @@ class Gedcom
'_SEPR',
];
- public const CUSTOM_INDIVIDUAL_TAGS = [
+ public const array CUSTOM_INDIVIDUAL_TAGS = [
'_BRTM',
'_CIRC',
'_DEG',
@@ -375,7 +375,7 @@ class Gedcom
// Some applications create GEDCOM files containing records without XREFS.
// We cannot process these.
- public const CUSTOM_RECORDS_WITHOUT_XREFS = [
+ public const array CUSTOM_RECORDS_WITHOUT_XREFS = [
'EMOTIONALRELATIONSHIP', // GenoPro
'GENOMAP', // GenoPro
'GLOBAL', // GenoPro
diff --git a/app/GedcomRecord.php b/app/GedcomRecord.php
index 675e858f51..fad54552d9 100644
--- a/app/GedcomRecord.php
+++ b/app/GedcomRecord.php
@@ -66,9 +66,9 @@ use const STR_PAD_LEFT;
*/
class GedcomRecord
{
- public const RECORD_TYPE = 'UNKNOWN';
+ public const string RECORD_TYPE = 'UNKNOWN';
- protected const ROUTE_NAME = GedcomRecordPage::class;
+ protected const string ROUTE_NAME = GedcomRecordPage::class;
protected string $xref;
diff --git a/app/Header.php b/app/Header.php
index 73b2060d87..bd4631ffcf 100644
--- a/app/Header.php
+++ b/app/Header.php
@@ -26,9 +26,9 @@ use Fisharebest\Webtrees\Http\RequestHandlers\HeaderPage;
*/
class Header extends GedcomRecord
{
- public const RECORD_TYPE = 'HEAD';
+ public const string RECORD_TYPE = 'HEAD';
- protected const ROUTE_NAME = HeaderPage::class;
+ protected const string ROUTE_NAME = HeaderPage::class;
/**
* Extract names from the GEDCOM record.
diff --git a/app/Http/Middleware/BadBotBlocker.php b/app/Http/Middleware/BadBotBlocker.php
index 6211f72929..80bf4db43f 100644
--- a/app/Http/Middleware/BadBotBlocker.php
+++ b/app/Http/Middleware/BadBotBlocker.php
@@ -52,16 +52,16 @@ use function str_ends_with;
*/
class BadBotBlocker implements MiddlewareInterface
{
- private const REGEX_OCTET = '(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)';
- private const REGEX_IPV4 = '/\\b' . self::REGEX_OCTET . '(?:\\.' . self::REGEX_OCTET . '){3}\\b/';
+ private const string REGEX_OCTET = '(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)';
+ private const string REGEX_IPV4 = '/\\b' . self::REGEX_OCTET . '(?:\\.' . self::REGEX_OCTET . '){3}\\b/';
// Cache whois requests. Try to avoid all caches expiring at the same time.
- private const WHOIS_TTL_MIN = 28 * 86400;
- private const WHOIS_TTL_MAX = 35 * 86400;
- private const WHOIS_TIMEOUT = 5;
+ private const int WHOIS_TTL_MIN = 28 * 86400;
+ private const int WHOIS_TTL_MAX = 35 * 86400;
+ private const int WHOIS_TIMEOUT = 5;
// Bad robots - SEO optimisers, advertisers, etc. This list is shared with robots.txt.
- public const BAD_ROBOTS = [
+ public const array BAD_ROBOTS = [
'admantx',
'Adsbot',
'AhrefsBot',
@@ -129,7 +129,7 @@ class BadBotBlocker implements MiddlewareInterface
* @see https://www.mojeek.com/bot.html
* @see https://support.apple.com/en-gb/HT204683
*/
- private const ROBOT_REV_FWD_DNS = [
+ private const array ROBOT_REV_FWD_DNS = [
'Amazonbot' => ['.crawl.amazon.com'],
'Applebot' => ['.applebot.apple.com'],
'BingPreview' => ['.search.msn.com'],
@@ -152,7 +152,7 @@ class BadBotBlocker implements MiddlewareInterface
* @see https://napoveda.seznam.cz/en/full-text-search/seznambot-crawler
* @see https://www.ionos.de/terms-gtc/faq-crawler
*/
- private const ROBOT_REV_ONLY_DNS = [
+ private const array ROBOT_REV_ONLY_DNS = [
'Baiduspider' => ['.baidu.com', '.baidu.jp'],
'FreshBot' => ['.seznam.cz'],
'IonCrawl' => ['.1und1.org'],
@@ -166,7 +166,7 @@ class BadBotBlocker implements MiddlewareInterface
* @see https://www.apple.com/go/applebot
* @see https://help.duckduckgo.com/duckduckgo-help-pages/results/duckduckbot
*/
- private const ROBOT_IPS = [
+ private const array ROBOT_IPS = [
'AppleBot' => [
'17.0.0.0/8',
],
@@ -203,7 +203,7 @@ class BadBotBlocker implements MiddlewareInterface
*
* @see https://bot.seekport.com/
*/
- private const ROBOT_IP_FILES = [
+ private const array ROBOT_IP_FILES = [
'SeekportBot' => 'https://bot.seekport.com/seekportbot_ips.txt',
];
@@ -213,7 +213,7 @@ class BadBotBlocker implements MiddlewareInterface
* @see https://developers.facebook.com/docs/sharing/webmasters/crawler
* @see https://www.facebook.com/peering/
*/
- private const ROBOT_ASNS = [
+ private const array ROBOT_ASNS = [
'facebook' => ['AS32934', 'AS63293'],
'twitter' => ['AS13414'],
];
diff --git a/app/Http/Middleware/CheckCsrf.php b/app/Http/Middleware/CheckCsrf.php
index b06cc14995..7fdfcc32cf 100644
--- a/app/Http/Middleware/CheckCsrf.php
+++ b/app/Http/Middleware/CheckCsrf.php
@@ -39,7 +39,7 @@ use function in_array;
*/
class CheckCsrf implements MiddlewareInterface
{
- private const EXCLUDE_ROUTES = [
+ private const array EXCLUDE_ROUTES = [
Logout::class,
SelectLanguage::class,
SelectTheme::class,
diff --git a/app/Http/Middleware/CompressResponse.php b/app/Http/Middleware/CompressResponse.php
index 8186efbb69..d1ad7786e0 100644
--- a/app/Http/Middleware/CompressResponse.php
+++ b/app/Http/Middleware/CompressResponse.php
@@ -41,7 +41,7 @@ use function strtr;
class CompressResponse implements MiddlewareInterface
{
// Non-text responses that will benefit from compression.
- protected const MIME_TYPES = [
+ protected const array MIME_TYPES = [
'application/javascript',
'application/json',
'application/pdf',
diff --git a/app/Http/Middleware/DoHousekeeping.php b/app/Http/Middleware/DoHousekeeping.php
index a0fd2c5c1c..166df6c140 100644
--- a/app/Http/Middleware/DoHousekeeping.php
+++ b/app/Http/Middleware/DoHousekeeping.php
@@ -34,21 +34,21 @@ use Psr\Http\Server\RequestHandlerInterface;
class DoHousekeeping implements MiddlewareInterface
{
// Delete old thumbnails after 90 days.
- private const THUMBNAIL_DIR = 'thumbnail-cache';
- private const MAX_THUMBNAIL_AGE = 60 * 60 * 24 * 90;
+ private const string THUMBNAIL_DIR = 'thumbnail-cache';
+ private const int MAX_THUMBNAIL_AGE = 60 * 60 * 24 * 90;
// Delete files in /data/tmp after 1 hour.
- private const TMP_DIR = 'data/tmp';
- private const MAX_TMP_FILE_AGE = 60 * 60;
+ private const string TMP_DIR = 'data/tmp';
+ private const int MAX_TMP_FILE_AGE = 60 * 60;
// Delete error logs after 90 days.
- private const MAX_LOG_AGE = 60 * 60 * 24 * 90;
+ private const int MAX_LOG_AGE = 60 * 60 * 24 * 90;
// Delete inactive sessions after 1 day.
- private const MAX_SESSION_AGE = 60 * 60 * 24;
+ private const int MAX_SESSION_AGE = 60 * 60 * 24;
// Run the cleanup every N requests.
- private const PROBABILITY = 250;
+ private const int PROBABILITY = 250;
private HousekeepingService $housekeeping_service;
diff --git a/app/Http/Middleware/EmitResponse.php b/app/Http/Middleware/EmitResponse.php
index 5a57bac03d..ae690f9582 100644
--- a/app/Http/Middleware/EmitResponse.php
+++ b/app/Http/Middleware/EmitResponse.php
@@ -44,7 +44,7 @@ use const CONNECTION_NORMAL;
class EmitResponse implements MiddlewareInterface
{
// Stream the output in chunks.
- private const CHUNK_SIZE = 65536;
+ private const int CHUNK_SIZE = 65536;
/**
* @param ServerRequestInterface $request
diff --git a/app/Http/Middleware/SecurityHeaders.php b/app/Http/Middleware/SecurityHeaders.php
index 5e49ce95ef..143e507509 100644
--- a/app/Http/Middleware/SecurityHeaders.php
+++ b/app/Http/Middleware/SecurityHeaders.php
@@ -30,7 +30,7 @@ use Psr\Http\Server\RequestHandlerInterface;
*/
class SecurityHeaders implements MiddlewareInterface
{
- private const SECURITY_HEADERS = [
+ private const array SECURITY_HEADERS = [
'Permissions-Policy' => 'browsing-topics=()',
'Referrer-Policy' => 'same-origin',
'X-Content-Type-Options' => 'nosniff',
diff --git a/app/Http/Middleware/UseSession.php b/app/Http/Middleware/UseSession.php
index 673250f0aa..81dfc429be 100644
--- a/app/Http/Middleware/UseSession.php
+++ b/app/Http/Middleware/UseSession.php
@@ -41,7 +41,7 @@ use const PHP_SESSION_ACTIVE;
class UseSession implements MiddlewareInterface
{
// To avoid read-write contention on the wt_user_setting table, don't update the last-active time on every request.
- private const UPDATE_ACTIVITY_INTERVAL = 60;
+ private const int UPDATE_ACTIVITY_INTERVAL = 60;
/**
* @param ServerRequestInterface $request
diff --git a/app/Http/Middleware/UseTransaction.php b/app/Http/Middleware/UseTransaction.php
index 20f010d9a1..080d44c3cc 100644
--- a/app/Http/Middleware/UseTransaction.php
+++ b/app/Http/Middleware/UseTransaction.php
@@ -31,7 +31,7 @@ use Psr\Http\Server\RequestHandlerInterface;
class UseTransaction implements MiddlewareInterface
{
// If a transaction deadlock occurs, try again.
- private const DEADLOCK_RETRY_ATTEMPTS = 3;
+ private const int DEADLOCK_RETRY_ATTEMPTS = 3;
/**
* @param ServerRequestInterface $request
diff --git a/app/Http/RequestHandlers/AbstractAutocompleteHandler.php b/app/Http/RequestHandlers/AbstractAutocompleteHandler.php
index fb72e6e347..53901abeae 100644
--- a/app/Http/RequestHandlers/AbstractAutocompleteHandler.php
+++ b/app/Http/RequestHandlers/AbstractAutocompleteHandler.php
@@ -33,10 +33,10 @@ use function response;
abstract class AbstractAutocompleteHandler implements RequestHandlerInterface
{
// The client software only shows the first few results
- protected const LIMIT = 10;
+ protected const int LIMIT = 10;
// Tell the browser to cache the results
- protected const CACHE_LIFE = 1200;
+ protected const int CACHE_LIFE = 1200;
protected SearchService $search_service;
diff --git a/app/Http/RequestHandlers/AbstractTomSelectHandler.php b/app/Http/RequestHandlers/AbstractTomSelectHandler.php
index 4e7ae0acf6..96cc6bc4c1 100644
--- a/app/Http/RequestHandlers/AbstractTomSelectHandler.php
+++ b/app/Http/RequestHandlers/AbstractTomSelectHandler.php
@@ -34,7 +34,7 @@ use function response;
abstract class AbstractTomSelectHandler implements RequestHandlerInterface
{
// For clients that request one page of data at a time.
- private const RESULTS_PER_PAGE = 50;
+ private const int RESULTS_PER_PAGE = 50;
/**
* @param ServerRequestInterface $request
diff --git a/app/Http/RequestHandlers/AddSpouseToIndividualPage.php b/app/Http/RequestHandlers/AddSpouseToIndividualPage.php
index 2c90ec5d77..b68854ab14 100644
--- a/app/Http/RequestHandlers/AddSpouseToIndividualPage.php
+++ b/app/Http/RequestHandlers/AddSpouseToIndividualPage.php
@@ -39,7 +39,7 @@ class AddSpouseToIndividualPage implements RequestHandlerInterface
use ViewResponseTrait;
// Create mixed-sex couples by default
- private const OPPOSITE_SEX = [
+ private const array OPPOSITE_SEX = [
'F' => 'M',
'M' => 'F',
'U' => 'U',
diff --git a/app/Http/RequestHandlers/DataFixUpdateAll.php b/app/Http/RequestHandlers/DataFixUpdateAll.php
index 34448c99c4..4266102336 100644
--- a/app/Http/RequestHandlers/DataFixUpdateAll.php
+++ b/app/Http/RequestHandlers/DataFixUpdateAll.php
@@ -43,7 +43,7 @@ use const JSON_THROW_ON_ERROR;
class DataFixUpdateAll implements RequestHandlerInterface
{
// Process this number of records in each HTTP request
- private const CHUNK_SIZE = 250;
+ private const int CHUNK_SIZE = 250;
private DataFixService $data_fix_service;
diff --git a/app/Http/RequestHandlers/DeletePath.php b/app/Http/RequestHandlers/DeletePath.php
index 9808db4307..e244e1a4d6 100644
--- a/app/Http/RequestHandlers/DeletePath.php
+++ b/app/Http/RequestHandlers/DeletePath.php
@@ -41,7 +41,7 @@ use function str_ends_with;
*/
class DeletePath implements RequestHandlerInterface
{
- private const PROTECTED_PATHS = [
+ private const array PROTECTED_PATHS = [
'config.ini.php',
'index.php',
'.htaccess',
diff --git a/app/Http/RequestHandlers/GedcomRecordPage.php b/app/Http/RequestHandlers/GedcomRecordPage.php
index c9dfe6b8c2..f1c17cb23a 100644
--- a/app/Http/RequestHandlers/GedcomRecordPage.php
+++ b/app/Http/RequestHandlers/GedcomRecordPage.php
@@ -51,7 +51,7 @@ class GedcomRecordPage implements RequestHandlerInterface
use ViewResponseTrait;
// These standard genealogy record types have their own pages.
- private const STANDARD_RECORDS = [
+ private const array STANDARD_RECORDS = [
Family::class,
Header::class,
Individual::class,
diff --git a/app/Http/RequestHandlers/HelpText.php b/app/Http/RequestHandlers/HelpText.php
index 6c3fe22bef..8a0f87c6dd 100644
--- a/app/Http/RequestHandlers/HelpText.php
+++ b/app/Http/RequestHandlers/HelpText.php
@@ -36,7 +36,7 @@ use function view;
*/
class HelpText implements RequestHandlerInterface
{
- private const FRENCH_DATES = [
+ private const array FRENCH_DATES = [
'@#DFRENCH R@ 12',
'@#DFRENCH R@ VEND 12',
'ABT @#DFRENCH R@ BRUM 12',
@@ -51,7 +51,7 @@ class HelpText implements RequestHandlerInterface
'@#DFRENCH R@ 03 COMP 12',
];
- private const HIJRI_DATES = [
+ private const array HIJRI_DATES = [
'@#DHIJRI@ 1497',
'@#DHIJRI@ MUHAR 1497',
'ABT @#DHIJRI@ SAFAR 1497',
@@ -65,7 +65,7 @@ class HelpText implements RequestHandlerInterface
'@#DHIJRI@ 03 DHUAH 1497',
];
- private const JALALI_DATES = [
+ private const array JALALI_DATES = [
'@#DJALALI@ 1497',
'@#DJALALI@ FARVA 1497',
'ABT @#DJALALI@ ORDIB 1497',
@@ -79,7 +79,7 @@ class HelpText implements RequestHandlerInterface
'@#DJALALI@ 03 XXXXX 1497',
];
- private const JEWISH_DATES = [
+ private const array JEWISH_DATES = [
'@#DHEBREW@ 5481',
'@#DHEBREW@ TSH 5481',
'ABT @#DHEBREW@ CSH 5481',
@@ -95,14 +95,14 @@ class HelpText implements RequestHandlerInterface
'@#DHEBREW@ 03 ELL 5481',
];
- private const JULIAN_DATES = [
+ private const array JULIAN_DATES = [
'@#DJULIAN@ 14 JAN 1700',
'@#DJULIAN@ 44 B.C.',
'@#DJULIAN@ 20 FEB 1742/43',
'BET @#DJULIAN@ 01 SEP 1752 AND @#DGREGORIAN@ 30 SEP 1752',
];
- private const DATE_SHORTCUTS = [
+ private const array DATE_SHORTCUTS = [
'1900' => [],
'JAN 1900' => [],
'FEB 1900' => [],
@@ -122,7 +122,7 @@ class HelpText implements RequestHandlerInterface
'INT 1900 (...)' => [],
];
- private const DATE_RANGE_SHORTCUTS = [
+ private const array DATE_RANGE_SHORTCUTS = [
'BET 1900 AND 1910' => ['1900-1910'],
'AFT 1900' => ['>1900'],
'BEF 1910' => ['<1910'],
@@ -132,13 +132,13 @@ class HelpText implements RequestHandlerInterface
'BET OCT 1900 AND DEC 1900' => ['Q4 1900'],
];
- private const DATE_PERIOD_SHORTCUTS = [
+ private const array DATE_PERIOD_SHORTCUTS = [
'FROM 1900 TO 1910' => ['1900~1910'],
'FROM 1900' => ['1900-'],
'TO 1910' => ['-1900'],
];
- private const DMY_SHORTCUTS = [
+ private const array DMY_SHORTCUTS = [
'11 DEC 1913' => [
'11/12/1913',
'11-12-1913',
@@ -151,7 +151,7 @@ class HelpText implements RequestHandlerInterface
],
];
- private const MDY_SHORTCUTS = [
+ private const array MDY_SHORTCUTS = [
'11 DEC 1913' => [
'12/11/1913',
'12-11-1913',
@@ -164,7 +164,7 @@ class HelpText implements RequestHandlerInterface
],
];
- private const YMD_SHORTCUTS = [
+ private const array YMD_SHORTCUTS = [
'11 DEC 1913' => [
'11/12/1913',
'11-12-1913',
diff --git a/app/Http/RequestHandlers/PasswordRequestAction.php b/app/Http/RequestHandlers/PasswordRequestAction.php
index 3b2a5b1a06..6f6ebbc1a0 100644
--- a/app/Http/RequestHandlers/PasswordRequestAction.php
+++ b/app/Http/RequestHandlers/PasswordRequestAction.php
@@ -46,13 +46,13 @@ use function view;
*/
class PasswordRequestAction implements RequestHandlerInterface, StatusCodeInterface
{
- private const TOKEN_LENGTH = 40;
+ private const int TOKEN_LENGTH = 40;
- private const TOKEN_VALIDITY_SECONDS = 3600;
+ private const int TOKEN_VALIDITY_SECONDS = 3600;
- private const RATE_LIMIT_REQUESTS = 5;
+ private const int RATE_LIMIT_REQUESTS = 5;
- private const RATE_LIMIT_SECONDS = 300;
+ private const int RATE_LIMIT_SECONDS = 300;
private EmailService $email_service;
diff --git a/app/Http/RequestHandlers/PendingChanges.php b/app/Http/RequestHandlers/PendingChanges.php
index d2fcbfb366..7760562d22 100644
--- a/app/Http/RequestHandlers/PendingChanges.php
+++ b/app/Http/RequestHandlers/PendingChanges.php
@@ -37,7 +37,7 @@ class PendingChanges implements RequestHandlerInterface
use ViewResponseTrait;
// Some servers may not have enough resources to show all the changes.
- private const MAX_CHANGES = 1000;
+ private const int MAX_CHANGES = 1000;
private PendingChangesService $pending_changes_service;
diff --git a/app/Http/RequestHandlers/RedirectAncestryPhp.php b/app/Http/RequestHandlers/RedirectAncestryPhp.php
index 2eabca891e..b168ecac2e 100644
--- a/app/Http/RequestHandlers/RedirectAncestryPhp.php
+++ b/app/Http/RequestHandlers/RedirectAncestryPhp.php
@@ -39,7 +39,7 @@ use Psr\Http\Server\RequestHandlerInterface;
*/
class RedirectAncestryPhp implements RequestHandlerInterface
{
- private const CHART_STYLES = [
+ private const array CHART_STYLES = [
0 => AncestorsChartModule::CHART_STYLE_TREE,
1 => AncestorsChartModule::CHART_STYLE_TREE,
2 => AncestorsChartModule::CHART_STYLE_INDIVIDUALS,
diff --git a/app/Http/RequestHandlers/RedirectDescendencyPhp.php b/app/Http/RequestHandlers/RedirectDescendencyPhp.php
index 629785a2c6..61dfaea172 100644
--- a/app/Http/RequestHandlers/RedirectDescendencyPhp.php
+++ b/app/Http/RequestHandlers/RedirectDescendencyPhp.php
@@ -39,7 +39,7 @@ use Psr\Http\Server\RequestHandlerInterface;
*/
class RedirectDescendencyPhp implements RequestHandlerInterface
{
- private const CHART_STYLES = [
+ private const array CHART_STYLES = [
0 => 'tree',
1 => 'tree',
2 => 'individuals',
diff --git a/app/Http/RequestHandlers/RedirectPedigreePhp.php b/app/Http/RequestHandlers/RedirectPedigreePhp.php
index f2764e81c1..614f9afcef 100644
--- a/app/Http/RequestHandlers/RedirectPedigreePhp.php
+++ b/app/Http/RequestHandlers/RedirectPedigreePhp.php
@@ -39,7 +39,7 @@ use Psr\Http\Server\RequestHandlerInterface;
*/
class RedirectPedigreePhp implements RequestHandlerInterface
{
- private const CHART_STYLES = [
+ private const array CHART_STYLES = [
0 => 'right',
1 => 'right',
2 => 'top',
diff --git a/app/Http/RequestHandlers/RobotsTxt.php b/app/Http/RequestHandlers/RobotsTxt.php
index 31d4a26acb..937f6df4c7 100644
--- a/app/Http/RequestHandlers/RobotsTxt.php
+++ b/app/Http/RequestHandlers/RobotsTxt.php
@@ -40,7 +40,7 @@ use const PHP_URL_PATH;
*/
class RobotsTxt implements RequestHandlerInterface
{
- private const DISALLOWED_PATHS = [
+ private const array DISALLOWED_PATHS = [
'admin',
'manager',
'moderator',
diff --git a/app/Http/RequestHandlers/SearchAdvancedPage.php b/app/Http/RequestHandlers/SearchAdvancedPage.php
index 08cde26aec..e9abcdfb0b 100644
--- a/app/Http/RequestHandlers/SearchAdvancedPage.php
+++ b/app/Http/RequestHandlers/SearchAdvancedPage.php
@@ -47,7 +47,7 @@ class SearchAdvancedPage implements RequestHandlerInterface
{
use ViewResponseTrait;
- private const DEFAULT_ADVANCED_FIELDS = [
+ private const array DEFAULT_ADVANCED_FIELDS = [
'INDI:NAME:GIVN',
'INDI:NAME:SURN',
'INDI:BIRT:DATE',
@@ -62,7 +62,7 @@ class SearchAdvancedPage implements RequestHandlerInterface
'MOTHER:NAME:SURN',
];
- private const OTHER_ADVANCED_FIELDS = [
+ private const array OTHER_ADVANCED_FIELDS = [
'INDI:ADOP:DATE',
'INDI:ADOP:PLAC',
'INDI:AFN',
diff --git a/app/Http/RequestHandlers/SetupWizard.php b/app/Http/RequestHandlers/SetupWizard.php
index b6e92b5a6d..7d53291193 100644
--- a/app/Http/RequestHandlers/SetupWizard.php
+++ b/app/Http/RequestHandlers/SetupWizard.php
@@ -63,9 +63,9 @@ class SetupWizard implements RequestHandlerInterface
{
use ViewResponseTrait;
- private const DEFAULT_DBTYPE = DB::MYSQL;
- private const DEFAULT_PREFIX = 'wt_';
- private const DEFAULT_DATA = [
+ private const string DEFAULT_DBTYPE = DB::MYSQL;
+ private const string DEFAULT_PREFIX = 'wt_';
+ private const array DEFAULT_DATA = [
'baseurl' => '',
'lang' => '',
'dbtype' => self::DEFAULT_DBTYPE,
@@ -85,7 +85,7 @@ class SetupWizard implements RequestHandlerInterface
'wtemail' => '',
];
- private const DEFAULT_PORTS = [
+ private const array DEFAULT_PORTS = [
DB::MYSQL => '3306',
DB::POSTGRES => '5432',
DB::SQLITE => '',
diff --git a/app/Http/RequestHandlers/UpgradeWizardPage.php b/app/Http/RequestHandlers/UpgradeWizardPage.php
index 2ee0ef2255..49bd35db3b 100644
--- a/app/Http/RequestHandlers/UpgradeWizardPage.php
+++ b/app/Http/RequestHandlers/UpgradeWizardPage.php
@@ -42,13 +42,13 @@ class UpgradeWizardPage implements RequestHandlerInterface
use ViewResponseTrait;
// We make the upgrade in a number of small steps to keep within server time limits.
- private const STEP_CHECK = 'Check';
- private const STEP_PREPARE = 'Prepare';
- private const STEP_PENDING = 'Pending';
- private const STEP_EXPORT = 'Export';
- private const STEP_DOWNLOAD = 'Download';
- private const STEP_UNZIP = 'Unzip';
- private const STEP_COPY = 'Copy';
+ private const string STEP_CHECK = 'Check';
+ private const string STEP_PREPARE = 'Prepare';
+ private const string STEP_PENDING = 'Pending';
+ private const string STEP_EXPORT = 'Export';
+ private const string STEP_DOWNLOAD = 'Download';
+ private const string STEP_UNZIP = 'Unzip';
+ private const string STEP_COPY = 'Copy';
private TreeService $tree_service;
diff --git a/app/Http/RequestHandlers/UpgradeWizardStep.php b/app/Http/RequestHandlers/UpgradeWizardStep.php
index 759bbc2386..4e612fc8bd 100644
--- a/app/Http/RequestHandlers/UpgradeWizardStep.php
+++ b/app/Http/RequestHandlers/UpgradeWizardStep.php
@@ -52,25 +52,25 @@ use function view;
class UpgradeWizardStep implements RequestHandlerInterface
{
// We make the upgrade in a number of small steps to keep within server time limits.
- private const STEP_CHECK = 'Check';
- private const STEP_PREPARE = 'Prepare';
- private const STEP_PENDING = 'Pending';
- private const STEP_EXPORT = 'Export';
- private const STEP_DOWNLOAD = 'Download';
- private const STEP_UNZIP = 'Unzip';
- private const STEP_COPY = 'Copy';
+ private const string STEP_CHECK = 'Check';
+ private const string STEP_PREPARE = 'Prepare';
+ private const string STEP_PENDING = 'Pending';
+ private const string STEP_EXPORT = 'Export';
+ private const string STEP_DOWNLOAD = 'Download';
+ private const string STEP_UNZIP = 'Unzip';
+ private const string STEP_COPY = 'Copy';
// Where to store our temporary files.
- private const UPGRADE_FOLDER = 'data/tmp/upgrade/';
+ private const string UPGRADE_FOLDER = 'data/tmp/upgrade/';
// Where to store the downloaded ZIP archive.
- private const ZIP_FILENAME = 'data/tmp/webtrees.zip';
+ private const string ZIP_FILENAME = 'data/tmp/webtrees.zip';
// The ZIP archive stores everything inside this top-level folder.
- private const ZIP_FILE_PREFIX = 'webtrees';
+ private const string ZIP_FILE_PREFIX = 'webtrees';
// Cruft can accumulate after upgrades.
- private const FOLDERS_TO_CLEAN = [
+ private const array FOLDERS_TO_CLEAN = [
'app',
'resources',
'vendor',
diff --git a/app/Http/RequestHandlers/UploadMediaPage.php b/app/Http/RequestHandlers/UploadMediaPage.php
index cd56a3608b..db84fa59a3 100644
--- a/app/Http/RequestHandlers/UploadMediaPage.php
+++ b/app/Http/RequestHandlers/UploadMediaPage.php
@@ -37,7 +37,7 @@ class UploadMediaPage implements RequestHandlerInterface
use ViewResponseTrait;
// How many files to upload on one form.
- private const MAX_UPLOAD_FILES = 10;
+ private const int MAX_UPLOAD_FILES = 10;
private MediaFileService $media_file_service;
diff --git a/app/I18N.php b/app/I18N.php
index b2c6727f2c..185ea5e0cd 100644
--- a/app/I18N.php
+++ b/app/I18N.php
@@ -54,30 +54,30 @@ use function var_export;
class I18N
{
// MO files use special characters for plurals and context.
- public const PLURAL = "\x00";
- public const CONTEXT = "\x04";
+ public const string PLURAL = "\x00";
+ public const string CONTEXT = "\x04";
// Digits are always rendered LTR, even in RTL text.
- private const DIGITS = '0123456789٠١٢٣٤٥٦٧٨٩۰۱۲۳۴۵۶۷۸۹';
+ private const string DIGITS = '0123456789٠١٢٣٤٥٦٧٨٩۰۱۲۳۴۵۶۷۸۹';
// These locales need special handling for the dotless letter I.
- private const DOTLESS_I_LOCALES = [
+ private const array DOTLESS_I_LOCALES = [
'az',
'tr',
];
- private const DOTLESS_I_TOLOWER = [
+ private const array DOTLESS_I_TOLOWER = [
'I' => 'ı',
'İ' => 'i',
];
- private const DOTLESS_I_TOUPPER = [
+ private const array DOTLESS_I_TOUPPER = [
'ı' => 'I',
'i' => 'İ',
];
// The ranges of characters used by each script.
- private const SCRIPT_CHARACTER_RANGES = [
+ private const array SCRIPT_CHARACTER_RANGES = [
[
'Latn',
0x0041,
@@ -179,7 +179,7 @@ class I18N
];
// Characters that are displayed in mirror form in RTL text.
- private const MIRROR_CHARACTERS = [
+ private const array MIRROR_CHARACTERS = [
'(' => ')',
')' => '(',
'[' => ']',
diff --git a/app/Individual.php b/app/Individual.php
index 74df3f4dc2..8b12a7faf2 100644
--- a/app/Individual.php
+++ b/app/Individual.php
@@ -36,13 +36,13 @@ use function preg_match;
*/
class Individual extends GedcomRecord
{
- public const RECORD_TYPE = 'INDI';
+ public const string RECORD_TYPE = 'INDI';
// Placeholders to indicate unknown names
- public const NOMEN_NESCIO = '@N.N.';
- public const PRAENOMEN_NESCIO = '@P.N.';
+ public const string NOMEN_NESCIO = '@N.N.';
+ public const string PRAENOMEN_NESCIO = '@P.N.';
- protected const ROUTE_NAME = IndividualPage::class;
+ protected const string ROUTE_NAME = IndividualPage::class;
/** Used in some lists to keep track of this individual’s generation in that list */
public int|null $generation = null;
diff --git a/app/Location.php b/app/Location.php
index c8a2ee7b2a..af68e0cc42 100644
--- a/app/Location.php
+++ b/app/Location.php
@@ -26,9 +26,9 @@ use Fisharebest\Webtrees\Http\RequestHandlers\LocationPage;
*/
class Location extends GedcomRecord
{
- public const RECORD_TYPE = '_LOC';
+ public const string RECORD_TYPE = '_LOC';
- protected const ROUTE_NAME = LocationPage::class;
+ protected const string ROUTE_NAME = LocationPage::class;
/**
* Extract names from the GEDCOM record.
diff --git a/app/Log.php b/app/Log.php
index 74f3b94471..a861b90f5b 100644
--- a/app/Log.php
+++ b/app/Log.php
@@ -27,12 +27,12 @@ use Psr\Http\Message\ServerRequestInterface;
class Log
{
// We can log the following types of message in the wt_log table.
- private const TYPE_AUTHENTICATION = 'auth';
- private const TYPE_CONFIGURATION = 'config';
- private const TYPE_EDIT = 'edit';
- private const TYPE_ERROR = 'error';
- private const TYPE_MEDIA = 'media';
- private const TYPE_SEARCH = 'search';
+ private const string TYPE_AUTHENTICATION = 'auth';
+ private const string TYPE_CONFIGURATION = 'config';
+ private const string TYPE_EDIT = 'edit';
+ private const string TYPE_ERROR = 'error';
+ private const string TYPE_MEDIA = 'media';
+ private const string TYPE_SEARCH = 'search';
/**
* Store an authentication message in the message log.
diff --git a/app/Media.php b/app/Media.php
index a74fa8c017..54796da5fa 100644
--- a/app/Media.php
+++ b/app/Media.php
@@ -31,9 +31,9 @@ use function array_unique;
*/
class Media extends GedcomRecord
{
- public const RECORD_TYPE = 'OBJE';
+ public const string RECORD_TYPE = 'OBJE';
- protected const ROUTE_NAME = MediaPage::class;
+ protected const string ROUTE_NAME = MediaPage::class;
/**
* Each object type may have its own special rules, and re-implement this function.
diff --git a/app/MediaFile.php b/app/MediaFile.php
index 12e38b918b..61b4e181ba 100644
--- a/app/MediaFile.php
+++ b/app/MediaFile.php
@@ -48,7 +48,7 @@ use const PATHINFO_EXTENSION;
*/
class MediaFile
{
- private const SUPPORTED_IMAGE_MIME_TYPES = [
+ private const array SUPPORTED_IMAGE_MIME_TYPES = [
'image/gif',
'image/jpeg',
'image/png',
diff --git a/app/Mime.php b/app/Mime.php
index 7ff4617255..87e28ddaf3 100644
--- a/app/Mime.php
+++ b/app/Mime.php
@@ -24,10 +24,10 @@ namespace Fisharebest\Webtrees;
*/
class Mime
{
- public const DEFAULT_TYPE = 'application/octet-stream';
+ public const string DEFAULT_TYPE = 'application/octet-stream';
// Convert extension to mime-type
- public const TYPES = [
+ public const array TYPES = [
'BMP' => 'image/bmp',
'CSS' => 'text/css',
'DOC' => 'application/msword',
diff --git a/app/Module/AncestorsChartModule.php b/app/Module/AncestorsChartModule.php
index 738e3f31e6..46d4be9c1e 100644
--- a/app/Module/AncestorsChartModule.php
+++ b/app/Module/AncestorsChartModule.php
@@ -40,24 +40,24 @@ class AncestorsChartModule extends AbstractModule implements ModuleChartInterfac
{
use ModuleChartTrait;
- protected const ROUTE_URL = '/tree/{tree}/ancestors-{style}-{generations}/{xref}';
+ protected const string ROUTE_URL = '/tree/{tree}/ancestors-{style}-{generations}/{xref}';
// Chart styles
- public const CHART_STYLE_TREE = 'tree';
- public const CHART_STYLE_INDIVIDUALS = 'individuals';
- public const CHART_STYLE_FAMILIES = 'families';
+ public const string CHART_STYLE_TREE = 'tree';
+ public const string CHART_STYLE_INDIVIDUALS = 'individuals';
+ public const string CHART_STYLE_FAMILIES = 'families';
// Defaults
- public const DEFAULT_GENERATIONS = '4';
- public const DEFAULT_STYLE = self::CHART_STYLE_TREE;
- protected const DEFAULT_PARAMETERS = [
+ public const string DEFAULT_GENERATIONS = '4';
+ public const string DEFAULT_STYLE = self::CHART_STYLE_TREE;
+ protected const array DEFAULT_PARAMETERS = [
'generations' => self::DEFAULT_GENERATIONS,
'style' => self::DEFAULT_STYLE,
];
// Limits
- protected const MINIMUM_GENERATIONS = 2;
- protected const MAXIMUM_GENERATIONS = 10;
+ protected const int MINIMUM_GENERATIONS = 2;
+ protected const int MAXIMUM_GENERATIONS = 10;
private ChartService $chart_service;
diff --git a/app/Module/BranchesListModule.php b/app/Module/BranchesListModule.php
index 9fd4e085b8..e9d0faae00 100644
--- a/app/Module/BranchesListModule.php
+++ b/app/Module/BranchesListModule.php
@@ -62,7 +62,7 @@ class BranchesListModule extends AbstractModule implements ModuleListInterface,
{
use ModuleListTrait;
- protected const ROUTE_URL = '/tree/{tree}/branches{/surname}';
+ protected const string ROUTE_URL = '/tree/{tree}/branches{/surname}';
private ModuleService $module_service;
diff --git a/app/Module/CkeditorModule.php b/app/Module/CkeditorModule.php
index 40098fe0a6..aecff2f5d6 100644
--- a/app/Module/CkeditorModule.php
+++ b/app/Module/CkeditorModule.php
@@ -30,7 +30,7 @@ class CkeditorModule extends AbstractModule implements ModuleExternalUrlInterfac
use ModuleGlobalTrait;
// Location of our installation of CK editor.
- public const CKEDITOR_PATH = 'ckeditor-4.15.1-custom/';
+ public const string CKEDITOR_PATH = 'ckeditor-4.15.1-custom/';
/**
* How should this module be identified in the control panel, etc.?
diff --git a/app/Module/ClippingsCartModule.php b/app/Module/ClippingsCartModule.php
index 1173f0ce60..f775c3278c 100644
--- a/app/Module/ClippingsCartModule.php
+++ b/app/Module/ClippingsCartModule.php
@@ -83,17 +83,17 @@ class ClippingsCartModule extends AbstractModule implements ModuleMenuInterface
use ModuleMenuTrait;
// What to add to the cart?
- private const ADD_RECORD_ONLY = 'record';
- private const ADD_CHILDREN = 'children';
- private const ADD_DESCENDANTS = 'descendants';
- private const ADD_PARENT_FAMILIES = 'parents';
- private const ADD_SPOUSE_FAMILIES = 'spouses';
- private const ADD_ANCESTORS = 'ancestors';
- private const ADD_ANCESTOR_FAMILIES = 'families';
- private const ADD_LINKED_INDIVIDUALS = 'linked';
+ private const string ADD_RECORD_ONLY = 'record';
+ private const string ADD_CHILDREN = 'children';
+ private const string ADD_DESCENDANTS = 'descendants';
+ private const string ADD_PARENT_FAMILIES = 'parents';
+ private const string ADD_SPOUSE_FAMILIES = 'spouses';
+ private const string ADD_ANCESTORS = 'ancestors';
+ private const string ADD_ANCESTOR_FAMILIES = 'families';
+ private const string ADD_LINKED_INDIVIDUALS = 'linked';
// Routes that have a record which can be added to the clipboard
- private const ROUTES_WITH_RECORDS = [
+ private const array ROUTES_WITH_RECORDS = [
'Family' => FamilyPage::class,
'Individual' => IndividualPage::class,
'Media' => MediaPage::class,
diff --git a/app/Module/ColorsTheme.php b/app/Module/ColorsTheme.php
index 996d4e10f6..66c02f2417 100644
--- a/app/Module/ColorsTheme.php
+++ b/app/Module/ColorsTheme.php
@@ -40,7 +40,7 @@ use function uasort;
class ColorsTheme extends CloudsTheme
{
// If no valid palette has been selected, use this one.
- private const DEFAULT_PALETTE = 'ash';
+ private const string DEFAULT_PALETTE = 'ash';
/**
* How should this module be identified in the control panel, etc.?
diff --git a/app/Module/CompactTreeChartModule.php b/app/Module/CompactTreeChartModule.php
index 67aa5bf5dd..1e458e4d93 100644
--- a/app/Module/CompactTreeChartModule.php
+++ b/app/Module/CompactTreeChartModule.php
@@ -40,7 +40,7 @@ class CompactTreeChartModule extends AbstractModule implements ModuleChartInterf
{
use ModuleChartTrait;
- protected const ROUTE_URL = '/tree/{tree}/compact/{xref}';
+ protected const string ROUTE_URL = '/tree/{tree}/compact/{xref}';
private ChartService $chart_service;
diff --git a/app/Module/DescendancyChartModule.php b/app/Module/DescendancyChartModule.php
index dbe48ff1ba..b9ff6dfaae 100644
--- a/app/Module/DescendancyChartModule.php
+++ b/app/Module/DescendancyChartModule.php
@@ -40,24 +40,24 @@ class DescendancyChartModule extends AbstractModule implements ModuleChartInterf
{
use ModuleChartTrait;
- protected const ROUTE_URL = '/tree/{tree}/descendants-{style}-{generations}/{xref}';
+ protected const string ROUTE_URL = '/tree/{tree}/descendants-{style}-{generations}/{xref}';
// Chart styles
- public const CHART_STYLE_TREE = 'tree';
- public const CHART_STYLE_INDIVIDUALS = 'individuals';
- public const CHART_STYLE_FAMILIES = 'families';
+ public const string CHART_STYLE_TREE = 'tree';
+ public const string CHART_STYLE_INDIVIDUALS = 'individuals';
+ public const string CHART_STYLE_FAMILIES = 'families';
// Defaults
- public const DEFAULT_STYLE = self::CHART_STYLE_TREE;
- public const DEFAULT_GENERATIONS = '3';
- protected const DEFAULT_PARAMETERS = [
+ public const string DEFAULT_STYLE = self::CHART_STYLE_TREE;
+ public const string DEFAULT_GENERATIONS = '3';
+ protected const array DEFAULT_PARAMETERS = [
'generations' => self::DEFAULT_GENERATIONS,
'style' => self::DEFAULT_STYLE,
];
// Limits
- protected const MINIMUM_GENERATIONS = 2;
- protected const MAXIMUM_GENERATIONS = 10;
+ protected const int MINIMUM_GENERATIONS = 2;
+ protected const int MAXIMUM_GENERATIONS = 10;
private ChartService $chart_service;
diff --git a/app/Module/FamilyBookChartModule.php b/app/Module/FamilyBookChartModule.php
index e358cea081..9d4db14692 100644
--- a/app/Module/FamilyBookChartModule.php
+++ b/app/Module/FamilyBookChartModule.php
@@ -39,23 +39,23 @@ class FamilyBookChartModule extends AbstractModule implements ModuleChartInterfa
{
use ModuleChartTrait;
- protected const ROUTE_URL = '/tree/{tree}/family-book-{book_size}-{generations}-{spouses}/{xref}';
+ protected const string ROUTE_URL = '/tree/{tree}/family-book-{book_size}-{generations}-{spouses}/{xref}';
// Defaults
- public const DEFAULT_GENERATIONS = '2';
- public const DEFAULT_DESCENDANT_GENERATIONS = '5';
- protected const DEFAULT_PARAMETERS = [
+ public const string DEFAULT_GENERATIONS = '2';
+ public const string DEFAULT_DESCENDANT_GENERATIONS = '5';
+ protected const array DEFAULT_PARAMETERS = [
'book_size' => self::DEFAULT_GENERATIONS,
'generations' => self::DEFAULT_DESCENDANT_GENERATIONS,
'spouses' => false,
];
// Limits
- protected const MINIMUM_BOOK_SIZE = 2;
- protected const MAXIMUM_BOOK_SIZE = 5;
+ protected const int MINIMUM_BOOK_SIZE = 2;
+ protected const int MAXIMUM_BOOK_SIZE = 5;
- protected const MINIMUM_GENERATIONS = 2;
- protected const MAXIMUM_GENERATIONS = 10;
+ protected const int MINIMUM_GENERATIONS = 2;
+ protected const int MAXIMUM_GENERATIONS = 10;
/**
* Initialization.
diff --git a/app/Module/FamilyTreeStatisticsModule.php b/app/Module/FamilyTreeStatisticsModule.php
index 6144615a2d..71db0f025e 100644
--- a/app/Module/FamilyTreeStatisticsModule.php
+++ b/app/Module/FamilyTreeStatisticsModule.php
@@ -46,7 +46,7 @@ class FamilyTreeStatisticsModule extends AbstractModule implements ModuleBlockIn
use ModuleBlockTrait;
/** Show this number of surnames by default */
- private const DEFAULT_NUMBER_OF_SURNAMES = '10';
+ private const string DEFAULT_NUMBER_OF_SURNAMES = '10';
private ModuleService $module_service;
diff --git a/app/Module/FanChartModule.php b/app/Module/FanChartModule.php
index 6238c35e47..78659d3c0a 100644
--- a/app/Module/FanChartModule.php
+++ b/app/Module/FanChartModule.php
@@ -73,34 +73,34 @@ class FanChartModule extends AbstractModule implements ModuleChartInterface, Req
{
use ModuleChartTrait;
- protected const ROUTE_URL = '/tree/{tree}/fan-chart-{style}-{generations}-{width}/{xref}';
+ protected const string ROUTE_URL = '/tree/{tree}/fan-chart-{style}-{generations}-{width}/{xref}';
// Chart styles
- private const STYLE_HALF_CIRCLE = 2;
- private const STYLE_THREE_QUARTER_CIRCLE = 3;
- private const STYLE_FULL_CIRCLE = 4;
+ private const int STYLE_HALF_CIRCLE = 2;
+ private const int STYLE_THREE_QUARTER_CIRCLE = 3;
+ private const int STYLE_FULL_CIRCLE = 4;
// Defaults
- public const DEFAULT_STYLE = self::STYLE_THREE_QUARTER_CIRCLE;
- public const DEFAULT_GENERATIONS = 4;
- public const DEFAULT_WIDTH = 100;
- protected const DEFAULT_PARAMETERS = [
+ public const int DEFAULT_STYLE = self::STYLE_THREE_QUARTER_CIRCLE;
+ public const int DEFAULT_GENERATIONS = 4;
+ public const int DEFAULT_WIDTH = 100;
+ protected const array DEFAULT_PARAMETERS = [
'style' => self::DEFAULT_STYLE,
'generations' => self::DEFAULT_GENERATIONS,
'width' => self::DEFAULT_WIDTH,
];
// Limits
- private const MINIMUM_GENERATIONS = 2;
- private const MAXIMUM_GENERATIONS = 9;
- private const MINIMUM_WIDTH = 50;
- private const MAXIMUM_WIDTH = 500;
+ private const int MINIMUM_GENERATIONS = 2;
+ private const int MAXIMUM_GENERATIONS = 9;
+ private const int MINIMUM_WIDTH = 50;
+ private const int MAXIMUM_WIDTH = 500;
// Chart layout parameters
- private const FONT = Webtrees::ROOT_DIR . 'resources/fonts/DejaVuSans.ttf';
- private const CHART_WIDTH_PIXELS = 800;
- private const TEXT_SIZE_POINTS = self::CHART_WIDTH_PIXELS / 120.0;
- private const GAP_BETWEEN_RINGS = 2;
+ private const string FONT = Webtrees::ROOT_DIR . 'resources/fonts/DejaVuSans.ttf';
+ private const int CHART_WIDTH_PIXELS = 800;
+ private const float TEXT_SIZE_POINTS = self::CHART_WIDTH_PIXELS / 120.0;
+ private const int GAP_BETWEEN_RINGS = 2;
private ChartService $chart_service;
diff --git a/app/Module/FixNameTags.php b/app/Module/FixNameTags.php
index 7a77e2ea96..d0d281f3bc 100644
--- a/app/Module/FixNameTags.php
+++ b/app/Module/FixNameTags.php
@@ -41,7 +41,7 @@ class FixNameTags extends AbstractModule implements ModuleDataFixInterface
use ModuleDataFixTrait;
// https://legacyfamilytree.se/WEB_US/user_defined_gedcom_tags.htm
- private const CONVERT = [
+ private const array CONVERT = [
'_ADPN' => NameType::VALUE_ADOPTED,
'_AKA' => NameType::VALUE_AKA,
'_AKAN' => NameType::VALUE_AKA,
diff --git a/app/Module/FixSearchAndReplace.php b/app/Module/FixSearchAndReplace.php
index f28cb26609..85ff508e50 100644
--- a/app/Module/FixSearchAndReplace.php
+++ b/app/Module/FixSearchAndReplace.php
@@ -52,7 +52,7 @@ class FixSearchAndReplace extends AbstractModule implements ModuleDataFixInterfa
use ModuleDataFixTrait;
// A regular expression that never matches.
- private const INVALID_REGEX = '/(?!)/';
+ private const string INVALID_REGEX = '/(?!)/';
private DataFixService $data_fix_service;
diff --git a/app/Module/HitCountFooterModule.php b/app/Module/HitCountFooterModule.php
index 1f6970975b..0d15fd1bc0 100644
--- a/app/Module/HitCountFooterModule.php
+++ b/app/Module/HitCountFooterModule.php
@@ -47,7 +47,7 @@ class HitCountFooterModule extends AbstractModule implements ModuleFooterInterfa
// Which routes do we count?
// For historical reasons, we record the names of the original webtrees script and parameter.
- protected const PAGE_NAMES = [
+ protected const array PAGE_NAMES = [
FamilyPage::class => 'family.php',
IndividualPage::class => 'individual.php',
MediaPage::class => 'mediaviewer.php',
diff --git a/app/Module/HourglassChartModule.php b/app/Module/HourglassChartModule.php
index 26b5008c8a..537ca77470 100644
--- a/app/Module/HourglassChartModule.php
+++ b/app/Module/HourglassChartModule.php
@@ -42,19 +42,19 @@ class HourglassChartModule extends AbstractModule implements ModuleChartInterfac
{
use ModuleChartTrait;
- protected const ROUTE_URL = '/tree/{tree}/hourglass-{generations}-{spouses}/{xref}';
+ protected const string ROUTE_URL = '/tree/{tree}/hourglass-{generations}-{spouses}/{xref}';
// Defaults
- public const DEFAULT_GENERATIONS = '3';
- public const DEFAULT_SPOUSES = false;
- protected const DEFAULT_PARAMETERS = [
+ public const string DEFAULT_GENERATIONS = '3';
+ public const bool DEFAULT_SPOUSES = false;
+ protected const array DEFAULT_PARAMETERS = [
'generations' => self::DEFAULT_GENERATIONS,
'spouses' => self::DEFAULT_SPOUSES,
];
// Limits
- protected const MINIMUM_GENERATIONS = 2;
- protected const MAXIMUM_GENERATIONS = 10;
+ protected const int MINIMUM_GENERATIONS = 2;
+ protected const int MAXIMUM_GENERATIONS = 10;
/**
* Initialization.
diff --git a/app/Module/IndividualMetadataModule.php b/app/Module/IndividualMetadataModule.php
index bfd540f129..02ac1c1f64 100644
--- a/app/Module/IndividualMetadataModule.php
+++ b/app/Module/IndividualMetadataModule.php
@@ -35,7 +35,7 @@ class IndividualMetadataModule extends AbstractModule implements ModuleSidebarIn
use ModuleSidebarTrait;
// A list of facts that are handled by this module.
- protected const HANDLED_FACTS = [
+ protected const array HANDLED_FACTS = [
'AFN',
'CHAN',
'IDNO',
diff --git a/app/Module/LanguageEnglishGreatBritain.php b/app/Module/LanguageEnglishGreatBritain.php
index cf3cad9b63..19fb8fbfc0 100644
--- a/app/Module/LanguageEnglishGreatBritain.php
+++ b/app/Module/LanguageEnglishGreatBritain.php
@@ -28,7 +28,7 @@ use Fisharebest\Localization\Locale\LocaleInterface;
class LanguageEnglishGreatBritain extends LanguageEnglishUnitedStates
{
// British English changes "three-times" to "thrice"
- protected const REMOVED = [
+ protected const array REMOVED = [
'',
' once removed',
' twice removed',
diff --git a/app/Module/LanguageEnglishUnitedStates.php b/app/Module/LanguageEnglishUnitedStates.php
index 9abafa0f5d..1412818932 100644
--- a/app/Module/LanguageEnglishUnitedStates.php
+++ b/app/Module/LanguageEnglishUnitedStates.php
@@ -34,7 +34,7 @@ class LanguageEnglishUnitedStates extends AbstractModule implements ModuleLangua
{
use ModuleLanguageTrait;
- protected const COUSIN = [
+ protected const array COUSIN = [
'sibling',
'first cousin',
'second cousin',
@@ -68,7 +68,7 @@ class LanguageEnglishUnitedStates extends AbstractModule implements ModuleLangua
'thirtieth cousin',
];
- protected const REMOVED = [
+ protected const array REMOVED = [
'',
' once removed',
' twice removed',
@@ -101,7 +101,7 @@ class LanguageEnglishUnitedStates extends AbstractModule implements ModuleLangua
' twenty-nine times removed',
];
- protected const DIRECTION = [
+ protected const array DIRECTION = [
-1 => ' descending',
0 => '',
1 => ' ascending',
diff --git a/app/Module/LanguageFrench.php b/app/Module/LanguageFrench.php
index 34813aabf5..995e7186ba 100644
--- a/app/Module/LanguageFrench.php
+++ b/app/Module/LanguageFrench.php
@@ -30,7 +30,7 @@ class LanguageFrench extends AbstractModule implements ModuleLanguageInterface
{
use ModuleLanguageTrait;
- protected const SYMMETRIC_COUSINS = [
+ protected const array SYMMETRIC_COUSINS = [
1 => [
'F' => ['cousine germaine', '%s de la cousine germaine'],
'M' => ['cousin germain', '%s du cousin germain'],
@@ -43,7 +43,7 @@ class LanguageFrench extends AbstractModule implements ModuleLanguageInterface
]
];
- protected const ASYMMETRIC_COUSINS = [
+ protected const array ASYMMETRIC_COUSINS = [
1 => [
'F' => ['down', 'petite-cousine', 'de la '],
'M' => ['down', 'petit-cousin', 'du '],
diff --git a/app/Module/LanguageSlovakian.php b/app/Module/LanguageSlovakian.php
index c529255e5e..e65bd8130b 100644
--- a/app/Module/LanguageSlovakian.php
+++ b/app/Module/LanguageSlovakian.php
@@ -34,7 +34,7 @@ class LanguageSlovakian extends AbstractModule implements ModuleLanguageInterfac
{
use ModuleLanguageTrait;
- protected const MALE_COUSINS = [
+ protected const array MALE_COUSINS = [
['', ''],
['bratranec', '%s bratranca'],
['druhostupňový bratranec', '%s druhostupňového bratranca'],
@@ -55,7 +55,7 @@ class LanguageSlovakian extends AbstractModule implements ModuleLanguageInterfac
['bratranec zo 17. kolena', '%s bratranca zo 17. kolena'],
];
- protected const FEMALE_COUSINS = [
+ protected const array FEMALE_COUSINS = [
['', ''],
['sesternica', '%s sesternice'],
['druhostupňová sesternica', '%s druhostupňovej sesternice'],
diff --git a/app/Module/LifespansChartModule.php b/app/Module/LifespansChartModule.php
index a20f8479ef..dfcdd85022 100644
--- a/app/Module/LifespansChartModule.php
+++ b/app/Module/LifespansChartModule.php
@@ -66,20 +66,20 @@ class LifespansChartModule extends AbstractModule implements ModuleChartInterfac
{
use ModuleChartTrait;
- protected const ROUTE_URL = '/tree/{tree}/lifespans';
+ protected const string ROUTE_URL = '/tree/{tree}/lifespans';
// In theory, only "@" is a safe separator, but it gives longer and uglier URLs.
// Unless some other application generates XREFs with a ".", we are safe.
- protected const SEPARATOR = '.';
+ protected const string SEPARATOR = '.';
// Defaults
- protected const DEFAULT_PARAMETERS = [];
+ protected const array DEFAULT_PARAMETERS = [];
// Parameters for generating colors
- protected const RANGE = 120; // degrees
- protected const SATURATION = 100; // percent
- protected const LIGHTNESS = 30; // percent
- protected const ALPHA = 0.25;
+ protected const int RANGE = 120; // degrees
+ protected const int SATURATION = 100; // percent
+ protected const int LIGHTNESS = 30; // percent
+ protected const float ALPHA = 0.25;
/**
* Initialization.
diff --git a/app/Module/LocationListModule.php b/app/Module/LocationListModule.php
index f674a35953..a8c27a5d1e 100644
--- a/app/Module/LocationListModule.php
+++ b/app/Module/LocationListModule.php
@@ -38,7 +38,7 @@ class LocationListModule extends AbstractModule implements ModuleListInterface,
{
use ModuleListTrait;
- protected const ROUTE_URL = '/tree/{tree}/location-list';
+ protected const string ROUTE_URL = '/tree/{tree}/location-list';
/** @var int The default access level for this module. It can be changed in the control panel. */
protected int $access_level = Auth::PRIV_USER;
diff --git a/app/Module/MediaListModule.php b/app/Module/MediaListModule.php
index 6364495b1e..974996cecb 100644
--- a/app/Module/MediaListModule.php
+++ b/app/Module/MediaListModule.php
@@ -52,7 +52,7 @@ class MediaListModule extends AbstractModule implements ModuleListInterface, Req
{
use ModuleListTrait;
- protected const ROUTE_URL = '/tree/{tree}/media-list';
+ protected const string ROUTE_URL = '/tree/{tree}/media-list';
private LinkedRecordService $linked_record_service;
diff --git a/app/Module/ModuleBlockInterface.php b/app/Module/ModuleBlockInterface.php
index 29b19b6b0d..b6f0199920 100644
--- a/app/Module/ModuleBlockInterface.php
+++ b/app/Module/ModuleBlockInterface.php
@@ -28,15 +28,15 @@ use Psr\Http\Message\ServerRequestInterface;
interface ModuleBlockInterface extends ModuleInterface
{
// Places we can display blocks
- public const CONTEXT_EMBED = 'embed';
- public const CONTEXT_TREE_PAGE = 'tree';
- public const CONTEXT_USER_PAGE = 'user';
+ public const string CONTEXT_EMBED = 'embed';
+ public const string CONTEXT_TREE_PAGE = 'tree';
+ public const string CONTEXT_USER_PAGE = 'user';
// We show blocks in two columns on the tree/user pages.
- public const MAIN_BLOCKS = 'main';
- public const SIDE_BLOCKS = 'side';
+ public const string MAIN_BLOCKS = 'main';
+ public const string SIDE_BLOCKS = 'side';
- public const DEFAULT_TREE_PAGE_BLOCKS = [
+ public const array DEFAULT_TREE_PAGE_BLOCKS = [
self::MAIN_BLOCKS => [
1 => FamilyTreeStatisticsModule::class,
2 => FamilyTreeNewsModule::class,
@@ -51,7 +51,7 @@ interface ModuleBlockInterface extends ModuleInterface
],
];
- public const DEFAULT_USER_PAGE_BLOCKS = [
+ public const array DEFAULT_USER_PAGE_BLOCKS = [
self::MAIN_BLOCKS => [
1 => OnThisDayModule::class,
2 => UserMessagesModule::class,
diff --git a/app/Module/NoteListModule.php b/app/Module/NoteListModule.php
index 404967e38e..6e902ae7a1 100644
--- a/app/Module/NoteListModule.php
+++ b/app/Module/NoteListModule.php
@@ -38,7 +38,7 @@ class NoteListModule extends AbstractModule implements ModuleListInterface, Requ
{
use ModuleListTrait;
- protected const ROUTE_URL = '/tree/{tree}/note-list';
+ protected const string ROUTE_URL = '/tree/{tree}/note-list';
/**
* Initialization.
diff --git a/app/Module/OnThisDayModule.php b/app/Module/OnThisDayModule.php
index 38787d51f7..cf57ad23f1 100644
--- a/app/Module/OnThisDayModule.php
+++ b/app/Module/OnThisDayModule.php
@@ -37,22 +37,22 @@ class OnThisDayModule extends AbstractModule implements ModuleBlockInterface
use ModuleBlockTrait;
// Pagination
- private const LIMIT_LOW = 10;
- private const LIMIT_HIGH = 20;
+ private const int LIMIT_LOW = 10;
+ private const int LIMIT_HIGH = 20;
// Default values for new blocks.
- private const DEFAULT_SORT = 'date_desc';
- private const DEFAULT_STYLE = 'date_desc';
+ private const string DEFAULT_SORT = 'date_desc';
+ private const string DEFAULT_STYLE = 'date_desc';
// Initial sorting for datatables
- private const DATATABLES_ORDER = [
+ private const array DATATABLES_ORDER = [
'alpha' => [[0, 'asc']],
'date_asc' => [[2, 'asc']],
'date_desc' => [[2, 'desc']],
];
// All standard GEDCOM 5.5.1 events except CENS, RESI and EVEN
- private const ALL_EVENTS = [
+ private const array ALL_EVENTS = [
'ADOP' => 'INDI:ADOP',
'ANUL' => 'FAM:ANUL',
'BAPM' => 'INDI:BAPM',
@@ -85,7 +85,7 @@ class OnThisDayModule extends AbstractModule implements ModuleBlockInterface
'WILL' => 'INDI:WILL',
];
- private const DEFAULT_EVENTS = [
+ private const array DEFAULT_EVENTS = [
'BIRT',
'MARR',
'DEAT',
diff --git a/app/Module/PedigreeChartModule.php b/app/Module/PedigreeChartModule.php
index dc69df6020..4e16441aa0 100644
--- a/app/Module/PedigreeChartModule.php
+++ b/app/Module/PedigreeChartModule.php
@@ -41,28 +41,28 @@ class PedigreeChartModule extends AbstractModule implements ModuleChartInterface
{
use ModuleChartTrait;
- protected const ROUTE_URL = '/tree/{tree}/pedigree-{style}-{generations}/{xref}';
+ protected const string ROUTE_URL = '/tree/{tree}/pedigree-{style}-{generations}/{xref}';
// Chart styles
- public const STYLE_LEFT = 'left';
- public const STYLE_RIGHT = 'right';
- public const STYLE_UP = 'up';
- public const STYLE_DOWN = 'down';
+ public const string STYLE_LEFT = 'left';
+ public const string STYLE_RIGHT = 'right';
+ public const string STYLE_UP = 'up';
+ public const string STYLE_DOWN = 'down';
// Defaults
- public const DEFAULT_GENERATIONS = '4';
- public const DEFAULT_STYLE = self::STYLE_RIGHT;
- protected const DEFAULT_PARAMETERS = [
+ public const string DEFAULT_GENERATIONS = '4';
+ public const string DEFAULT_STYLE = self::STYLE_RIGHT;
+ protected const array DEFAULT_PARAMETERS = [
'generations' => self::DEFAULT_GENERATIONS,
'style' => self::DEFAULT_STYLE,
];
// Limits
- protected const MINIMUM_GENERATIONS = 2;
- protected const MAXIMUM_GENERATIONS = 12;
+ protected const int MINIMUM_GENERATIONS = 2;
+ protected const int MAXIMUM_GENERATIONS = 12;
// For RTL languages
- protected const MIRROR_STYLE = [
+ protected const array MIRROR_STYLE = [
self::STYLE_UP => self::STYLE_DOWN,
self::STYLE_DOWN => self::STYLE_UP,
self::STYLE_LEFT => self::STYLE_RIGHT,
diff --git a/app/Module/PedigreeMapModule.php b/app/Module/PedigreeMapModule.php
index 2a8722181d..677f4047d7 100644
--- a/app/Module/PedigreeMapModule.php
+++ b/app/Module/PedigreeMapModule.php
@@ -50,20 +50,20 @@ class PedigreeMapModule extends AbstractModule implements ModuleChartInterface,
{
use ModuleChartTrait;
- protected const ROUTE_URL = '/tree/{tree}/pedigree-map-{generations}/{xref}';
+ protected const string ROUTE_URL = '/tree/{tree}/pedigree-map-{generations}/{xref}';
// Defaults
- public const DEFAULT_GENERATIONS = '4';
- public const DEFAULT_PARAMETERS = [
+ public const string DEFAULT_GENERATIONS = '4';
+ public const array DEFAULT_PARAMETERS = [
'generations' => self::DEFAULT_GENERATIONS,
];
// Limits
- public const MINIMUM_GENERATIONS = 1;
- public const MAXIMUM_GENERATIONS = 10;
+ public const int MINIMUM_GENERATIONS = 1;
+ public const int MAXIMUM_GENERATIONS = 10;
// CSS colors for each generation
- protected const COUNT_CSS_COLORS = 12;
+ protected const int COUNT_CSS_COLORS = 12;
protected ChartService $chart_service;
diff --git a/app/Module/PlaceHierarchyListModule.php b/app/Module/PlaceHierarchyListModule.php
index cbc34ea273..381e0e506c 100644
--- a/app/Module/PlaceHierarchyListModule.php
+++ b/app/Module/PlaceHierarchyListModule.php
@@ -56,7 +56,7 @@ class PlaceHierarchyListModule extends AbstractModule implements ModuleListInter
{
use ModuleListTrait;
- protected const ROUTE_URL = '/tree/{tree}/place-list{/place_id}';
+ protected const string ROUTE_URL = '/tree/{tree}/place-list{/place_id}';
/** @var int The default access level for this module. It can be changed in the control panel. */
protected int $access_level = Auth::PRIV_USER;
diff --git a/app/Module/PlacesModule.php b/app/Module/PlacesModule.php
index 0a9f6958e9..13259f458d 100644
--- a/app/Module/PlacesModule.php
+++ b/app/Module/PlacesModule.php
@@ -37,7 +37,7 @@ class PlacesModule extends AbstractModule implements ModuleTabInterface
{
use ModuleTabTrait;
- protected const ICONS = [
+ protected const array ICONS = [
'FAM:CENS' => ['color' => 'darkcyan', 'name' => 'list fas'],
'FAM:MARR' => ['color' => 'green', 'name' => 'infinity fas'],
'INDI:BAPM' => ['color' => 'hotpink', 'name' => 'water fas'],
@@ -56,12 +56,12 @@ class PlacesModule extends AbstractModule implements ModuleTabInterface
'INDI:RESI' => ['color' => 'darkcyan', 'name' => 'home fas'],
];
- protected const OWN_ICONS = [
+ protected const array OWN_ICONS = [
'INDI:BIRT' => ['color' => 'red', 'name' => 'baby-carriage fas'],
'INDI:CHR' => ['color' => 'red', 'name' => 'water fas'],
] + self::ICONS;
- protected const DEFAULT_ICON = ['color' => 'gold', 'name' => 'bullseye fas'];
+ protected const array DEFAULT_ICON = ['color' => 'gold', 'name' => 'bullseye fas'];
private LeafletJsService $leaflet_js_service;
diff --git a/app/Module/RecentChangesModule.php b/app/Module/RecentChangesModule.php
index 5f757ce970..189017143e 100644
--- a/app/Module/RecentChangesModule.php
+++ b/app/Module/RecentChangesModule.php
@@ -48,20 +48,20 @@ class RecentChangesModule extends AbstractModule implements ModuleBlockInterface
use ModuleBlockTrait;
// Where do we look for change information
- private const SOURCE_DATABASE = 'database';
- private const SOURCE_GEDCOM = 'gedcom';
+ private const string SOURCE_DATABASE = 'database';
+ private const string SOURCE_GEDCOM = 'gedcom';
- private const DEFAULT_DAYS = '7';
- private const DEFAULT_SHOW_USER = '1';
- private const DEFAULT_SHOW_DATE = '1';
- private const DEFAULT_SORT_STYLE = 'date_desc';
- private const DEFAULT_INFO_STYLE = 'table';
- private const DEFAULT_SOURCE = self::SOURCE_DATABASE;
- private const MAX_DAYS = 90;
+ private const string DEFAULT_DAYS = '7';
+ private const string DEFAULT_SHOW_USER = '1';
+ private const string DEFAULT_SHOW_DATE = '1';
+ private const string DEFAULT_SORT_STYLE = 'date_desc';
+ private const string DEFAULT_INFO_STYLE = 'table';
+ private const string DEFAULT_SOURCE = self::SOURCE_DATABASE;
+ private const int MAX_DAYS = 90;
// Pagination
- private const LIMIT_LOW = 10;
- private const LIMIT_HIGH = 20;
+ private const int LIMIT_LOW = 10;
+ private const int LIMIT_HIGH = 20;
private UserService $user_service;
diff --git a/app/Module/RelationshipsChartModule.php b/app/Module/RelationshipsChartModule.php
index 605ecdff4a..444df75353 100644
--- a/app/Module/RelationshipsChartModule.php
+++ b/app/Module/RelationshipsChartModule.php
@@ -68,17 +68,17 @@ class RelationshipsChartModule extends AbstractModule implements ModuleChartInte
use ModuleChartTrait;
use ModuleConfigTrait;
- protected const ROUTE_URL = '/tree/{tree}/relationships-{ancestors}-{recursion}/{xref}{/xref2}';
+ protected const string ROUTE_URL = '/tree/{tree}/relationships-{ancestors}-{recursion}/{xref}{/xref2}';
/** It would be more correct to use PHP_INT_MAX, but this isn't friendly in URLs */
- public const UNLIMITED_RECURSION = 99;
+ public const int UNLIMITED_RECURSION = 99;
/** By default new trees allow unlimited recursion */
- public const DEFAULT_RECURSION = '99';
+ public const string DEFAULT_RECURSION = '99';
/** By default new trees search for all relationships (not via ancestors) */
- public const DEFAULT_ANCESTORS = '0';
- public const DEFAULT_PARAMETERS = [
+ public const string DEFAULT_ANCESTORS = '0';
+ public const array DEFAULT_PARAMETERS = [
'ancestors' => self::DEFAULT_ANCESTORS,
'recursion' => self::DEFAULT_RECURSION,
];
diff --git a/app/Module/RepositoryListModule.php b/app/Module/RepositoryListModule.php
index 4597ea0612..a06770f722 100644
--- a/app/Module/RepositoryListModule.php
+++ b/app/Module/RepositoryListModule.php
@@ -38,7 +38,7 @@ class RepositoryListModule extends AbstractModule implements ModuleListInterface
{
use ModuleListTrait;
- protected const ROUTE_URL = '/tree/{tree}/repository-list';
+ protected const string ROUTE_URL = '/tree/{tree}/repository-list';
/** @var int The default access level for this module. It can be changed in the control panel. */
protected int $access_level = Auth::PRIV_USER;
diff --git a/app/Module/ResearchTaskModule.php b/app/Module/ResearchTaskModule.php
index a549f9f06d..b824b3c240 100644
--- a/app/Module/ResearchTaskModule.php
+++ b/app/Module/ResearchTaskModule.php
@@ -44,16 +44,16 @@ class ResearchTaskModule extends AbstractModule implements ModuleBlockInterface
{
use ModuleBlockTrait;
- private const DEFAULT_SHOW_OTHER = '1';
- private const DEFAULT_SHOW_UNASSIGNED = '1';
- private const DEFAULT_SHOW_FUTURE = '1';
+ private const string DEFAULT_SHOW_OTHER = '1';
+ private const string DEFAULT_SHOW_UNASSIGNED = '1';
+ private const string DEFAULT_SHOW_FUTURE = '1';
// 31 DEC 9999
- private const MAXIMUM_JULIAN_DAY = 5373484;
+ private const int MAXIMUM_JULIAN_DAY = 5373484;
// Pagination
- private const LIMIT_LOW = 10;
- private const LIMIT_HIGH = 20;
+ private const int LIMIT_LOW = 10;
+ private const int LIMIT_HIGH = 20;
/**
* Early initialisation. Called before most of the middleware.
diff --git a/app/Module/ShareAnniversaryModule.php b/app/Module/ShareAnniversaryModule.php
index 9b32585db5..71f4292326 100644
--- a/app/Module/ShareAnniversaryModule.php
+++ b/app/Module/ShareAnniversaryModule.php
@@ -47,10 +47,10 @@ class ShareAnniversaryModule extends AbstractModule implements ModuleShareInterf
{
use ModuleShareTrait;
- protected const INDIVIDUAL_EVENTS = ['BIRT', 'DEAT'];
- protected const FAMILY_EVENTS = ['MARR'];
+ protected const array INDIVIDUAL_EVENTS = ['BIRT', 'DEAT'];
+ protected const array FAMILY_EVENTS = ['MARR'];
- protected const ROUTE_URL = '/tree/{tree}/anniversary-ics/{xref}/{fact_id}';
+ protected const string ROUTE_URL = '/tree/{tree}/anniversary-ics/{xref}/{fact_id}';
/**
* Initialization.
diff --git a/app/Module/SiteMapModule.php b/app/Module/SiteMapModule.php
index 53b3edc02a..f90cd5e649 100644
--- a/app/Module/SiteMapModule.php
+++ b/app/Module/SiteMapModule.php
@@ -57,10 +57,10 @@ class SiteMapModule extends AbstractModule implements ModuleConfigInterface, Req
{
use ModuleConfigTrait;
- private const RECORDS_PER_VOLUME = 500; // Keep sitemap files small, for memory, CPU and max_allowed_packet limits.
- private const CACHE_LIFE = 209600; // Two weeks
+ private const int RECORDS_PER_VOLUME = 500; // Keep sitemap files small, for memory, CPU and max_allowed_packet limits.
+ private const int CACHE_LIFE = 209600; // Two weeks
- private const PRIORITY = [
+ private const array PRIORITY = [
Family::RECORD_TYPE => 0.7,
Individual::RECORD_TYPE => 0.9,
Media::RECORD_TYPE => 0.5,
diff --git a/app/Module/SlideShowModule.php b/app/Module/SlideShowModule.php
index 7b7713204a..7e94d19139 100644
--- a/app/Module/SlideShowModule.php
+++ b/app/Module/SlideShowModule.php
@@ -44,15 +44,15 @@ class SlideShowModule extends AbstractModule implements ModuleBlockInterface
use ModuleBlockTrait;
// Show media linked to events or individuals.
- private const LINK_ALL = 'all';
- private const LINK_EVENT = 'event';
- private const LINK_INDIVIDUAL = 'indi';
+ private const string LINK_ALL = 'all';
+ private const string LINK_EVENT = 'event';
+ private const string LINK_INDIVIDUAL = 'indi';
// How long to show each slide (seconds)
- private const DELAY = 6;
+ private const int DELAY = 6;
// New data is normalized. Old data may contain jpg/jpeg, tif/tiff.
- private const SUPPORTED_FORMATS = ['bmp', 'gif', 'jpeg', 'jpg', 'png', 'tif', 'tiff', 'webp'];
+ private const array SUPPORTED_FORMATS = ['bmp', 'gif', 'jpeg', 'jpg', 'png', 'tif', 'tiff', 'webp'];
private LinkedRecordService $linked_record_service;
diff --git a/app/Module/SourceListModule.php b/app/Module/SourceListModule.php
index bb8b63c990..19d4217835 100644
--- a/app/Module/SourceListModule.php
+++ b/app/Module/SourceListModule.php
@@ -37,7 +37,7 @@ class SourceListModule extends AbstractModule implements ModuleListInterface, Re
{
use ModuleListTrait;
- protected const ROUTE_URL = '/tree/{tree}/source-list';
+ protected const string ROUTE_URL = '/tree/{tree}/source-list';
/** @var int The default access level for this module. It can be changed in the control panel. */
protected int $access_level = Auth::PRIV_USER;
diff --git a/app/Module/StatisticsChartModule.php b/app/Module/StatisticsChartModule.php
index ad0caa01f1..ede150cdfd 100644
--- a/app/Module/StatisticsChartModule.php
+++ b/app/Module/StatisticsChartModule.php
@@ -51,31 +51,31 @@ class StatisticsChartModule extends AbstractModule implements ModuleChartInterfa
{
use ModuleChartTrait;
- public const X_AXIS_INDIVIDUAL_MAP = 1;
- public const X_AXIS_BIRTH_MAP = 2;
- public const X_AXIS_DEATH_MAP = 3;
- public const X_AXIS_MARRIAGE_MAP = 4;
- public const X_AXIS_BIRTH_MONTH = 11;
- public const X_AXIS_DEATH_MONTH = 12;
- public const X_AXIS_MARRIAGE_MONTH = 13;
- public const X_AXIS_FIRST_CHILD_MONTH = 14;
- public const X_AXIS_FIRST_MARRIAGE_MONTH = 15;
- public const X_AXIS_AGE_AT_DEATH = 18;
- public const X_AXIS_AGE_AT_MARRIAGE = 19;
- public const X_AXIS_AGE_AT_FIRST_MARRIAGE = 20;
- public const X_AXIS_NUMBER_OF_CHILDREN = 21;
+ public const int X_AXIS_INDIVIDUAL_MAP = 1;
+ public const int X_AXIS_BIRTH_MAP = 2;
+ public const int X_AXIS_DEATH_MAP = 3;
+ public const int X_AXIS_MARRIAGE_MAP = 4;
+ public const int X_AXIS_BIRTH_MONTH = 11;
+ public const int X_AXIS_DEATH_MONTH = 12;
+ public const int X_AXIS_MARRIAGE_MONTH = 13;
+ public const int X_AXIS_FIRST_CHILD_MONTH = 14;
+ public const int X_AXIS_FIRST_MARRIAGE_MONTH = 15;
+ public const int X_AXIS_AGE_AT_DEATH = 18;
+ public const int X_AXIS_AGE_AT_MARRIAGE = 19;
+ public const int X_AXIS_AGE_AT_FIRST_MARRIAGE = 20;
+ public const int X_AXIS_NUMBER_OF_CHILDREN = 21;
- public const Y_AXIS_NUMBERS = 201;
- public const Y_AXIS_PERCENT = 202;
+ public const int Y_AXIS_NUMBERS = 201;
+ public const int Y_AXIS_PERCENT = 202;
- public const Z_AXIS_ALL = 300;
- public const Z_AXIS_SEX = 301;
- public const Z_AXIS_TIME = 302;
+ public const int Z_AXIS_ALL = 300;
+ public const int Z_AXIS_SEX = 301;
+ public const int Z_AXIS_TIME = 302;
// First two colors are blue/pink, to work with Z_AXIS_SEX.
- private const Z_AXIS_COLORS = ['0000FF', 'FFA0CB', '9F00FF', 'FF7000', '905030', 'FF0000', '00FF00', 'F0F000'];
+ private const array Z_AXIS_COLORS = ['0000FF', 'FFA0CB', '9F00FF', 'FF7000', '905030', 'FF0000', '00FF00', 'F0F000'];
- private const DAYS_IN_YEAR = 365.25;
+ private const float DAYS_IN_YEAR = 365.25;
/**
* How should this module be identified in the control panel, etc.?
diff --git a/app/Module/SubmitterListModule.php b/app/Module/SubmitterListModule.php
index 1ede29128d..a7fbdba032 100644
--- a/app/Module/SubmitterListModule.php
+++ b/app/Module/SubmitterListModule.php
@@ -38,7 +38,7 @@ class SubmitterListModule extends AbstractModule implements ModuleListInterface,
{
use ModuleListTrait;
- protected const ROUTE_URL = '/tree/{tree}/submitter-list';
+ protected const string ROUTE_URL = '/tree/{tree}/submitter-list';
/** @var int The default access level for this module. It can be changed in the control panel. */
protected int $access_level = Auth::PRIV_NONE;
diff --git a/app/Module/TimelineChartModule.php b/app/Module/TimelineChartModule.php
index 81f07b4dea..dc56601c06 100644
--- a/app/Module/TimelineChartModule.php
+++ b/app/Module/TimelineChartModule.php
@@ -45,20 +45,20 @@ class TimelineChartModule extends AbstractModule implements ModuleChartInterface
{
use ModuleChartTrait;
- protected const ROUTE_URL = '/tree/{tree}/timeline-{scale}';
+ protected const string ROUTE_URL = '/tree/{tree}/timeline-{scale}';
// Defaults
- protected const DEFAULT_SCALE = 10;
- protected const DEFAULT_PARAMETERS = [
+ protected const int DEFAULT_SCALE = 10;
+ protected const array DEFAULT_PARAMETERS = [
'scale' => self::DEFAULT_SCALE,
];
// Limits
- protected const MINIMUM_SCALE = 1;
- protected const MAXIMUM_SCALE = 200;
+ protected const int MINIMUM_SCALE = 1;
+ protected const int MAXIMUM_SCALE = 200;
// GEDCOM events that may have DATE data, but should not be displayed
- protected const NON_FACTS = [
+ protected const array NON_FACTS = [
'FAM:CHAN',
'INDI:BAPL',
'INDI:CHAN',
@@ -68,7 +68,7 @@ class TimelineChartModule extends AbstractModule implements ModuleChartInterface
'INDI:_TODO',
];
- protected const BOX_HEIGHT = 30;
+ protected const int BOX_HEIGHT = 30;
/**
* Initialization.
diff --git a/app/Module/TopGivenNamesModule.php b/app/Module/TopGivenNamesModule.php
index 330c1cdf58..b6a3379790 100644
--- a/app/Module/TopGivenNamesModule.php
+++ b/app/Module/TopGivenNamesModule.php
@@ -35,8 +35,8 @@ class TopGivenNamesModule extends AbstractModule implements ModuleBlockInterface
use ModuleBlockTrait;
// Default values for new blocks.
- private const DEFAULT_NUMBER = '10';
- private const DEFAULT_STYLE = 'table';
+ private const string DEFAULT_NUMBER = '10';
+ private const string DEFAULT_STYLE = 'table';
/**
* How should this module be identified in the control panel, etc.?
diff --git a/app/Module/TopPageViewsModule.php b/app/Module/TopPageViewsModule.php
index 6e693b8f73..cfd9b42f64 100644
--- a/app/Module/TopPageViewsModule.php
+++ b/app/Module/TopPageViewsModule.php
@@ -37,9 +37,9 @@ class TopPageViewsModule extends AbstractModule implements ModuleBlockInterface
{
use ModuleBlockTrait;
- private const DEFAULT_NUMBER_TO_SHOW = '10';
+ private const string DEFAULT_NUMBER_TO_SHOW = '10';
- private const PAGES = ['individual.php', 'family.php', 'source.php', 'repo.php', 'note.php', 'mediaviewer.php'];
+ private const array PAGES = ['individual.php', 'family.php', 'source.php', 'repo.php', 'note.php', 'mediaviewer.php'];
/**
* How should this module be identified in the control panel, etc.?
diff --git a/app/Module/TopSurnamesModule.php b/app/Module/TopSurnamesModule.php
index 0e5bcbe618..913e88d0ea 100644
--- a/app/Module/TopSurnamesModule.php
+++ b/app/Module/TopSurnamesModule.php
@@ -48,8 +48,8 @@ class TopSurnamesModule extends AbstractModule implements ModuleBlockInterface
use ModuleBlockTrait;
// Default values for new blocks.
- private const DEFAULT_NUMBER = '10';
- private const DEFAULT_STYLE = 'table';
+ private const string DEFAULT_NUMBER = '10';
+ private const string DEFAULT_STYLE = 'table';
private ModuleService $module_service;
diff --git a/app/Module/UpcomingAnniversariesModule.php b/app/Module/UpcomingAnniversariesModule.php
index cdf4e20f57..4bac38a882 100644
--- a/app/Module/UpcomingAnniversariesModule.php
+++ b/app/Module/UpcomingAnniversariesModule.php
@@ -36,33 +36,33 @@ class UpcomingAnniversariesModule extends AbstractModule implements ModuleBlockI
{
use ModuleBlockTrait;
- private const SORT_STYLE_DATE = 'anniv';
- private const SORT_STYLE_NAME = 'alpha';
+ private const string SORT_STYLE_DATE = 'anniv';
+ private const string SORT_STYLE_NAME = 'alpha';
- private const LAYOUT_STYLE_LIST = 'list';
- private const LAYOUT_STYLE_TABLE = 'table';
+ private const string LAYOUT_STYLE_LIST = 'list';
+ private const string LAYOUT_STYLE_TABLE = 'table';
// Default values for new blocks.
- private const DEFAULT_DAYS = '7';
- private const DEFAULT_FILTER = '1';
- private const DEFAULT_SORT = self::SORT_STYLE_NAME;
- private const DEFAULT_STYLE = self::LAYOUT_STYLE_TABLE;
+ private const string DEFAULT_DAYS = '7';
+ private const string DEFAULT_FILTER = '1';
+ private const string DEFAULT_SORT = self::SORT_STYLE_NAME;
+ private const string DEFAULT_STYLE = self::LAYOUT_STYLE_TABLE;
// Initial sorting for datatables
- private const DATATABLES_ORDER = [
+ private const array DATATABLES_ORDER = [
self::SORT_STYLE_NAME => [[0, 'asc']],
self::SORT_STYLE_DATE => [[1, 'asc']],
];
// Can show this number of days into the future.
- private const MAX_DAYS = 30;
+ private const int MAX_DAYS = 30;
// Pagination
- private const LIMIT_LOW = 10;
- private const LIMIT_HIGH = 20;
+ private const int LIMIT_LOW = 10;
+ private const int LIMIT_HIGH = 20;
// All standard GEDCOM 5.5.1 events except CENS, RESI and EVEN
- private const ALL_EVENTS = [
+ private const array ALL_EVENTS = [
'ADOP' => 'INDI:ADOP',
'ANUL' => 'FAM:ANUL',
'BAPM' => 'INDI:BAPM',
@@ -95,7 +95,7 @@ class UpcomingAnniversariesModule extends AbstractModule implements ModuleBlockI
'WILL' => 'INDI:WILL',
];
- private const DEFAULT_EVENTS = [
+ private const array DEFAULT_EVENTS = [
'BIRT',
'MARR',
'DEAT',
diff --git a/app/Module/YahrzeitModule.php b/app/Module/YahrzeitModule.php
index 6530b64d8a..aa61d64053 100644
--- a/app/Module/YahrzeitModule.php
+++ b/app/Module/YahrzeitModule.php
@@ -45,16 +45,16 @@ class YahrzeitModule extends AbstractModule implements ModuleBlockInterface
use ModuleBlockTrait;
// Default values for new blocks.
- private const DEFAULT_CALENDAR = 'jewish';
- private const DEFAULT_DAYS = '7';
- private const DEFAULT_STYLE = 'table';
+ private const string DEFAULT_CALENDAR = 'jewish';
+ private const string DEFAULT_DAYS = '7';
+ private const string DEFAULT_STYLE = 'table';
// Can show this number of days into the future.
- private const MAX_DAYS = 30;
+ private const int MAX_DAYS = 30;
// Pagination
- private const LIMIT_LOW = 10;
- private const LIMIT_HIGH = 20;
+ private const int LIMIT_LOW = 10;
+ private const int LIMIT_HIGH = 20;
/**
* How should this module be identified in the control panel, etc.?
diff --git a/app/Note.php b/app/Note.php
index e103d30172..bf9a4e97ba 100644
--- a/app/Note.php
+++ b/app/Note.php
@@ -36,9 +36,9 @@ use const ENT_QUOTES;
*/
class Note extends GedcomRecord
{
- public const RECORD_TYPE = 'NOTE';
+ public const string RECORD_TYPE = 'NOTE';
- protected const ROUTE_NAME = NotePage::class;
+ protected const string ROUTE_NAME = NotePage::class;
/**
* Get the text contents of the note
diff --git a/app/Relationship.php b/app/Relationship.php
index 0cd6842d49..8074c392a9 100644
--- a/app/Relationship.php
+++ b/app/Relationship.php
@@ -37,23 +37,23 @@ class Relationship
// The basic components of a relationship.
// These strings are needed for compatibility with the legacy algorithm.
// Once that has been replaced, it may be more efficient to use integers here.
- public const SISTER = 'sis';
- public const BROTHER = 'bro';
- public const SIBLING = 'sib';
- public const MOTHER = 'mot';
- public const FATHER = 'fat';
- public const PARENT = 'par';
- public const DAUGHTER = 'dau';
- public const SON = 'son';
- public const CHILD = 'chi';
- public const WIFE = 'wif';
- public const HUSBAND = 'hus';
- public const SPOUSE = 'spo';
+ public const string SISTER = 'sis';
+ public const string BROTHER = 'bro';
+ public const string SIBLING = 'sib';
+ public const string MOTHER = 'mot';
+ public const string FATHER = 'fat';
+ public const string PARENT = 'par';
+ public const string DAUGHTER = 'dau';
+ public const string SON = 'son';
+ public const string CHILD = 'chi';
+ public const string WIFE = 'wif';
+ public const string HUSBAND = 'hus';
+ public const string SPOUSE = 'spo';
- public const SIBLINGS = ['F' => self::SISTER, 'M' => self::BROTHER, 'U' => self::SIBLING];
- public const PARENTS = ['F' => self::MOTHER, 'M' => self::FATHER, 'U' => self::PARENT];
- public const CHILDREN = ['F' => self::DAUGHTER, 'M' => self::SON, 'U' => self::CHILD];
- public const SPOUSES = ['F' => self::WIFE, 'M' => self::HUSBAND, 'U' => self::SPOUSE];
+ public const array SIBLINGS = ['F' => self::SISTER, 'M' => self::BROTHER, 'U' => self::SIBLING];
+ public const array PARENTS = ['F' => self::MOTHER, 'M' => self::FATHER, 'U' => self::PARENT];
+ public const array CHILDREN = ['F' => self::DAUGHTER, 'M' => self::SON, 'U' => self::CHILD];
+ public const array SPOUSES = ['F' => self::WIFE, 'M' => self::HUSBAND, 'U' => self::SPOUSE];
// Generates a name from the matched relationship.
private Closure $callback;
diff --git a/app/Report/AbstractRenderer.php b/app/Report/AbstractRenderer.php
index fb6194d8fb..9caee2fef8 100644
--- a/app/Report/AbstractRenderer.php
+++ b/app/Report/AbstractRenderer.php
@@ -29,13 +29,13 @@ use Fisharebest\Webtrees\Webtrees;
abstract class AbstractRenderer
{
// Reports layouts are measured in points.
- protected const UNITS = 'pt';
+ protected const string UNITS = 'pt';
// A point is 1/72 of an inch
- protected const INCH_TO_POINTS = 72.0;
- protected const MM_TO_POINTS = 72.0 / 25.4;
+ protected const float INCH_TO_POINTS = 72.0;
+ protected const float MM_TO_POINTS = 72.0 / 25.4;
- protected const PAPER_SIZES = [
+ protected const array PAPER_SIZES = [
// ISO 216
'A0' => [841.0 * self::MM_TO_POINTS, 1189.0 * self::MM_TO_POINTS],
'A1' => [594.0 * self::MM_TO_POINTS, 841.0 * self::MM_TO_POINTS],
diff --git a/app/Report/PdfRenderer.php b/app/Report/PdfRenderer.php
index bbe261242b..b9ab6fa1e3 100644
--- a/app/Report/PdfRenderer.php
+++ b/app/Report/PdfRenderer.php
@@ -34,24 +34,24 @@ class PdfRenderer extends AbstractRenderer
*
* @var bool const
*/
- private const COMPRESSION = true;
+ private const bool COMPRESSION = true;
/**
* If true reduce the RAM memory usage by caching temporary data on filesystem (slower).
*
* @var bool const
*/
- private const DISK_CACHE = false;
+ private const bool DISK_CACHE = false;
/**
* true means that the input text is unicode (PDF)
*
* @var bool const
*/
- private const UNICODE = true;
+ private const bool UNICODE = true;
// Font sub-setting in TCPDF is slow.
- private const SUBSETTING = false;
+ private const bool SUBSETTING = false;
public TcpdfWrapper $tcpdf;
diff --git a/app/Report/ReportBaseElement.php b/app/Report/ReportBaseElement.php
index 2bbe29e390..0f9f331eef 100644
--- a/app/Report/ReportBaseElement.php
+++ b/app/Report/ReportBaseElement.php
@@ -28,7 +28,7 @@ use function trim;
class ReportBaseElement
{
// Special value for X or Y position, to indicate the current position.
- public const CURRENT_POSITION = -1.0;
+ public const float CURRENT_POSITION = -1.0;
public string $text = '';
diff --git a/app/Report/RightToLeftSupport.php b/app/Report/RightToLeftSupport.php
index 9d3d00efb9..430e18abb1 100644
--- a/app/Report/RightToLeftSupport.php
+++ b/app/Report/RightToLeftSupport.php
@@ -41,33 +41,33 @@ use const STR_PAD_RIGHT;
*/
class RightToLeftSupport
{
- private const UTF8_LRM = "\xE2\x80\x8E"; // U+200E (Left to Right mark: zero-width character with LTR directionality)
- private const UTF8_RLM = "\xE2\x80\x8F"; // U+200F (Right to Left mark: zero-width character with RTL directionality)
- private const UTF8_LRO = "\xE2\x80\xAD"; // U+202D (Left to Right override: force everything following to LTR mode)
- private const UTF8_RLO = "\xE2\x80\xAE"; // U+202E (Right to Left override: force everything following to RTL mode)
- private const UTF8_LRE = "\xE2\x80\xAA"; // U+202A (Left to Right embedding: treat everything following as LTR text)
- private const UTF8_RLE = "\xE2\x80\xAB"; // U+202B (Right to Left embedding: treat everything following as RTL text)
- private const UTF8_PDF = "\xE2\x80\xAC"; // U+202C (Pop directional formatting: restore state prior to last LRO, RLO, LRE, RLE)
+ private const string UTF8_LRM = "\xE2\x80\x8E"; // U+200E (Left to Right mark: zero-width character with LTR directionality)
+ private const string UTF8_RLM = "\xE2\x80\x8F"; // U+200F (Right to Left mark: zero-width character with RTL directionality)
+ private const string UTF8_LRO = "\xE2\x80\xAD"; // U+202D (Left to Right override: force everything following to LTR mode)
+ private const string UTF8_RLO = "\xE2\x80\xAE"; // U+202E (Right to Left override: force everything following to RTL mode)
+ private const string UTF8_LRE = "\xE2\x80\xAA"; // U+202A (Left to Right embedding: treat everything following as LTR text)
+ private const string UTF8_RLE = "\xE2\x80\xAB"; // U+202B (Right to Left embedding: treat everything following as RTL text)
+ private const string UTF8_PDF = "\xE2\x80\xAC"; // U+202C (Pop directional formatting: restore state prior to last LRO, RLO, LRE, RLE)
- private const OPEN_PARENTHESES = '([{';
+ private const string OPEN_PARENTHESES = '([{';
- private const CLOSE_PARENTHESES = ')]}';
+ private const string CLOSE_PARENTHESES = ')]}';
- private const NUMBERS = '0123456789';
+ private const string NUMBERS = '0123456789';
- private const NUMBER_PREFIX = '+-'; // Treat these like numbers when at beginning or end of numeric strings
+ private const string NUMBER_PREFIX = '+-'; // Treat these like numbers when at beginning or end of numeric strings
- private const NUMBER_PUNCTUATION = '- ,.:/'; // Treat these like numbers when inside numeric strings
+ private const string NUMBER_PUNCTUATION = '- ,.:/'; // Treat these like numbers when inside numeric strings
- private const PUNCTUATION = ',.:;?!';
+ private const string PUNCTUATION = ',.:;?!';
// Markup
- private const START_LTR = '<LTR>';
- private const END_LTR = '</LTR>';
- private const START_RTL = '<RTL>';
- private const END_RTL = '</RTL>';
- private const LENGTH_START = 5;
- private const LENGTH_END = 6;
+ private const string START_LTR = '<LTR>';
+ private const string END_LTR = '</LTR>';
+ private const string START_RTL = '<RTL>';
+ private const string END_RTL = '</RTL>';
+ private const int LENGTH_START = 5;
+ private const int LENGTH_END = 6;
/* Were we previously processing LTR or RTL. */
private static string $previousState;
diff --git a/app/Repository.php b/app/Repository.php
index fc92ba97c0..9f65bcb94c 100644
--- a/app/Repository.php
+++ b/app/Repository.php
@@ -26,9 +26,9 @@ use Fisharebest\Webtrees\Http\RequestHandlers\RepositoryPage;
*/
class Repository extends GedcomRecord
{
- public const RECORD_TYPE = 'REPO';
+ public const string RECORD_TYPE = 'REPO';
- protected const ROUTE_NAME = RepositoryPage::class;
+ protected const string ROUTE_NAME = RepositoryPage::class;
/**
* Extract names from the GEDCOM record.
diff --git a/app/Schema/Migration42.php b/app/Schema/Migration42.php
index 00acbaee6e..77a2184f58 100644
--- a/app/Schema/Migration42.php
+++ b/app/Schema/Migration42.php
@@ -35,7 +35,7 @@ use Illuminate\Database\Schema\Blueprint;
*/
class Migration42 implements MigrationInterface
{
- private const COMPONENT_TO_INTERFACE = [
+ private const array COMPONENT_TO_INTERFACE = [
'block' => ModuleBlockInterface::class,
'chart' => ModuleChartInterface::class,
'list' => ModuleListInterface::class,
diff --git a/app/Schema/SeedDefaultResnTable.php b/app/Schema/SeedDefaultResnTable.php
index ca614be676..8c3bfeac3c 100644
--- a/app/Schema/SeedDefaultResnTable.php
+++ b/app/Schema/SeedDefaultResnTable.php
@@ -26,7 +26,7 @@ use Fisharebest\Webtrees\DB;
*/
class SeedDefaultResnTable implements SeedInterface
{
- private const DEFAULT_RESTRICTIONS = [
+ private const array DEFAULT_RESTRICTIONS = [
'SSN' => 'confidential',
'SOUR' => 'privacy',
'REPO' => 'privacy',
diff --git a/app/Services/CalendarService.php b/app/Services/CalendarService.php
index 33cf286fa5..5329837e2f 100644
--- a/app/Services/CalendarService.php
+++ b/app/Services/CalendarService.php
@@ -51,7 +51,7 @@ use function range;
class CalendarService
{
// If no facts specified, get all except these
- protected const SKIP_FACTS = ['CHAN', 'BAPL', 'SLGC', 'SLGS', 'ENDL', 'CENS', 'RESI', 'NOTE', 'ADDR', 'OBJE', 'SOUR', '_TODO'];
+ protected const array SKIP_FACTS = ['CHAN', 'BAPL', 'SLGC', 'SLGS', 'ENDL', 'CENS', 'RESI', 'NOTE', 'ADDR', 'OBJE', 'SOUR', '_TODO'];
/**
* List all the months in a given year.
diff --git a/app/Services/CaptchaService.php b/app/Services/CaptchaService.php
index c77c6e59e3..d464e361db 100644
--- a/app/Services/CaptchaService.php
+++ b/app/Services/CaptchaService.php
@@ -35,7 +35,7 @@ use function view;
class CaptchaService
{
// If the form is completed faster than this, then suspect a robot.
- private const MINIMUM_FORM_TIME = 3.0;
+ private const float MINIMUM_FORM_TIME = 3.0;
/**
* Create the captcha
diff --git a/app/Services/ClipboardService.php b/app/Services/ClipboardService.php
index c9526f0152..494d12684e 100644
--- a/app/Services/ClipboardService.php
+++ b/app/Services/ClipboardService.php
@@ -34,7 +34,7 @@ use function is_array;
class ClipboardService
{
// Maximum number of entries in the clipboard.
- private const CLIPBOARD_SIZE = 10;
+ private const int CLIPBOARD_SIZE = 10;
/**
* Copy a fact to the clipboard.
diff --git a/app/Services/GedcomExportService.php b/app/Services/GedcomExportService.php
index e20773a59a..b9f86d552c 100644
--- a/app/Services/GedcomExportService.php
+++ b/app/Services/GedcomExportService.php
@@ -72,7 +72,7 @@ use const STREAM_FILTER_WRITE;
*/
class GedcomExportService
{
- private const ACCESS_LEVELS = [
+ private const array ACCESS_LEVELS = [
'gedadmin' => Auth::PRIV_NONE,
'user' => Auth::PRIV_USER,
'visitor' => Auth::PRIV_PRIVATE,
diff --git a/app/Services/GedcomService.php b/app/Services/GedcomService.php
index 8855b76922..b66ca9e1b6 100644
--- a/app/Services/GedcomService.php
+++ b/app/Services/GedcomService.php
@@ -27,7 +27,7 @@ use Fisharebest\Webtrees\Gedcom;
class GedcomService
{
// Some applications, such as FTM, use GEDCOM tag names instead of the tags.
- private const TAG_NAMES = [
+ private const array TAG_NAMES = [
'ABBREVIATION' => 'ABBR',
'ADDRESS' => 'ADDR',
'ADDRESS1' => 'ADR1',
@@ -152,7 +152,7 @@ class GedcomService
];
// Custom GEDCOM tags used by other applications, with direct synonyms
- private const TAG_SYNONYMS = [
+ private const array TAG_SYNONYMS = [
// Convert PhpGedView tag to webtrees
'_PGVU' => '_WT_USER',
'_PGV_OBJS' => '_WT_OBJE_SORT',
diff --git a/app/Services/HousekeepingService.php b/app/Services/HousekeepingService.php
index 0c86e5c6e0..ad6b86e048 100644
--- a/app/Services/HousekeepingService.php
+++ b/app/Services/HousekeepingService.php
@@ -36,7 +36,7 @@ class HousekeepingService
{
// This is a list of old files and directories, from earlier versions of webtrees.
// git diff 1.7.9..master --name-status | grep ^D
- private const OLD_PATHS = [
+ private const array OLD_PATHS = [
// Removed in 1.0.3
'themechange.php',
// Removed in 1.1.0
diff --git a/app/Services/MapDataService.php b/app/Services/MapDataService.php
index 3c1838f648..2b6765c136 100644
--- a/app/Services/MapDataService.php
+++ b/app/Services/MapDataService.php
@@ -40,10 +40,10 @@ use function round;
class MapDataService
{
// Location of files to import
- public const PLACES_FOLDER = 'places/';
+ public const string PLACES_FOLDER = 'places/';
// Format of CSV files
- public const CSV_SEPARATOR = ';';
+ public const string CSV_SEPARATOR = ';';
/**
* @param int $id
diff --git a/app/Services/MediaFileService.php b/app/Services/MediaFileService.php
index 4a8c14ebca..a251b829b1 100644
--- a/app/Services/MediaFileService.php
+++ b/app/Services/MediaFileService.php
@@ -64,7 +64,7 @@ use const UPLOAD_ERR_OK;
*/
class MediaFileService
{
- private const IGNORE_FOLDERS = [
+ private const array IGNORE_FOLDERS = [
// Old versions of webtrees
'thumbs',
'watermarks',
diff --git a/app/Services/MessageService.php b/app/Services/MessageService.php
index 64675676c6..e4890f4a58 100644
--- a/app/Services/MessageService.php
+++ b/app/Services/MessageService.php
@@ -39,15 +39,15 @@ use function view;
class MessageService
{
// Users can be contacted by various methods
- public const CONTACT_METHOD_INTERNAL = 'messaging';
- public const CONTACT_METHOD_INTERNAL_AND_EMAIL = 'messaging2';
- public const CONTACT_METHOD_EMAIL = 'messaging3';
- public const CONTACT_METHOD_MAILTO = 'mailto';
- public const CONTACT_METHOD_NONE = 'none';
+ public const string CONTACT_METHOD_INTERNAL = 'messaging';
+ public const string CONTACT_METHOD_INTERNAL_AND_EMAIL = 'messaging2';
+ public const string CONTACT_METHOD_EMAIL = 'messaging3';
+ public const string CONTACT_METHOD_MAILTO = 'mailto';
+ public const string CONTACT_METHOD_NONE = 'none';
- private const BROADCAST_ALL = 'all';
- private const BROADCAST_NEVER = 'never';
- private const BROADCAST_GONE = 'gone';
+ private const string BROADCAST_ALL = 'all';
+ private const string BROADCAST_NEVER = 'never';
+ private const string BROADCAST_GONE = 'gone';
private EmailService $email_service;
diff --git a/app/Services/ModuleService.php b/app/Services/ModuleService.php
index a872580e2b..211055ee4e 100644
--- a/app/Services/ModuleService.php
+++ b/app/Services/ModuleService.php
@@ -278,7 +278,7 @@ use const GLOB_NOSORT;
class ModuleService
{
// Components are pieces of user-facing functionality, are managed together in the control panel.
- private const COMPONENTS = [
+ private const array COMPONENTS = [
ModuleAnalyticsInterface::class,
ModuleBlockInterface::class,
ModuleChartInterface::class,
@@ -300,7 +300,7 @@ class ModuleService
];
// Components that have access levels.
- private const COMPONENTS_WITH_ACCESS = [
+ private const array COMPONENTS_WITH_ACCESS = [
ModuleBlockInterface::class,
ModuleChartInterface::class,
ModuleListInterface::class,
@@ -311,7 +311,7 @@ class ModuleService
];
// Components that are displayed in a particular order
- private const COMPONENTS_WITH_SORT = [
+ private const array COMPONENTS_WITH_SORT = [
ModuleFooterInterface::class,
ModuleMenuInterface::class,
ModuleSidebarInterface::class,
@@ -319,7 +319,7 @@ class ModuleService
];
// Array keys are module names, and should match module names from earlier versions of webtrees.
- private const CORE_MODULES = [
+ private const array CORE_MODULES = [
'GEDFact_assistant' => CensusAssistantModule::class,
'ahnentafel_report' => AhnentafelReportModule::class,
'ancestors_chart' => AncestorsChartModule::class,
diff --git a/app/Services/RelationshipService.php b/app/Services/RelationshipService.php
index 9b2ff993a2..95e0f03ae6 100644
--- a/app/Services/RelationshipService.php
+++ b/app/Services/RelationshipService.php
@@ -47,7 +47,7 @@ use function substr;
*/
class RelationshipService
{
- private const COMPONENTS = [
+ private const array COMPONENTS = [
'CHIL' => [
'CHIL' => Relationship::SIBLINGS,
'HUSB' => Relationship::PARENTS,
diff --git a/app/Services/RomanNumeralsService.php b/app/Services/RomanNumeralsService.php
index 5cc1c6630a..58cea9e0de 100644
--- a/app/Services/RomanNumeralsService.php
+++ b/app/Services/RomanNumeralsService.php
@@ -29,7 +29,7 @@ use function substr;
class RomanNumeralsService
{
// Convert numbers to/from roman numerals
- private const ROMAN_NUMERALS = [
+ private const array ROMAN_NUMERALS = [
1000 => 'M',
900 => 'CM',
500 => 'D',
diff --git a/app/Services/SearchService.php b/app/Services/SearchService.php
index e88a683e61..b209a42275 100644
--- a/app/Services/SearchService.php
+++ b/app/Services/SearchService.php
@@ -66,7 +66,7 @@ use const PHP_INT_MAX;
class SearchService
{
// Do not attempt to show search results larger than this/
- protected const MAX_SEARCH_RESULTS = 5000;
+ protected const int MAX_SEARCH_RESULTS = 5000;
private TreeService $tree_service;
diff --git a/app/Services/ServerCheckService.php b/app/Services/ServerCheckService.php
index a7406f7345..db1db36d45 100644
--- a/app/Services/ServerCheckService.php
+++ b/app/Services/ServerCheckService.php
@@ -49,9 +49,9 @@ use const PHP_VERSION;
*/
class ServerCheckService
{
- private const PHP_SUPPORT_URL = 'https://www.php.net/supported-versions.php';
- private const PHP_MINOR_VERSION = PHP_MAJOR_VERSION . '.' . PHP_MINOR_VERSION;
- private const PHP_SUPPORT_DATES = [
+ private const string PHP_SUPPORT_URL = 'https://www.php.net/supported-versions.php';
+ private const string PHP_MINOR_VERSION = PHP_MAJOR_VERSION . '.' . PHP_MINOR_VERSION;
+ private const array PHP_SUPPORT_DATES = [
'8.1' => '2025-12-31',
'8.2' => '2026-12-31',
'8.3' => '2027-12-31',
@@ -59,7 +59,7 @@ class ServerCheckService
];
// As required by illuminate/database 8.x
- private const MINIMUM_SQLITE_VERSION = '3.8.8';
+ private const string MINIMUM_SQLITE_VERSION = '3.8.8';
/**
* Things that may cause webtrees to break.
diff --git a/app/Services/TimeoutService.php b/app/Services/TimeoutService.php
index f05305916e..103c2a11c8 100644
--- a/app/Services/TimeoutService.php
+++ b/app/Services/TimeoutService.php
@@ -27,10 +27,10 @@ use Fisharebest\Webtrees\Registry;
class TimeoutService
{
//Long-running scripts run in small chunks
- private const TIME_LIMIT = 1.5;
+ private const float TIME_LIMIT = 1.5;
// Seconds until we run out of time
- private const TIME_UP_THRESHOLD = 3.0;
+ private const float TIME_UP_THRESHOLD = 3.0;
// The start time of the request
private float $start_time;
diff --git a/app/Services/TreeService.php b/app/Services/TreeService.php
index ca1252cad0..25bfd2be7e 100644
--- a/app/Services/TreeService.php
+++ b/app/Services/TreeService.php
@@ -50,7 +50,7 @@ use const STREAM_FILTER_READ;
class TreeService
{
// The most likely surname tradition for a given language.
- private const DEFAULT_SURNAME_TRADITIONS = [
+ private const array DEFAULT_SURNAME_TRADITIONS = [
'es' => 'spanish',
'is' => 'icelandic',
'lt' => 'lithuanian',
diff --git a/app/Services/UpgradeService.php b/app/Services/UpgradeService.php
index 85ed1f0a70..7149d7f2d9 100644
--- a/app/Services/UpgradeService.php
+++ b/app/Services/UpgradeService.php
@@ -62,24 +62,24 @@ use const PHP_VERSION;
class UpgradeService
{
// Options for fetching files using GuzzleHTTP
- private const GUZZLE_OPTIONS = [
+ private const array GUZZLE_OPTIONS = [
'connect_timeout' => 25,
'read_timeout' => 25,
'timeout' => 55,
];
// Transfer stream data in blocks of this number of bytes.
- private const READ_BLOCK_SIZE = 65535;
+ private const int READ_BLOCK_SIZE = 65535;
// Only check the webtrees server once per day.
- private const CHECK_FOR_UPDATE_INTERVAL = 24 * 60 * 60;
+ private const int CHECK_FOR_UPDATE_INTERVAL = 24 * 60 * 60;
// Fetch information about upgrades from here.
// Note: earlier versions of webtrees used svn.webtrees.net, so we must maintain both URLs.
- private const UPDATE_URL = 'https://dev.webtrees.net/build/latest-version.txt';
+ private const string UPDATE_URL = 'https://dev.webtrees.net/build/latest-version.txt';
// If the update server doesn't respond after this time, give up.
- private const HTTP_TIMEOUT = 3.0;
+ private const float HTTP_TIMEOUT = 3.0;
private TimeoutService $timeout_service;
diff --git a/app/Session.php b/app/Session.php
index d5e5bad601..67be7601f4 100644
--- a/app/Session.php
+++ b/app/Session.php
@@ -48,8 +48,8 @@ use const PHP_URL_SCHEME;
class Session
{
// Use the secure prefix with HTTPS.
- private const SESSION_NAME = 'WT2_SESSION';
- private const SECURE_SESSION_NAME = '__Secure-WT-ID';
+ private const string SESSION_NAME = 'WT2_SESSION';
+ private const string SECURE_SESSION_NAME = '__Secure-WT-ID';
/**
* Start a session
diff --git a/app/SharedNote.php b/app/SharedNote.php
index 98b4e89a7f..353f4d1d77 100644
--- a/app/SharedNote.php
+++ b/app/SharedNote.php
@@ -26,7 +26,7 @@ use Fisharebest\Webtrees\Http\RequestHandlers\SharedNotePage;
*/
class SharedNote extends Note
{
- public const RECORD_TYPE = 'SNOTE';
+ public const string RECORD_TYPE = 'SNOTE';
- protected const ROUTE_NAME = SharedNotePage::class;
+ protected const string ROUTE_NAME = SharedNotePage::class;
}
diff --git a/app/Site.php b/app/Site.php
index 6b57892a96..ba506c040b 100644
--- a/app/Site.php
+++ b/app/Site.php
@@ -28,17 +28,17 @@ use function mb_substr;
class Site
{
// The following preferences contain sensitive data, and should not be logged.
- private const SENSITIVE_PREFERENCES = [
+ private const array SENSITIVE_PREFERENCES = [
'SMTP_AUTH_PASS',
];
// The following preferences contain unimportant data, and should not be logged.
- private const UNIMPORTANT_PREFERENCES = [
+ private const array UNIMPORTANT_PREFERENCES = [
'next_xref',
];
// Default values for some site preferences.
- protected const DEFAULT_PREFERENCES = [
+ protected const array DEFAULT_PREFERENCES = [
'ALLOW_CHANGE_GEDCOM' => '1',
'HIDE_ADDR_EMAIL' => '1',
'HIDE_ADDR_FAX' => '1',
diff --git a/app/Soundex.php b/app/Soundex.php
index 255b315d8f..fe6cc00766 100644
--- a/app/Soundex.php
+++ b/app/Soundex.php
@@ -32,7 +32,7 @@ class Soundex
// Original implementation by Gerry Kroll, and analysis by Meliza Amity
// Max. table key length (in ASCII bytes -- NOT in UTF-8 characters!)
- private const MAXCHAR = 7;
+ private const int MAXCHAR = 7;
/**
* Name transformation arrays.
@@ -46,7 +46,7 @@ class Soundex
* This code, which can’t legitimately occur in the kind of text we're dealing with,
* is used as a place-holder so that conditional string replacements can be done.
*/
- private const TRANSFORM_NAMES = [
+ private const array TRANSFORM_NAMES = [
// Force Yiddish ligatures to be treated as separate letters
['װ', 'וו'],
['ײ', 'יי'],
@@ -80,7 +80,7 @@ class Soundex
* [1],[2],[3] can be repeated several times to create branches in the code
* an empty sound value means "ignore in this state"
*/
- private const DM_SOUNDS = [
+ private const array DM_SOUNDS = [
'A' => ['1', '0', '', ''],
'À' => ['1', '0', '', ''],
'Á' => ['1', '0', '', ''],
diff --git a/app/Source.php b/app/Source.php
index 0550c6348b..2c67b1c5d7 100644
--- a/app/Source.php
+++ b/app/Source.php
@@ -26,9 +26,9 @@ use Fisharebest\Webtrees\Http\RequestHandlers\SourcePage;
*/
class Source extends GedcomRecord
{
- public const RECORD_TYPE = 'SOUR';
+ public const string RECORD_TYPE = 'SOUR';
- protected const ROUTE_NAME = SourcePage::class;
+ protected const string ROUTE_NAME = SourcePage::class;
/**
* Each object type may have its own special rules, and re-implement this function.
diff --git a/app/Statistics/Repository/EventRepository.php b/app/Statistics/Repository/EventRepository.php
index 76486c61db..a4499ad803 100644
--- a/app/Statistics/Repository/EventRepository.php
+++ b/app/Statistics/Repository/EventRepository.php
@@ -48,16 +48,16 @@ class EventRepository implements EventRepositoryInterface
/**
* Sorting directions.
*/
- private const SORT_ASC = 'ASC';
- private const SORT_DESC = 'DESC';
+ private const string SORT_ASC = 'ASC';
+ private const string SORT_DESC = 'DESC';
/**
* Event facts.
*/
- private const EVENT_BIRTH = 'BIRT';
- private const EVENT_DEATH = 'DEAT';
- private const EVENT_MARRIAGE = 'MARR';
- private const EVENT_DIVORCE = 'DIV';
+ private const string EVENT_BIRTH = 'BIRT';
+ private const string EVENT_DEATH = 'DEAT';
+ private const string EVENT_MARRIAGE = 'MARR';
+ private const string EVENT_DIVORCE = 'DIV';
private Tree $tree;
diff --git a/app/Statistics/Repository/FamilyDatesRepository.php b/app/Statistics/Repository/FamilyDatesRepository.php
index 1c1d69a034..f7ea611c48 100644
--- a/app/Statistics/Repository/FamilyDatesRepository.php
+++ b/app/Statistics/Repository/FamilyDatesRepository.php
@@ -40,16 +40,16 @@ class FamilyDatesRepository implements FamilyDatesRepositoryInterface
/**
* Sorting directions.
*/
- private const SORT_MIN = 'MIN';
- private const SORT_MAX = 'MAX';
+ private const string SORT_MIN = 'MIN';
+ private const string SORT_MAX = 'MAX';
/**
* Event facts.
*/
- private const EVENT_BIRTH = 'BIRT';
- private const EVENT_DEATH = 'DEAT';
- private const EVENT_MARRIAGE = 'MARR';
- private const EVENT_DIVORCE = 'DIV';
+ private const string EVENT_BIRTH = 'BIRT';
+ private const string EVENT_DEATH = 'DEAT';
+ private const string EVENT_MARRIAGE = 'MARR';
+ private const string EVENT_DIVORCE = 'DIV';
private Tree $tree;
diff --git a/app/Statistics/Repository/MediaRepository.php b/app/Statistics/Repository/MediaRepository.php
index ee13cd79cf..448f5b5322 100644
--- a/app/Statistics/Repository/MediaRepository.php
+++ b/app/Statistics/Repository/MediaRepository.php
@@ -39,26 +39,26 @@ class MediaRepository implements MediaRepositoryInterface
/**
* Available media types.
*/
- private const MEDIA_TYPE_ALL = 'all';
- private const MEDIA_TYPE_AUDIO = 'audio';
- private const MEDIA_TYPE_BOOK = 'book';
- private const MEDIA_TYPE_CARD = 'card';
- private const MEDIA_TYPE_CERTIFICATE = 'certificate';
- private const MEDIA_TYPE_COAT = 'coat';
- private const MEDIA_TYPE_DOCUMENT = 'document';
- private const MEDIA_TYPE_ELECTRONIC = 'electronic';
- private const MEDIA_TYPE_FICHE = 'fiche';
- private const MEDIA_TYPE_FILM = 'film';
- private const MEDIA_TYPE_MAGAZINE = 'magazine';
- private const MEDIA_TYPE_MANUSCRIPT = 'manuscript';
- private const MEDIA_TYPE_MAP = 'map';
- private const MEDIA_TYPE_NEWSPAPER = 'newspaper';
- private const MEDIA_TYPE_PAINTING = 'painting';
- private const MEDIA_TYPE_PHOTO = 'photo';
- private const MEDIA_TYPE_TOMBSTONE = 'tombstone';
- private const MEDIA_TYPE_VIDEO = 'video';
- private const MEDIA_TYPE_OTHER = 'other';
- private const MEDIA_TYPE_UNKNOWN = '';
+ private const string MEDIA_TYPE_ALL = 'all';
+ private const string MEDIA_TYPE_AUDIO = 'audio';
+ private const string MEDIA_TYPE_BOOK = 'book';
+ private const string MEDIA_TYPE_CARD = 'card';
+ private const string MEDIA_TYPE_CERTIFICATE = 'certificate';
+ private const string MEDIA_TYPE_COAT = 'coat';
+ private const string MEDIA_TYPE_DOCUMENT = 'document';
+ private const string MEDIA_TYPE_ELECTRONIC = 'electronic';
+ private const string MEDIA_TYPE_FICHE = 'fiche';
+ private const string MEDIA_TYPE_FILM = 'film';
+ private const string MEDIA_TYPE_MAGAZINE = 'magazine';
+ private const string MEDIA_TYPE_MANUSCRIPT = 'manuscript';
+ private const string MEDIA_TYPE_MAP = 'map';
+ private const string MEDIA_TYPE_NEWSPAPER = 'newspaper';
+ private const string MEDIA_TYPE_PAINTING = 'painting';
+ private const string MEDIA_TYPE_PHOTO = 'photo';
+ private const string MEDIA_TYPE_TOMBSTONE = 'tombstone';
+ private const string MEDIA_TYPE_VIDEO = 'video';
+ private const string MEDIA_TYPE_OTHER = 'other';
+ private const string MEDIA_TYPE_UNKNOWN = '';
/**
* @param ColorService $color_service
diff --git a/app/Submission.php b/app/Submission.php
index 417b0cf0f3..c81f156dc2 100644
--- a/app/Submission.php
+++ b/app/Submission.php
@@ -28,9 +28,9 @@ use Fisharebest\Webtrees\Http\RequestHandlers\SubmissionPage;
*/
class Submission extends GedcomRecord
{
- public const RECORD_TYPE = 'SUBN';
+ public const string RECORD_TYPE = 'SUBN';
- protected const ROUTE_NAME = SubmissionPage::class;
+ protected const string ROUTE_NAME = SubmissionPage::class;
/**
* Extract names from the GEDCOM record.
diff --git a/app/Submitter.php b/app/Submitter.php
index dc8ec9a692..7630d0e2e5 100644
--- a/app/Submitter.php
+++ b/app/Submitter.php
@@ -26,9 +26,9 @@ use Fisharebest\Webtrees\Http\RequestHandlers\SubmitterPage;
*/
class Submitter extends GedcomRecord
{
- public const RECORD_TYPE = 'SUBM';
+ public const string RECORD_TYPE = 'SUBM';
- protected const ROUTE_NAME = SubmitterPage::class;
+ protected const string ROUTE_NAME = SubmitterPage::class;
/**
* Extract names from the GEDCOM record.
diff --git a/app/SurnameTradition/DefaultSurnameTradition.php b/app/SurnameTradition/DefaultSurnameTradition.php
index 7a3d80e34c..ae2fd0950a 100644
--- a/app/SurnameTradition/DefaultSurnameTradition.php
+++ b/app/SurnameTradition/DefaultSurnameTradition.php
@@ -36,16 +36,16 @@ use function in_array;
class DefaultSurnameTradition implements SurnameTraditionInterface
{
/** Extract a GIVN from a NAME */
- protected const REGEX_GIVN = '~^(?<GIVN>[^/ ]+)~';
+ protected const string REGEX_GIVN = '~^(?<GIVN>[^/ ]+)~';
/** Extract a SPFX and SURN from a NAME */
- protected const REGEX_SPFX_SURN = '~(?<NAME>/(?<SPFX>[a-z’\']{0,4}(?: [a-z’\']{1,4})*) ?(?<SURN>[^/]*)/)~';
+ protected const string REGEX_SPFX_SURN = '~(?<NAME>/(?<SPFX>[a-z’\']{0,4}(?: [a-z’\']{1,4})*) ?(?<SURN>[^/]*)/)~';
/** Extract a simple SURN from a NAME */
- protected const REGEX_SURN = '~(?<NAME>/(?<SURN>[^/]+)/)~';
+ protected const string REGEX_SURN = '~(?<NAME>/(?<SURN>[^/]+)/)~';
/** Extract two Spanish/Portuguese SURNs from a NAME */
- protected const REGEX_SURNS = '~/(?<SURN1>[^ /]+)(?: | y |/ /|/ y /)(?<SURN2>[^ /]+)/~';
+ protected const string REGEX_SURNS = '~/(?<SURN1>[^ /]+)(?: | y |/ /|/ y /)(?<SURN2>[^ /]+)/~';
/**
* The name of this surname tradition
diff --git a/app/SurnameTradition/LithuanianSurnameTradition.php b/app/SurnameTradition/LithuanianSurnameTradition.php
index c10184e587..64be8186b2 100644
--- a/app/SurnameTradition/LithuanianSurnameTradition.php
+++ b/app/SurnameTradition/LithuanianSurnameTradition.php
@@ -29,7 +29,7 @@ use Fisharebest\Webtrees\Individual;
class LithuanianSurnameTradition extends PaternalSurnameTradition
{
// Inflect a surname for wives
- private const INFLECT_WIFE = [
+ private const array INFLECT_WIFE = [
'as\b' => 'ienė',
'is\b' => 'ienė',
'ys\b' => 'ienė',
@@ -37,7 +37,7 @@ class LithuanianSurnameTradition extends PaternalSurnameTradition
];
// Inflect a surname for daughters
- private const INFLECT_DAUGHTER = [
+ private const array INFLECT_DAUGHTER = [
'a\b' => 'aitė',
'as\b' => 'aitė',
'is\b' => 'ytė',
@@ -47,7 +47,7 @@ class LithuanianSurnameTradition extends PaternalSurnameTradition
];
// Inflect a surname for males
- private const INFLECT_MALE = [
+ private const array INFLECT_MALE = [
'aitė\b' => 'as',
'ytė\b' => 'is',
'iūtė\b' => 'ius',
diff --git a/app/SurnameTradition/PolishSurnameTradition.php b/app/SurnameTradition/PolishSurnameTradition.php
index 1214b1ba15..711f7238f2 100644
--- a/app/SurnameTradition/PolishSurnameTradition.php
+++ b/app/SurnameTradition/PolishSurnameTradition.php
@@ -29,7 +29,7 @@ use Fisharebest\Webtrees\Individual;
class PolishSurnameTradition extends PaternalSurnameTradition
{
// Inflect a surname for females
- private const INFLECT_FEMALE = [
+ private const array INFLECT_FEMALE = [
'cki\b' => 'cka',
'dzki\b' => 'dzka',
'ski\b' => 'ska',
@@ -37,7 +37,7 @@ class PolishSurnameTradition extends PaternalSurnameTradition
];
// Inflect a surname for males
- private const INFLECT_MALE = [
+ private const array INFLECT_MALE = [
'cka\b' => 'cki',
'dzka\b' => 'dzki',
'ska\b' => 'ski',
diff --git a/app/Tree.php b/app/Tree.php
index 929328e41f..f4c8bd9178 100644
--- a/app/Tree.php
+++ b/app/Tree.php
@@ -37,7 +37,7 @@ use function substr_replace;
*/
class Tree
{
- private const RESN_PRIVACY = [
+ private const array RESN_PRIVACY = [
'none' => Auth::PRIV_PRIVATE,
'privacy' => Auth::PRIV_USER,
'confidential' => Auth::PRIV_NONE,
@@ -45,7 +45,7 @@ class Tree
];
// Default values for some tree preferences.
- protected const DEFAULT_PREFERENCES = [
+ protected const array DEFAULT_PREFERENCES = [
'CALENDAR_FORMAT' => 'gregorian',
'CHART_BOX_TAGS' => '',
'EXPAND_SOURCES' => '0',
diff --git a/app/View.php b/app/View.php
index 22c2122611..86e1cd7ffe 100644
--- a/app/View.php
+++ b/app/View.php
@@ -46,9 +46,9 @@ use const EXTR_OVERWRITE;
*/
class View
{
- public const NAMESPACE_SEPARATOR = '::';
+ public const string NAMESPACE_SEPARATOR = '::';
- private const TEMPLATE_EXTENSION = '.phtml';
+ private const string TEMPLATE_EXTENSION = '.phtml';
private string $name;
diff --git a/app/Webtrees.php b/app/Webtrees.php
index b57d7c7a06..116f618789 100644
--- a/app/Webtrees.php
+++ b/app/Webtrees.php
@@ -98,58 +98,58 @@ use const E_USER_DEPRECATED;
class Webtrees
{
// The root folder of this installation
- public const ROOT_DIR = __DIR__ . '/../';
+ public const string ROOT_DIR = __DIR__ . '/../';
// This is the location of system data, such as temporary and cache files.
// The system files are always in this location.
// It is also the default location of user data, such as media and GEDCOM files.
// The user files could be anywhere supported by Flysystem.
- public const DATA_DIR = self::ROOT_DIR . 'data/';
+ public const string DATA_DIR = self::ROOT_DIR . 'data/';
// Location of the file containing the database connection details.
- public const CONFIG_FILE = self::DATA_DIR . 'config.ini.php';
+ public const string CONFIG_FILE = self::DATA_DIR . 'config.ini.php';
// Location of the file that triggers maintenance mode.
- public const OFFLINE_FILE = self::DATA_DIR . 'offline.txt';
+ public const string OFFLINE_FILE = self::DATA_DIR . 'offline.txt';
// Location of our modules.
- public const MODULES_PATH = 'modules_v4/';
- public const MODULES_DIR = self::ROOT_DIR . self::MODULES_PATH;
+ public const string MODULES_PATH = 'modules_v4/';
+ public const string MODULES_DIR = self::ROOT_DIR . self::MODULES_PATH;
// Enable debugging on development builds.
- public const DEBUG = self::STABILITY !== '';
+ public const bool DEBUG = self::STABILITY !== '';
// We want to know about all PHP errors during development, and fewer in production.
- public const ERROR_REPORTING = self::DEBUG ? E_ALL : E_ALL & ~E_DEPRECATED & ~E_USER_DEPRECATED;
+ public const int ERROR_REPORTING = self::DEBUG ? E_ALL : E_ALL & ~E_DEPRECATED & ~E_USER_DEPRECATED;
// Page layouts for various page types.
- public const LAYOUT_ADMINISTRATION = 'layouts/administration';
- public const LAYOUT_AJAX = 'layouts/ajax';
- public const LAYOUT_DEFAULT = 'layouts/default';
- public const LAYOUT_ERROR = 'layouts/error';
+ public const string LAYOUT_ADMINISTRATION = 'layouts/administration';
+ public const string LAYOUT_AJAX = 'layouts/ajax';
+ public const string LAYOUT_DEFAULT = 'layouts/default';
+ public const string LAYOUT_ERROR = 'layouts/error';
// The name of the application.
- public const NAME = 'webtrees';
+ public const string NAME = 'webtrees';
// Required version of database tables/columns/indexes/etc.
- public const SCHEMA_VERSION = 45;
+ public const int SCHEMA_VERSION = 45;
// e.g. "-dev", "-alpha", "-beta", etc.
- public const STABILITY = '-dev';
+ public const string STABILITY = '-dev';
// Version number.
- public const VERSION = '2.2.1' . self::STABILITY;
+ public const string VERSION = '2.2.1' . self::STABILITY;
// Project website.
- public const URL = 'https://webtrees.net/';
+ public const string URL = 'https://webtrees.net/';
// FAQ links.
- public const URL_FAQ_EMAIL = 'https://webtrees.net/faq/email';
+ public const string URL_FAQ_EMAIL = 'https://webtrees.net/faq/email';
// GEDCOM specification.
- public const GEDCOM_PDF = 'https://webtrees.net/downloads/gedcom-5-5-1.pdf';
+ public const string GEDCOM_PDF = 'https://webtrees.net/downloads/gedcom-5-5-1.pdf';
- private const MIDDLEWARE = [
+ private const array MIDDLEWARE = [
ErrorHandler::class,
EmitResponse::class,
ReadConfigIni::class,