From: Eileen McNaughton Date: Sun, 13 Aug 2023 22:53:28 +0000 (+1200) Subject: dev/core#4494 Fix e-notice by removing unused variables X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=aa20cd740e199e0f8b2638748ac654b11af6a423;p=civicrm-core.git dev/core#4494 Fix e-notice by removing unused variables --- diff --git a/CRM/Event/Form/Participant.php b/CRM/Event/Form/Participant.php index c82d7a1c67..2f931a217b 100644 --- a/CRM/Event/Form/Participant.php +++ b/CRM/Event/Form/Participant.php @@ -1350,7 +1350,7 @@ class CRM_Event_Form_Participant extends CRM_Contribute_Form_AbstractEditPayment } if (!empty($params['send_receipt'])) { - $result = $this->sendReceipts($params, $contributionParams['total_amount'], $customFields, $participants, $lineItem[0], $line, $value, $additionalParticipantDetails); + $result = $this->sendReceipts($params, $contributionParams['total_amount'], $customFields, $participants, $lineItem[0], $additionalParticipantDetails); } // set the participant id if it is not set @@ -2106,14 +2106,12 @@ INNER JOIN civicrm_price_field_value value ON ( value.id = lineItem.price_field_ * @param array $customFields * @param array $participants * @param $lineItem - * @param $line - * @param $value * @param $additionalParticipantDetails * * @return array * @throws \CRM_Core_Exception */ - protected function sendReceipts($params, $total_amount, array $customFields, array $participants, $lineItem, $line, $value, $additionalParticipantDetails): array { + protected function sendReceipts($params, $total_amount, array $customFields, array $participants, $lineItem, $additionalParticipantDetails): array { $sent = []; $notSent = []; $this->assign('module', 'Event Registration');