From c2d1c1c2dca2ff96501f7d47081a3eb9032cce09 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Wed, 27 Apr 2022 09:33:19 +1200 Subject: [PATCH] [REF] [Import] [Trivial] Make mapperKeys parameter optional in construct --- CRM/Activity/Import/Parser/Activity.php | 2 +- CRM/Contact/Import/Parser/Contact.php | 2 +- CRM/Contribute/Import/Parser/Contribution.php | 2 +- CRM/Custom/Import/Parser/Api.php | 2 +- CRM/Event/Import/Parser/Participant.php | 2 +- CRM/Member/Import/Parser/Membership.php | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/CRM/Activity/Import/Parser/Activity.php b/CRM/Activity/Import/Parser/Activity.php index 3468ddc5eb..2c7cce55cc 100644 --- a/CRM/Activity/Import/Parser/Activity.php +++ b/CRM/Activity/Import/Parser/Activity.php @@ -64,7 +64,7 @@ class CRM_Activity_Import_Parser_Activity extends CRM_Import_Parser { * * @param array $mapperKeys */ - public function __construct($mapperKeys) { + public function __construct($mapperKeys = []) { parent::__construct(); $this->_mapperKeys = $mapperKeys; } diff --git a/CRM/Contact/Import/Parser/Contact.php b/CRM/Contact/Import/Parser/Contact.php index 2f5b5681ea..8dae73a4d5 100644 --- a/CRM/Contact/Import/Parser/Contact.php +++ b/CRM/Contact/Import/Parser/Contact.php @@ -166,7 +166,7 @@ class CRM_Contact_Import_Parser_Contact extends CRM_Import_Parser { * @param array $mapperRelatedContactWebsiteType */ public function __construct( - $mapperKeys, $mapperLocType = [], $mapperPhoneType = [], $mapperImProvider = [], $mapperRelated = [], $mapperRelatedContactType = [], $mapperRelatedContactDetails = [], $mapperRelatedContactLocType = [], $mapperRelatedContactPhoneType = [], $mapperRelatedContactImProvider = [], + $mapperKeys = [], $mapperLocType = [], $mapperPhoneType = [], $mapperImProvider = [], $mapperRelated = [], $mapperRelatedContactType = [], $mapperRelatedContactDetails = [], $mapperRelatedContactLocType = [], $mapperRelatedContactPhoneType = [], $mapperRelatedContactImProvider = [], $mapperWebsiteType = [], $mapperRelatedContactWebsiteType = [] ) { parent::__construct(); diff --git a/CRM/Contribute/Import/Parser/Contribution.php b/CRM/Contribute/Import/Parser/Contribution.php index ee2385aed2..d68e026608 100644 --- a/CRM/Contribute/Import/Parser/Contribution.php +++ b/CRM/Contribute/Import/Parser/Contribution.php @@ -42,7 +42,7 @@ class CRM_Contribute_Import_Parser_Contribution extends CRM_Import_Parser { * @param null $mapperPhoneType * @param array $mapperSoftCreditType */ - public function __construct(&$mapperKeys, $mapperSoftCredit = [], $mapperPhoneType = NULL, $mapperSoftCreditType = []) { + public function __construct(&$mapperKeys = [], $mapperSoftCredit = [], $mapperPhoneType = NULL, $mapperSoftCreditType = []) { parent::__construct(); $this->_mapperKeys = &$mapperKeys; $this->_mapperSoftCredit = &$mapperSoftCredit; diff --git a/CRM/Custom/Import/Parser/Api.php b/CRM/Custom/Import/Parser/Api.php index 32428eb6e3..6ad43712d6 100644 --- a/CRM/Custom/Import/Parser/Api.php +++ b/CRM/Custom/Import/Parser/Api.php @@ -52,7 +52,7 @@ class CRM_Custom_Import_Parser_Api extends CRM_Import_Parser { * @param null $mapperLocType * @param null $mapperPhoneType */ - public function __construct(&$mapperKeys, $mapperLocType = NULL, $mapperPhoneType = NULL) { + public function __construct(&$mapperKeys = [], $mapperLocType = NULL, $mapperPhoneType = NULL) { parent::__construct(); $this->_mapperKeys = &$mapperKeys; } diff --git a/CRM/Event/Import/Parser/Participant.php b/CRM/Event/Import/Parser/Participant.php index 8f6ae41ee7..d279f04841 100644 --- a/CRM/Event/Import/Parser/Participant.php +++ b/CRM/Event/Import/Parser/Participant.php @@ -72,7 +72,7 @@ class CRM_Event_Import_Parser_Participant extends CRM_Import_Parser { * * @param array $mapperKeys */ - public function __construct(&$mapperKeys) { + public function __construct(&$mapperKeys = []) { parent::__construct(); $this->_mapperKeys = &$mapperKeys; } diff --git a/CRM/Member/Import/Parser/Membership.php b/CRM/Member/Import/Parser/Membership.php index 7636b53847..5c90429fb6 100644 --- a/CRM/Member/Import/Parser/Membership.php +++ b/CRM/Member/Import/Parser/Membership.php @@ -72,7 +72,7 @@ class CRM_Member_Import_Parser_Membership extends CRM_Import_Parser { * * @param $mapperKeys */ - public function __construct($mapperKeys) { + public function __construct($mapperKeys = []) { parent::__construct(); $this->_mapperKeys = $mapperKeys; } -- 2.25.1