From 5a0a579e9b212c590c85949072b3d38ae7e60a48 Mon Sep 17 00:00:00 2001 From: Darrick Servis Date: Sat, 28 May 2022 20:15:47 -0700 Subject: [PATCH] Fix style errors --- CRM/Contact/Import/Form/MapField.php | 2 +- CRM/Import/ImportProcessor.php | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/CRM/Contact/Import/Form/MapField.php b/CRM/Contact/Import/Form/MapField.php index 68234b2360..d7dea49ca7 100644 --- a/CRM/Contact/Import/Form/MapField.php +++ b/CRM/Contact/Import/Form/MapField.php @@ -299,7 +299,7 @@ class CRM_Contact_Import_Form_MapField extends CRM_Import_Form_MapField { if (!empty($mapper)) { $last_key = array_key_last($mapper[$i]); } - else if ($this->getSubmittedValue('savedMapping') && $processor->getFieldName($i)) { + elseif ($this->getSubmittedValue('savedMapping') && $processor->getFieldName($i)) { $defaults["mapper[$i]"] = $processor->getSavedQuickformDefaultsForColumn($i); $last_key = array_key_last($defaults["mapper[$i]"]) ?? 0; } diff --git a/CRM/Import/ImportProcessor.php b/CRM/Import/ImportProcessor.php index 7e3ed3b44c..fcdb58255b 100644 --- a/CRM/Import/ImportProcessor.php +++ b/CRM/Import/ImportProcessor.php @@ -564,18 +564,18 @@ class CRM_Import_ImportProcessor { if ($this->getValidRelationshipKey($column)) { $fieldMapping[] = $this->getValidRelationshipKey($column); - } - - // $sel1 + } + + // $sel1 $fieldMapping[] = $this->getFieldName($column); - + // $sel2 if ($this->getWebsiteTypeID($column)) { $fieldMapping[] = $this->getWebsiteTypeID($column); - } - else if ($this->getLocationTypeID($column)) { + } + elseif ($this->getLocationTypeID($column)) { $fieldMapping[] = $this->getLocationTypeID($column); - } + } // $sel3 if ($this->getPhoneOrIMTypeID($column)) { -- 2.25.1