phpcs fix
authorEileen McNaughton <eileen@fuzion.co.nz>
Sun, 12 Jul 2015 23:29:26 +0000 (11:29 +1200)
committerEileen McNaughton <eileen@fuzion.co.nz>
Sun, 12 Jul 2015 23:29:26 +0000 (11:29 +1200)
CRM/Member/Form/MembershipRenewal.php
tests/phpunit/CiviTest/CiviUnitTestCase.php

index 52700a48779a91d55b687edccab2e1749179c2e5..913add3d09c4fa8cfda98fa6b9752eda959df02d 100644 (file)
@@ -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,
index aa27dfda3ab3bd58c71a72e0576dbd4af69fe0e4..dce51b4a5539ab774919ca6d4e3cc632fca12001 100755 (executable)
@@ -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);
     }