From be7eed4ca4ecd8ce87d67191d6c902bde34f010f Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Tue, 1 Jun 2021 11:38:22 +1200 Subject: [PATCH] Make functions protected I did a universe search & determined these functions could be protected as they are not called from outside this class --- CRM/Contact/BAO/GroupContactCache.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CRM/Contact/BAO/GroupContactCache.php b/CRM/Contact/BAO/GroupContactCache.php index e7bed41265..570efd5228 100644 --- a/CRM/Contact/BAO/GroupContactCache.php +++ b/CRM/Contact/BAO/GroupContactCache.php @@ -67,7 +67,7 @@ class CRM_Contact_BAO_GroupContactCache extends CRM_Contact_DAO_GroupContactCach * @return string * the sql query which lists the groups that need to be refreshed */ - public static function groupRefreshedClause($groupIDClause = NULL, $includeHiddenGroups = FALSE): string { + protected static function groupRefreshedClause($groupIDClause = NULL, $includeHiddenGroups = FALSE): string { $smartGroupCacheTimeoutDateTime = self::getCacheInvalidDateTime(); $query = " @@ -165,7 +165,7 @@ AND ( * @param array $groupID * @param array $values */ - public static function store($groupID, &$values) { + protected static function store($groupID, &$values) { $processed = FALSE; // sort the values so we put group IDs in front and hence optimize @@ -419,7 +419,7 @@ WHERE id IN ( $groupIDs ) * * @return int */ - public static function smartGroupCacheTimeout() { + protected static function smartGroupCacheTimeout() { $config = CRM_Core_Config::singleton(); if ( -- 2.25.1