VAT-498-newpull Added space in between parameters of function
authorPratiksha Dubey <pratiksha.dubey@webaccessglobal.com>
Wed, 6 Aug 2014 10:48:53 +0000 (16:18 +0530)
committerPratiksha Dubey <pratiksha.dubey@webaccessglobal.com>
Wed, 6 Aug 2014 10:48:53 +0000 (16:18 +0530)
CRM/Contribute/BAO/ContributionPage.php
CRM/Contribute/Form/AdditionalInfo.php
CRM/Event/BAO/Event.php
CRM/Event/Form/Participant.php

index 4f950c963e43d63ae68235a45a30c1a5a75c012c..3a38338495f348e7f399e5ee193c83c9ca32c906 100644 (file)
@@ -396,7 +396,7 @@ class CRM_Contribute_BAO_ContributionPage extends CRM_Contribute_DAO_Contributio
         //send email with pdf invoice
         $template = CRM_Core_Smarty::singleton( );
         $taxAmt = $template->get_template_vars('dataArray');
-        $prefixValue = CRM_Core_BAO_Setting::getItem(CRM_Core_BAO_Setting::CONTRIBUTE_PREFERENCES_NAME,'contribution_invoice_settings');
+        $prefixValue = CRM_Core_BAO_Setting::getItem(CRM_Core_BAO_Setting::CONTRIBUTE_PREFERENCES_NAME, 'contribution_invoice_settings');
         $invoicing = CRM_Utils_Array::value('invoicing', $prefixValue);
         if (count($taxAmt) > 0 && (isset($invoicing) && isset($prefixValue['is_email_pdf']))) {
           $sendTemplateParams['isEmailPdf'] = True; 
@@ -902,14 +902,14 @@ LEFT JOIN  civicrm_premiums            ON ( civicrm_premiums.entity_id = civicrm
    * @param int $userID contact id for contributor
    * @return array $pdfHtml
    */
-  static function addInvoicePdfToEmail($contributionId,$userID) {
+  static function addInvoicePdfToEmail($contributionId, $userID) {
     $contributionID = array($contributionId);
     $contactId = array($userID);
     $pdfParams = array(
       'output' => 'pdf_invoice',
       'forPage' => 'confirmpage'
     );
-    $pdfHtml= CRM_Contribute_Form_Task_Invoice::printPDF($contributionID, $pdfParams, $contactId);
+    $pdfHtml = CRM_Contribute_Form_Task_Invoice::printPDF($contributionID, $pdfParams, $contactId);
     return $pdfHtml;
   }
 }
index 24d4f4fa91288b9e0c61480e68f513c54951c0a0..1af7b19d9f7c8c571b2f896df384ee7a3c3ea24e 100644 (file)
@@ -476,7 +476,7 @@ class CRM_Contribute_Form_AdditionalInfo {
      $template = CRM_Core_Smarty::singleton( );
      $taxAmt = $template->get_template_vars('dataArray');
      $eventTaxAmt = $template->get_template_vars('totalTaxAmount');
-     $prefixValue = CRM_Core_BAO_Setting::getItem(CRM_Core_BAO_Setting::CONTRIBUTE_PREFERENCES_NAME,'contribution_invoice_settings');
+     $prefixValue = CRM_Core_BAO_Setting::getItem(CRM_Core_BAO_Setting::CONTRIBUTE_PREFERENCES_NAME, 'contribution_invoice_settings');
      $invoicing = CRM_Utils_Array::value('invoicing', $prefixValue);
      if ((count($taxAmt) > 0 || !empty($eventTaxAmt)) && (isset($invoicing) && isset($prefixValue['is_email_pdf']))) {
        $isEmailPdf = True;
index f50f36c31fe7989c64de4eb3504eaffb73ba3eba..951060175bbfc432f6b11efdd0b229081c44ecbc 100644 (file)
@@ -1194,7 +1194,7 @@ WHERE civicrm_event.is_active = 1
           // append invoice pdf to email
           $template = CRM_Core_Smarty::singleton( );
           $taxAmt = $template->get_template_vars('totalTaxAmount');
-          $prefixValue = CRM_Core_BAO_Setting::getItem(CRM_Core_BAO_Setting::CONTRIBUTE_PREFERENCES_NAME,'contribution_invoice_settings');
+          $prefixValue = CRM_Core_BAO_Setting::getItem(CRM_Core_BAO_Setting::CONTRIBUTE_PREFERENCES_NAME, 'contribution_invoice_settings');
           $invoicing = CRM_Utils_Array::value('invoicing', $prefixValue);
           if ($taxAmt && (isset($invoicing) && isset($prefixValue['is_email_pdf'])) ) {
             $sendTemplateParams['isEmailPdf'] = True;
index 6f05eb25329a48c2175fd8d66fa6a14285eda734..8defc67e0b9bb1d86652da225b5af787e52cea8b 100644 (file)
@@ -1690,7 +1690,7 @@ class CRM_Event_Form_Participant extends CRM_Contact_Form_Task {
         $contributionId = CRM_Core_DAO::getFieldValue('CRM_Event_DAO_ParticipantPayment',
                                                       $this->_id, 'contribution_id', 'participant_id'
                                                       );
-        $prefixValue = CRM_Core_BAO_Setting::getItem(CRM_Core_BAO_Setting::CONTRIBUTE_PREFERENCES_NAME,'contribution_invoice_settings');
+        $prefixValue = CRM_Core_BAO_Setting::getItem(CRM_Core_BAO_Setting::CONTRIBUTE_PREFERENCES_NAME, 'contribution_invoice_settings');
         $invoicing = CRM_Utils_Array::value('invoicing', $prefixValue);
         if (count($taxAmt) > 0 && (isset($invoicing) && isset($prefixValue['is_email_pdf']))) {
           $sendTemplateParams['isEmailPdf'] = True;