From bb600eaee6ef75cb356c506b2943c5f7e1f0ac72 Mon Sep 17 00:00:00 2001 From: Pratiksha Dubey Date: Wed, 6 Aug 2014 16:18:53 +0530 Subject: [PATCH] VAT-498-newpull Added space in between parameters of function --- CRM/Contribute/BAO/ContributionPage.php | 6 +++--- CRM/Contribute/Form/AdditionalInfo.php | 2 +- CRM/Event/BAO/Event.php | 2 +- CRM/Event/Form/Participant.php | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/CRM/Contribute/BAO/ContributionPage.php b/CRM/Contribute/BAO/ContributionPage.php index 4f950c963e..3a38338495 100644 --- a/CRM/Contribute/BAO/ContributionPage.php +++ b/CRM/Contribute/BAO/ContributionPage.php @@ -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; } } diff --git a/CRM/Contribute/Form/AdditionalInfo.php b/CRM/Contribute/Form/AdditionalInfo.php index 24d4f4fa91..1af7b19d9f 100644 --- a/CRM/Contribute/Form/AdditionalInfo.php +++ b/CRM/Contribute/Form/AdditionalInfo.php @@ -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; diff --git a/CRM/Event/BAO/Event.php b/CRM/Event/BAO/Event.php index f50f36c31f..951060175b 100644 --- a/CRM/Event/BAO/Event.php +++ b/CRM/Event/BAO/Event.php @@ -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; diff --git a/CRM/Event/Form/Participant.php b/CRM/Event/Form/Participant.php index 6f05eb2532..8defc67e0b 100644 --- a/CRM/Event/Form/Participant.php +++ b/CRM/Event/Form/Participant.php @@ -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; -- 2.25.1