diff options
| author | Greg Roach <greg@subaqua.co.uk> | 2024-11-22 23:58:56 +0000 |
|---|---|---|
| committer | Greg Roach <greg@subaqua.co.uk> | 2024-11-22 23:58:56 +0000 |
| commit | e873f434551745f888937263ff89e80db3b0f785 (patch) | |
| tree | c2ccdc2f7e9eb84a336dedcb75f4953fd46a6745 /app/Module/StatisticsChartModule.php | |
| parent | 95a8620a270e22e753770d980faee3cdf53d5566 (diff) | |
| download | webtrees-e873f434551745f888937263ff89e80db3b0f785.tar.gz webtrees-e873f434551745f888937263ff89e80db3b0f785.tar.bz2 webtrees-e873f434551745f888937263ff89e80db3b0f785.zip | |
PHP 8.3 allows class constants to have type hints
Diffstat (limited to 'app/Module/StatisticsChartModule.php')
| -rw-r--r-- | app/Module/StatisticsChartModule.php | 40 |
1 files changed, 20 insertions, 20 deletions
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.? |
