[REF] [Import] [Trivial] Make mapperKeys parameter optional in construct
authorEileen McNaughton <emcnaughton@wikimedia.org>
Tue, 26 Apr 2022 21:33:19 +0000 (09:33 +1200)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Tue, 26 Apr 2022 21:33:19 +0000 (09:33 +1200)
CRM/Activity/Import/Parser/Activity.php
CRM/Contact/Import/Parser/Contact.php
CRM/Contribute/Import/Parser/Contribution.php
CRM/Custom/Import/Parser/Api.php
CRM/Event/Import/Parser/Participant.php
CRM/Member/Import/Parser/Membership.php

index 3468ddc5ebf29900dbc97a9aa111be2581d1a705..2c7cce55cc74bb1b3351316417184375664fc237 100644 (file)
@@ -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;
   }
index 2f5b5681ea9910005966341d69dedf09cf1d6152..8dae73a4d597afba22456b134d25fdf05abf3b13 100644 (file)
@@ -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();
index ee2385aed2f7f02f174113e22ae0c5cce8df220b..d68e0266085e9085b6714b353d967758d8ba91e9 100644 (file)
@@ -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;
index 32428eb6e3e3c0300d0f245f18bedcd1d8a76577..6ad43712d6875328d6ece2150f6f15162aad1fa2 100644 (file)
@@ -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;
   }
index 8f6ae41ee745a2658b51f93e43ee65860e33448a..d279f048419eb9ee33af5f30f8f506105c90d35b 100644 (file)
@@ -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;
   }
index 7636b5384788088feebeef832587ea22d8d48ed0..5c90429fb66f1288cbb69e4255b4045284fe0c65 100644 (file)
@@ -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;
   }