From ae30430bba66a929ff69e63af538b2c64c1def88 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Mon, 13 Jul 2015 11:29:26 +1200 Subject: [PATCH] phpcs fix --- CRM/Member/Form/MembershipRenewal.php | 4 +--- tests/phpunit/CiviTest/CiviUnitTestCase.php | 4 ++-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/CRM/Member/Form/MembershipRenewal.php b/CRM/Member/Form/MembershipRenewal.php index 52700a4877..913add3d09 100644 --- a/CRM/Member/Form/MembershipRenewal.php +++ b/CRM/Member/Form/MembershipRenewal.php @@ -488,8 +488,6 @@ class CRM_Member_Form_MembershipRenewal extends CRM_Member_Form { * Process form submission. * * This function is also accessed by a unit test. - * - * @return array */ protected function submit() { $this->storeContactFields($this->_params); @@ -596,7 +594,7 @@ class CRM_Member_Form_MembershipRenewal extends CRM_Member_Form { $membershipSource = $this->_params['membership_source']; } - $isPending = ($this->_params['contribution_status_id'] == 2) ? TRUE :FALSE; + $isPending = ($this->_params['contribution_status_id'] == 2) ? TRUE : FALSE; list($renewMembership) = CRM_Member_BAO_Membership::renewMembership( $this->_contactID, $this->_params['membership_type_id'][1], $isTestMembership, diff --git a/tests/phpunit/CiviTest/CiviUnitTestCase.php b/tests/phpunit/CiviTest/CiviUnitTestCase.php index aa27dfda3a..dce51b4a55 100755 --- a/tests/phpunit/CiviTest/CiviUnitTestCase.php +++ b/tests/phpunit/CiviTest/CiviUnitTestCase.php @@ -1648,8 +1648,8 @@ class CiviUnitTestCase extends PHPUnit_Extensions_Database_TestCase { * @return int * id of created contribution */ - public function contributionCreate($params, $cTypeID = 1, $invoiceID = 67890, $trxnID = 12345, $paymentInstrumentID - = 1, $isFee = TRUE) { + public function contributionCreate($params, $cTypeID = 1, $invoiceID = 67890, $trxnID = 12345, + $paymentInstrumentID = 1, $isFee = TRUE) { if (!is_array($params)) { $params = array('contact_id' => $params); } -- 2.25.1