INFRA-132 - CRM/Export - phpcbf
authorTim Otten <totten@civicrm.org>
Tue, 6 Jan 2015 21:10:53 +0000 (13:10 -0800)
committerTim Otten <totten@civicrm.org>
Tue, 6 Jan 2015 23:06:48 +0000 (15:06 -0800)
CRM/Export/Form/Select.php

index 98362b74f73950fc352cdb39bebb6e723d4e8bef..585dd0991772d19c4d83f4c0b3a8bd4d9b9a07d2 100644 (file)
@@ -115,28 +115,34 @@ class CRM_Export_Form_Select extends CRM_Core_Form {
           case 'Contribute':
             $this->_exportMode = self::CONTRIBUTE_EXPORT;
             break;
+
           case 'Member':
             $this->_exportMode = self::MEMBER_EXPORT;
             break;
+
           case 'Event':
             $this->_exportMode = self::EVENT_EXPORT;
             break;
+
           case 'Pledge':
             $this->_exportMode = self::PLEDGE_EXPORT;
             break;
+
           case 'Case':
             $this->_exportMode = self::CASE_EXPORT;
             break;
+
           case 'Grant':
             $this->_exportMode = self::GRANT_EXPORT;
             break;
+
           case 'Activity':
             $this->_exportMode = self::ACTIVITY_EXPORT;
             break;
         }
 
         $className = "CRM_{$componentName[1]}_Form_Task";
-        $className::preProcessCommon( $this, true );
+        $className::preProcessCommon( $this, TRUE );
         $values = $this->controller->exportValues('Search');
       }
       else {
@@ -177,11 +183,13 @@ class CRM_Export_Form_Select extends CRM_Core_Form {
         $this->_exportMode = self::ACTIVITY_EXPORT;
         $componentName = array('', 'Activity');
         break;
+
       case 5:
         CRM_Member_Form_Task::preProcessCommon($this, TRUE);
         $this->_exportMode = self::MEMBER_EXPORT;
         $componentName = array('', 'Member');
         break;
+
       case 6:
         CRM_Case_Form_Task::preProcessCommon($this, TRUE);
         $this->_exportMode = self::CASE_EXPORT;
@@ -409,7 +417,6 @@ FROM   {$this->_componentTable}
       $this->set('mappingId', NULL);
     }
 
-
     if ($exportOption == self::EXPORT_ALL) {
       CRM_Export_BAO_Export::exportComponents($this->_selectAll,
         $this->_componentIds,