X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FContact%2FImport%2FParser.php;h=c8cfc0a84f82e9ead67314306b95a1cc45a58957;hb=bf6a7dba924fa32932a3a10e3d5f62b0d967f78a;hp=c9d41c2cb1b101abacf3b7e412d3b8030329c089;hpb=f6b24928a834511712ba26df3ebfe0662ccba6e6;p=civicrm-core.git diff --git a/CRM/Contact/Import/Parser.php b/CRM/Contact/Import/Parser.php index c9d41c2cb1..c8cfc0a84f 100644 --- a/CRM/Contact/Import/Parser.php +++ b/CRM/Contact/Import/Parser.php @@ -37,18 +37,20 @@ abstract class CRM_Contact_Import_Parser extends CRM_Import_Parser { /** * Total number of lines in file * - * @var integer + * @var int */ protected $_rowCount; /** * Running total number of un-matched Contacts. + * * @var int */ protected $_unMatchCount; /** - * Array of unmatched lines + * Array of unmatched lines. + * * @var array */ protected $_unMatch; @@ -1345,7 +1347,9 @@ abstract class CRM_Contact_Import_Parser extends CRM_Import_Parser { * Input values * @param string $entity * - address, email, phone - * @param int|NULL $contactID + * @param int|null $contactID + * + * @throws \CiviCRM_API3_Exception */ protected function fillPrimary(&$params, $values, $entity, $contactID) { if ($values['location_type_id'] === 'Primary') { @@ -1354,7 +1358,7 @@ abstract class CRM_Contact_Import_Parser extends CRM_Import_Parser { 'return' => 'location_type_id', 'contact_id' => $contactID, 'is_primary' => 1, - 'sequential' => 1 + 'sequential' => 1, ]); } $defaultLocationType = CRM_Core_BAO_LocationType::getDefault();