diff --git a/CRM/Civicase/Hook/Tokens/AddCaseCustomFieldsTokenValues.php b/CRM/Civicase/Hook/Tokens/AddCaseCustomFieldsTokenValues.php index 405e9dbd0..57c2c563e 100644 --- a/CRM/Civicase/Hook/Tokens/AddCaseCustomFieldsTokenValues.php +++ b/CRM/Civicase/Hook/Tokens/AddCaseCustomFieldsTokenValues.php @@ -68,7 +68,7 @@ public static function evaluateCaseCustomFieldsTokens(TokenValueEvent $e) { * Detects the token activity is triggered by webform. */ private static function isWebform() { - return isset($_POST['form_id']) && stripos($_POST['form_id'], 'webform_client_form_'); + return isset($_POST['form_id']) && stripos($_POST['form_id'], 'webform_client_form_') !== FALSE; } } diff --git a/CRM/Civicase/Hook/Tokens/AddCaseTokenCategory.php b/CRM/Civicase/Hook/Tokens/AddCaseTokenCategory.php index 110dd6378..c00087b5a 100644 --- a/CRM/Civicase/Hook/Tokens/AddCaseTokenCategory.php +++ b/CRM/Civicase/Hook/Tokens/AddCaseTokenCategory.php @@ -16,7 +16,8 @@ class CRM_Civicase_Hook_Tokens_AddCaseTokenCategory { * Service for fetching contact custom fields. */ public function __construct( - private CRM_Civicase_Service_CaseCustomFieldsProvider $caseCustomFieldsService) { + private CRM_Civicase_Service_CaseCustomFieldsProvider $caseCustomFieldsService, + ) { $this->caseCustomFieldsService = $caseCustomFieldsService; }