CRM-12468 preliminary tidy up - whitespace, missing ts
authoreileen <eileen@fuzion.co.nz>
Tue, 30 Apr 2013 01:07:33 +0000 (13:07 +1200)
committereileen <eileen@fuzion.co.nz>
Tue, 30 Apr 2013 01:07:33 +0000 (13:07 +1200)
CRM/Report/Form/Pledge/Pbnp.php

index 8484de5a67e2486202950e0d5cafd0cdd5838512..c47811afe1eb421ae5daf87eba72f61fccba4c9f 100644 (file)
@@ -41,10 +41,10 @@ class CRM_Report_Form_Pledge_Pbnp extends CRM_Report_Form {
     'pieChart' => 'Pie Chart',
   );
   public $_drilldownReport = array('pledge/summary' => 'Link to Detail Report');
-  
+
   protected $_customGroupExtends = array(
     'Pledge');
-  
+
   function __construct() {
     $this->_columns = array(
       'civicrm_contact' =>
@@ -96,7 +96,7 @@ class CRM_Report_Form_Pledge_Pbnp extends CRM_Report_Form {
         array(
           'pledge_create_date' =>
           array(
-            'title' => 'Pledge Made',
+            'title' => ts('Pledge Made'),
             'operatorType' => CRM_Report_Form::OP_DATE,
           ),
           'currency' =>
@@ -223,9 +223,9 @@ class CRM_Report_Form_Pledge_Pbnp extends CRM_Report_Form {
 
     $this->_from = "
         FROM civicrm_contact {$this->_aliases['civicrm_contact']} {$this->_aclFrom}
-             INNER JOIN civicrm_pledge  {$this->_aliases['civicrm_pledge']} 
+             INNER JOIN civicrm_pledge  {$this->_aliases['civicrm_pledge']}
                         ON ({$this->_aliases['civicrm_pledge']}.contact_id =
-                            {$this->_aliases['civicrm_contact']}.id)  AND 
+                            {$this->_aliases['civicrm_contact']}.id)  AND
                             {$this->_aliases['civicrm_pledge']}.status_id IN ( {$statusIds} )
              LEFT  JOIN civicrm_pledge_payment {$this->_aliases['civicrm_pledge_payment']}
                         ON ({$this->_aliases['civicrm_pledge']}.id =
@@ -234,8 +234,8 @@ class CRM_Report_Form_Pledge_Pbnp extends CRM_Report_Form {
     // include address field if address column is to be included
     if ($this->_addressField) {
       $this->_from .= "
-             LEFT  JOIN civicrm_address {$this->_aliases['civicrm_address']} 
-                        ON ({$this->_aliases['civicrm_contact']}.id = 
+             LEFT  JOIN civicrm_address {$this->_aliases['civicrm_address']}
+                        ON ({$this->_aliases['civicrm_contact']}.id =
                             {$this->_aliases['civicrm_address']}.contact_id) AND
                             {$this->_aliases['civicrm_address']}.is_primary = 1\n";
     }
@@ -243,16 +243,16 @@ class CRM_Report_Form_Pledge_Pbnp extends CRM_Report_Form {
     // include email field if email column is to be included
     if ($this->_emailField) {
       $this->_from .= "
-            LEFT  JOIN civicrm_email {$this->_aliases['civicrm_email']} 
-                       ON ({$this->_aliases['civicrm_contact']}.id = 
-                           {$this->_aliases['civicrm_email']}.contact_id) AND 
+            LEFT  JOIN civicrm_email {$this->_aliases['civicrm_email']}
+                       ON ({$this->_aliases['civicrm_contact']}.id =
+                           {$this->_aliases['civicrm_email']}.contact_id) AND
                            {$this->_aliases['civicrm_email']}.is_primary = 1\n";
     }
   }
 
   function groupBy() {
     $this->_groupBy = "
-         GROUP BY {$this->_aliases['civicrm_pledge']}.contact_id, 
+         GROUP BY {$this->_aliases['civicrm_pledge']}.contact_id,
                   {$this->_aliases['civicrm_pledge']}.id,
                   {$this->_aliases['civicrm_pledge']}.currency";
   }
@@ -307,7 +307,7 @@ class CRM_Report_Form_Pledge_Pbnp extends CRM_Report_Form {
       //handle the Financial Type Ids
       if (array_key_exists('civicrm_pledge_financial_type_id', $row)) {
         if ($value = $row['civicrm_pledge_financial_type_id']) {
-          $rows[$rowNum]['civicrm_pledge_financial_type_id'] = 
+          $rows[$rowNum]['civicrm_pledge_financial_type_id'] =
             CRM_Contribute_PseudoConstant::financialType($value, false);
         }
         $entryFound = TRUE;