Skip to content

Commit

Permalink
[Ref] remove never-passed param
Browse files Browse the repository at this point in the history
Removes a parameter that is never passed in
  • Loading branch information
eileenmcnaughton committed May 31, 2021
1 parent 4c2c478 commit ffc6b13
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions CRM/Contact/BAO/GroupContactCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,14 +99,12 @@ public static function groupRefreshedClause($groupIDClause = NULL, $includeHidde
*
* @param int $groupID
* The group ID.
* @param bool $includeHiddenGroups
* Hidden groups are excluded by default.
*
* @return string
* the sql query which lists the groups that need to be refreshed
*/
public static function shouldGroupBeRefreshed($groupID, $includeHiddenGroups = FALSE) {
$query = self::groupRefreshedClause("g.id = %1", $includeHiddenGroups);
public static function shouldGroupBeRefreshed($groupID): string {
$query = self::groupRefreshedClause('g.id = %1');
$params = [1 => [$groupID, 'Integer']];

// if the query returns the group ID, it means the group is a valid candidate for refreshing
Expand Down

0 comments on commit ffc6b13

Please sign in to comment.