From 64e1d541f16febede86906bdc931ef3e3a2a5ac6 Mon Sep 17 00:00:00 2001 From: Seamus Lee Date: Thu, 17 Mar 2022 20:53:17 +1100 Subject: [PATCH] Fix issues picked up by stylechecker --- CRM/Event/Import/Parser/Participant.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CRM/Event/Import/Parser/Participant.php b/CRM/Event/Import/Parser/Participant.php index a60fba680b..26679da936 100644 --- a/CRM/Event/Import/Parser/Participant.php +++ b/CRM/Event/Import/Parser/Participant.php @@ -295,7 +295,7 @@ class CRM_Event_Import_Parser_Participant extends CRM_Event_Import_Parser { else { $eventTitle = $params['event_title']; $params['participant_role_id'] = CRM_Core_DAO::singleValueQuery('SELECT default_role_id FROM civicrm_event WHERE title = %1', [ - 1 => [$eventTitle, 'String'] + 1 => [$eventTitle, 'String'], ]); } } @@ -551,7 +551,7 @@ class CRM_Event_Import_Parser_Participant extends CRM_Event_Import_Parser { return civicrm_api3_create_error("Event ID is not valid: $value"); } $svq = CRM_Core_DAO::singleValueQuery('SELECT id FROM civicrm_event WHERE id = %1', [ - 1 => [$value, 'Integer'] + 1 => [$value, 'Integer'], ]); if (!$svq) { return civicrm_api3_create_error("Invalid Event ID: There is no event record with event_id = $value."); -- 2.25.1