From d5ce773d193f2fccad0224b24b1428621efbcc98 Mon Sep 17 00:00:00 2001 From: "Matthew Wire (MJW Consulting)" Date: Tue, 8 Oct 2019 10:24:52 +0200 Subject: [PATCH] Simplify function signature as parameter is not used --- CRM/Event/Form/Registration.php | 7 +++---- CRM/Event/Form/Registration/Confirm.php | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/CRM/Event/Form/Registration.php b/CRM/Event/Form/Registration.php index 2ac4111730..1054b83b49 100644 --- a/CRM/Event/Form/Registration.php +++ b/CRM/Event/Form/Registration.php @@ -697,10 +697,9 @@ class CRM_Event_Form_Registration extends CRM_Core_Form { * Handle process after the confirmation of payment by User. * * @param int $contactID - * @param null $contribution - * @param null $payment + * @param \CRM_Contribute_BAO_Contribution $contribution */ - public function confirmPostProcess($contactID = NULL, $contribution = NULL, $payment = NULL) { + public function confirmPostProcess($contactID = NULL, $contribution = NULL) { // add/update contact information $fields = array(); unset($this->_params['note']); @@ -1598,7 +1597,7 @@ class CRM_Event_Form_Registration extends CRM_Core_Form { } $this->set('value', $value); - $this->confirmPostProcess($contactID, NULL, NULL); + $this->confirmPostProcess($contactID, NULL); //lets get additional participant id to cancel. if ($this->_allowConfirmation && is_array($cancelledIds)) { diff --git a/CRM/Event/Form/Registration/Confirm.php b/CRM/Event/Form/Registration/Confirm.php index 05b5aa02ae..6abb931883 100644 --- a/CRM/Event/Form/Registration/Confirm.php +++ b/CRM/Event/Form/Registration/Confirm.php @@ -667,7 +667,7 @@ class CRM_Event_Form_Registration_Confirm extends CRM_Event_Form_Registration { } $this->assign('register_date', $registerDate); - $this->confirmPostProcess($contactID, $contribution, $payment); + $this->confirmPostProcess($contactID, $contribution); } //handle if no additional participant. -- 2.25.1