From 717fdb8a192c5d0511318aa66d79274e2963318a Mon Sep 17 00:00:00 2001 From: Aidan Saunders Date: Thu, 4 May 2017 22:44:10 +0100 Subject: [PATCH] Style fixes --- CRM/Contribute/BAO/Contribution.php | 2 +- tests/phpunit/api/v3/ContributionTest.php | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CRM/Contribute/BAO/Contribution.php b/CRM/Contribute/BAO/Contribution.php index 5b88353958..fed49664e5 100644 --- a/CRM/Contribute/BAO/Contribution.php +++ b/CRM/Contribute/BAO/Contribution.php @@ -2792,7 +2792,7 @@ INNER JOIN civicrm_activity ON civicrm_activity_contact.activity_id = civicrm_ac $values['customGroup'] = $customGroup; $values['is_pay_later'] = $this->is_pay_later; - + return $values; } diff --git a/tests/phpunit/api/v3/ContributionTest.php b/tests/phpunit/api/v3/ContributionTest.php index 5991ce10ee..aa0e7bcf5e 100644 --- a/tests/phpunit/api/v3/ContributionTest.php +++ b/tests/phpunit/api/v3/ContributionTest.php @@ -2955,7 +2955,8 @@ class api_v3_ContributionTest extends CiviUnitTestCase { 'receipt_from_email' => 'api@civicrm.org', ) ); - } catch (Exception $e) { + } + catch (Exception $e) { // Need to figure out how to stop this some other day // We don't care about the Payment Processor because this is Pay Later // The point of this test is to check we get the pay_later version of the mail @@ -2967,7 +2968,7 @@ class api_v3_ContributionTest extends CiviUnitTestCase { // Retrieve mail & check it has the pay_later_receipt info $mut->getMostRecentEmail('raw'); $mut->checkMailLog(array( - (string)$contribParams['total_amount'], + (string) $contribParams['total_amount'], $pageParams['pay_later_receipt'], ), array( 'Event', -- 2.25.1