From 6f78073da7aac957bf6bc3c4e0a4f826d865459d Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Sun, 15 Oct 2023 07:49:23 +1300 Subject: [PATCH] Remove no-longer-used parameters from function signature --- CRM/Event/Form/Participant.php | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/CRM/Event/Form/Participant.php b/CRM/Event/Form/Participant.php index d05dbc9a04..92680aa1ef 100644 --- a/CRM/Event/Form/Participant.php +++ b/CRM/Event/Form/Participant.php @@ -846,7 +846,7 @@ class CRM_Event_Form_Participant extends CRM_Contribute_Form_AbstractEditPayment $params['total_amount'] = CRM_Utils_Rule::cleanMoney($params['total_amount']); } if ($this->_isPaidEvent) { - [$contributionParams, $lineItem, $additionalParticipantDetails, $params] = $this->preparePaidEventProcessing($params); + [$contributionParams, $lineItem, $params] = $this->preparePaidEventProcessing($params); } $this->_params = $params; @@ -1202,7 +1202,7 @@ class CRM_Event_Form_Participant extends CRM_Contribute_Form_AbstractEditPayment } if (!empty($params['send_receipt'])) { - $result = $this->sendReceipts($params, $participants, $lineItem[0] ?? [], $additionalParticipantDetails ?? []); + $result = $this->sendReceipts($params, $participants); } // set the participant id if it is not set @@ -1531,7 +1531,7 @@ class CRM_Event_Form_Participant extends CRM_Contribute_Form_AbstractEditPayment } } - return [$contributionParams, $lineItem, $additionalParticipantDetails, $params]; + return [$contributionParams, $lineItem, $params]; } /** @@ -1893,14 +1893,12 @@ INNER JOIN civicrm_price_field_value value ON ( value.id = lineItem.price_field_ /** * @param $params * @param array $participants - * @param $lineItem - * @param $additionalParticipantDetails * * @return array * @throws \CRM_Core_Exception * @throws \Brick\Money\Exception\UnknownCurrencyException */ - protected function sendReceipts($params, array $participants, $lineItem, $additionalParticipantDetails): array { + protected function sendReceipts($params, array $participants): array { $sent = []; $notSent = []; $this->assignEventDetailsToTpl($params['event_id'], CRM_Utils_Array::value('role_id', $params), CRM_Utils_Array::value('receipt_text', $params)); -- 2.25.1