Cleanup unnecessary variables
authorEileen McNaughton <emcnaughton@wikimedia.org>
Wed, 6 Apr 2022 04:25:13 +0000 (16:25 +1200)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Wed, 6 Apr 2022 04:25:13 +0000 (16:25 +1200)
CRM/Contribute/Import/Parser/Contribution.php

index 3845ce2e5b24365e2571cff849419bc2be35b928..2e334086d15e7be12a9a0ca0d5b66ea42c1987ec 100644 (file)
@@ -154,11 +154,9 @@ class CRM_Contribute_Import_Parser_Contribution extends CRM_Contribute_Import_Pa
    *   the result of this processing
    */
   public function summary(&$values) {
-    $erroneousField = NULL;
-    $response = $this->setActiveFieldValues($values, $erroneousField);
+    $this->setActiveFieldValues($values);
 
-    $params = &$this->getActiveFieldParams();
-    $errorMessage = NULL;
+    $params = $this->getActiveFieldParams();
 
     //for date-Formats
     $errorMessage = implode('; ', $this->formatDateFields($params));