From e144ca300585071f7a6a05ae6b290e81550ea3ab Mon Sep 17 00:00:00 2001 From: Bradley Taylor Date: Sat, 29 Jan 2022 11:56:12 +0000 Subject: [PATCH] Correctly document types for class consts --- CRM/Core/I18n.php | 2 +- CRM/Utils/Recent.php | 9 ++++++++- CRM/Utils/Sort.php | 16 ++++++++-------- 3 files changed, 17 insertions(+), 10 deletions(-) diff --git a/CRM/Core/I18n.php b/CRM/Core/I18n.php index 009a800549..f6ed3dcf03 100644 --- a/CRM/Core/I18n.php +++ b/CRM/Core/I18n.php @@ -19,7 +19,7 @@ class CRM_Core_I18n { /** * Constants for communication preferences. * - * @var int + * @var string */ const NONE = 'none', AUTO = 'auto'; diff --git a/CRM/Utils/Recent.php b/CRM/Utils/Recent.php index c45a509ca8..aed16f4132 100644 --- a/CRM/Utils/Recent.php +++ b/CRM/Utils/Recent.php @@ -24,7 +24,14 @@ class CRM_Utils_Recent { * * @var string */ - const MAX_ITEMS = 30, STORE_NAME = 'CRM_Utils_Recent'; + const STORE_NAME = 'CRM_Utils_Recent'; + + /** + * Max number of recent items to store + * + * @var int + */ + const MAX_ITEMS = 30; /** * The list of recently viewed items. diff --git a/CRM/Utils/Sort.php b/CRM/Utils/Sort.php index a18e106118..a10ec52a66 100644 --- a/CRM/Utils/Sort.php +++ b/CRM/Utils/Sort.php @@ -29,14 +29,14 @@ class CRM_Utils_Sort { * * @var int */ - const ASCENDING = 1, DESCENDING = 2, DONTCARE = 4, - - /** - * The name for the sort GET/POST param - * - * @var string - */ - SORT_ID = 'crmSID', SORT_DIRECTION = 'crmSortDirection', SORT_ORDER = 'crmSortOrder'; + const ASCENDING = 1, DESCENDING = 2, DONTCARE = 4; + + /** + * The name for the sort GET/POST param + * + * @var string + */ + const SORT_ID = 'crmSID', SORT_DIRECTION = 'crmSortDirection', SORT_ORDER = 'crmSortOrder'; /** * Name of the sort function. Used to isolate session variables -- 2.25.1