Skip to content

Commit

Permalink
Merge pull request #23132 from eileenmcnaughton/imp
Browse files Browse the repository at this point in the history
Remove unnecessary pass-by-ref
  • Loading branch information
colemanw authored Apr 9, 2022
2 parents 5ffc164 + 6d283eb commit 7603932
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CRM/Activity/Import/Parser.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion CRM/Contribute/Import/Parser/Contribution.php
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ public function __construct(&$mapperKeys, $mapperSoftCredit = [], $mapperPhoneTy
public function run(
$fileName,
$separator,
&$mapper,
$mapper,
$skipColumnHeader = FALSE,
$mode = self::MODE_PREVIEW,
$contactType = self::CONTACT_INDIVIDUAL,
Expand Down
2 changes: 1 addition & 1 deletion CRM/Custom/Import/Parser.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion CRM/Event/Import/Parser.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion CRM/Import/Form/DataSource.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ protected function submitFileForMapping($parserClassName, $entity = NULL) {
$parser->setMaxLinesToProcess(100);
$parser->run($fileName,
$separator,
$mapper,
[],
$skipColumnHeader,
CRM_Import_Parser::MODE_MAPFIELD,
$this->get('contactType')
Expand Down

0 comments on commit 7603932

Please sign in to comment.