Make otherwise unused form function private
authorEileen McNaughton <emcnaughton@wikimedia.org>
Thu, 19 Jan 2023 21:25:23 +0000 (10:25 +1300)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Thu, 19 Jan 2023 21:25:23 +0000 (10:25 +1300)
CRM/Contribute/Form/ContributionBase.php

index 80a51f4cb93fd27afcba2e2b9e75271d077370fd..c31e6ee9afb8e9a1265d9a0e13c367da8e1b8a4e 100644 (file)
@@ -393,7 +393,7 @@ class CRM_Contribute_Form_ContributionBase extends CRM_Core_Form {
             $pledgeId,
             'campaign_id'
           );
-          self::authenticatePledgeUser();
+          $this->authenticatePledgeUser();
         }
       }
       $this->set('values', $this->_values);
@@ -1052,7 +1052,7 @@ class CRM_Contribute_Form_ContributionBase extends CRM_Core_Form {
    *
    * @throws \CRM_Core_Exception
    */
-  public function authenticatePledgeUser() {
+  private function authenticatePledgeUser(): void {
     //get the userChecksum and contact id
     $userChecksum = CRM_Utils_Request::retrieve('cs', 'String', $this);
     $contactID = CRM_Utils_Request::retrieve('cid', 'Positive', $this);