CRM-16367 phpcs fixes
authorEileen McNaughton <eileen@fuzion.co.nz>
Sun, 3 May 2015 20:02:25 +0000 (08:02 +1200)
committerEileen McNaughton <eileen@fuzion.co.nz>
Sun, 3 May 2015 20:02:25 +0000 (08:02 +1200)
CRM/Contribute/Form/Contribution.php
tests/phpunit/CRM/Contribute/Form/ContributionTest.php

index 6f07b2c87d3f70ee115100146ed85e408a20f995..712dd62a3c3c64e3349fa90ff7995275362bede5 100644 (file)
@@ -1717,7 +1717,6 @@ class CRM_Contribute_Form_Contribution extends CRM_Contribute_Form_AbstractEditP
       }
       $params['non_deductible_amount'] = $this->calculateNonDeductibleAmount($params, $formValues);
 
-
       $contribution = CRM_Contribute_BAO_Contribution::create($params, $ids);
 
       // process associated membership / participant, CRM-4395
index 3eedadc43b40d505bbf9404df023256a5b1cfeb9..3074235cbd582c26a4cfbac1e1e9a99d80d431cf 100644 (file)
@@ -345,7 +345,7 @@ class CRM_Contribute_Form_ContributionTest extends CiviUnitTestCase {
       'payment_instrument_id' => array_search('Check', $this->paymentInstruments),
       'contribution_status_id' => 1,
       'note' => 'Super cool and interesting stuff',
-    ) + $this->getCreditCardParams (),
+    ) + $this->getCreditCardParams(),
       CRM_Core_Action::ADD);
     $this->callAPISuccessGetCount('Contribution', array('contact_id' => $this->_individualId), 1);
     $note = $this->callAPISuccessGetSingle('note', array('entity_table' => 'civicrm_contribution'));
@@ -358,7 +358,7 @@ class CRM_Contribute_Form_ContributionTest extends CiviUnitTestCase {
    * @return array
    *   Credit card specific parameters.
    */
-  function getCreditCardParams() {
+  protected function getCreditCardParams() {
     return array(
       'payment_processor_id' => $this->paymentProcessor->id,
       'credit_card_exp_date' => array('M' => 5, 'Y' => 2012),