INFRA-132 - CRM/Event - phpcbf
[civicrm-core.git] / CRM / Contact / Import / Parser.php
index 1a615ac720086ba574a544691cd79c53562f4c43..24006dc1964e5385d447f53c2147d8391c33717d 100644 (file)
@@ -238,7 +238,7 @@ abstract class CRM_Contact_Import_Parser extends CRM_Import_Parser {
             $estimatedTime = $estimatedTime - ($estMinutes * 60);
           }
           $timeFormatted .= round($estimatedTime) . ' ' . ts('seconds');
-          $processedPercent = (int )(($this->_rowCount * 100) / $totalRowCount);
+          $processedPercent = (int ) (($this->_rowCount * 100) / $totalRowCount);
           $statusMsg = ts('%1 of %2 records - %3 remaining',
             array(1 => $this->_rowCount, 2 => $totalRowCount, 3 => $timeFormatted)
           );
@@ -248,7 +248,7 @@ abstract class CRM_Contact_Import_Parser extends CRM_Import_Parser {
 </div>
 ";
 
-          $contents = json_encode (array($processedPercent, $status));
+          $contents = json_encode(array($processedPercent, $status));
 
           file_put_contents($statusFile, $contents);
 
@@ -334,7 +334,6 @@ abstract class CRM_Contact_Import_Parser extends CRM_Import_Parser {
             } */
     }
 
-
     if ($mode == self::MODE_PREVIEW || $mode == self::MODE_IMPORT) {
       $customHeaders = $mapper;
 
@@ -451,7 +450,8 @@ abstract class CRM_Contact_Import_Parser extends CRM_Import_Parser {
   /**
    * Set IM Service Provider type fields
    *
-   * @param array $elements IM service provider type ids
+   * @param array $elements
+   *   IM service provider type ids.
    *
    * @return void
    */
@@ -518,7 +518,8 @@ abstract class CRM_Contact_Import_Parser extends CRM_Import_Parser {
   /**
    * Set IM Service Provider type fields for related contacts
    *
-   * @param array $elements IM service provider type ids of related contact
+   * @param array $elements
+   *   IM service provider type ids of related contact.
    *
    * @return void
    */