Remove unnecessary pass-by-ref
authorEileen McNaughton <emcnaughton@wikimedia.org>
Thu, 7 Apr 2022 23:45:09 +0000 (11:45 +1200)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Fri, 8 Apr 2022 03:10:01 +0000 (15:10 +1200)
CRM/Activity/Import/Parser.php
CRM/Contribute/Import/Parser/Contribution.php
CRM/Custom/Import/Parser.php
CRM/Event/Import/Parser.php
CRM/Import/Form/DataSource.php

index 9669df0ff3a72d7190eb361608d65f8cd2fec90f..6e4d290bf594046c4f1b4e32ce022c1402cd90f7 100644 (file)
@@ -59,7 +59,7 @@ abstract class CRM_Activity_Import_Parser extends CRM_Import_Parser {
   public function run(
     array $fileName,
     $separator,
-    &$mapper,
+    $mapper,
     $skipColumnHeader = FALSE,
     $mode = self::MODE_PREVIEW,
     $onDuplicate = self::DUPLICATE_SKIP,
index f08b2104422df24c67b206d986c7767eff4f4bc6..b7ce5392c6dd923eda8b231bf9b4b37a74b6b4e7 100644 (file)
@@ -152,7 +152,7 @@ class CRM_Contribute_Import_Parser_Contribution extends CRM_Import_Parser {
   public function run(
     $fileName,
     $separator,
-    &$mapper,
+    $mapper,
     $skipColumnHeader = FALSE,
     $mode = self::MODE_PREVIEW,
     $contactType = self::CONTACT_INDIVIDUAL,
index 91847a14725d840e15db54257dff850315b50e11..7ac8b810bfeac8e75160d95a50aae730df47ce64 100644 (file)
@@ -59,7 +59,7 @@ abstract class CRM_Custom_Import_Parser extends CRM_Import_Parser {
   public function run(
     $fileName,
     $separator,
-    &$mapper,
+    $mapper,
     $skipColumnHeader = FALSE,
     $mode = self::MODE_PREVIEW,
     $contactType = self::CONTACT_INDIVIDUAL,
index ee9f8ba179823172c090182f2e7a857a428b4ac2..ee1ddff787d6bad3d1a54f198d5f261e84536b49 100644 (file)
@@ -61,7 +61,7 @@ abstract class CRM_Event_Import_Parser extends CRM_Import_Parser {
   public function run(
     $fileName,
     $separator,
-    &$mapper,
+    $mapper,
     $skipColumnHeader = FALSE,
     $mode = self::MODE_PREVIEW,
     $contactType = self::CONTACT_INDIVIDUAL,
index e2e3e2d6f73d7c4fe471c6a8ec0d8bde96376edc..36de82c71fdfbac56fb53f07da81333a6eb71b7f 100644 (file)
@@ -150,7 +150,7 @@ abstract class CRM_Import_Form_DataSource extends CRM_Core_Form {
     $parser->setMaxLinesToProcess(100);
     $parser->run($fileName,
       $separator,
-      $mapper,
+      [],
       $skipColumnHeader,
       CRM_Import_Parser::MODE_MAPFIELD,
       $this->get('contactType')