Remove never-used variables
authorEileen McNaughton <emcnaughton@wikimedia.org>
Fri, 3 Nov 2023 02:41:53 +0000 (15:41 +1300)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Fri, 3 Nov 2023 02:41:53 +0000 (15:41 +1300)
CRM/Core/Payment/ProcessorForm.php

index 381090f7aa93fc56926131dbd2a9ea3bbcc1baaf..9b9f929b7a45f39011b48cd6931c4b8db56487c4 100644 (file)
@@ -25,13 +25,11 @@ class CRM_Core_Payment_ProcessorForm {
 
   /**
    * @param CRM_Contribute_Form_Contribution_Main|CRM_Event_Form_Registration_Register|CRM_Financial_Form_Payment $form
-   * @param null $type
-   * @param null $mode
    *
    * @throws Exception
    */
-  public static function preProcess(&$form, $type = NULL, $mode = NULL) {
-    $type = $type ?: CRM_Utils_Request::retrieve('type', 'String', $form);
+  public static function preProcess($form) {
+    $type = CRM_Utils_Request::retrieve('type', 'String', $form);
     if ($type) {
       // @todo not sure when this would be true. Never passed in.
       $form->_paymentProcessor = CRM_Financial_BAO_PaymentProcessor::getPayment($type, $form->_mode);