From 10525e4437a80b3f750037373d57a56888c45d82 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Mon, 12 Jan 2015 16:57:54 +1300 Subject: [PATCH] fix some spelling: --- CRM/Event/BAO/Event.php | 5 ++--- api/v3/Location.php | 2 ++ .../Contribute/OnlineMultiplePaymentProcessorTest.php | 2 +- .../WebTest/Contribute/VerifySSLContributionTest.php | 2 +- tests/phpunit/WebTest/Member/OnlineMembershipCreateTest.php | 6 +++--- 5 files changed, 9 insertions(+), 8 deletions(-) diff --git a/CRM/Event/BAO/Event.php b/CRM/Event/BAO/Event.php index a254a9f342..80e449da2e 100644 --- a/CRM/Event/BAO/Event.php +++ b/CRM/Event/BAO/Event.php @@ -915,16 +915,15 @@ WHERE civicrm_event.is_active = 1 * * @param int $id * The event id to copy. - * obj $newEvent object of CRM_Event_DAO_Event * boolean $afterCreate call to copy after the create function * @param null $newEvent * @param bool $afterCreate * - * @return void + * @return CRM_Event_DAO_Event */ public static function copy($id, $newEvent = NULL, $afterCreate = FALSE) { - $defaults = $eventValues = array(); + $eventValues = array(); //get the require event values. $eventParams = array('id' => $id); diff --git a/api/v3/Location.php b/api/v3/Location.php index 54c1822bf4..824f708c3d 100644 --- a/api/v3/Location.php +++ b/api/v3/Location.php @@ -2,6 +2,8 @@ /** * Functions to inform caller that Location is obsolete and Address, Phone, Email, Website should be used + * @param $params + * @return array */ function civicrm_api3_location_create($params) { return civicrm_api3_create_error("API (Location, Create) does not exist, use the Address/Phone/Email/Website API instead", array('obsoleted' => TRUE)); diff --git a/tests/phpunit/WebTest/Contribute/OnlineMultiplePaymentProcessorTest.php b/tests/phpunit/WebTest/Contribute/OnlineMultiplePaymentProcessorTest.php index 3605ea424c..e5f023427c 100644 --- a/tests/phpunit/WebTest/Contribute/OnlineMultiplePaymentProcessorTest.php +++ b/tests/phpunit/WebTest/Contribute/OnlineMultiplePaymentProcessorTest.php @@ -146,7 +146,7 @@ class WebTest_Contribute_OnlineMultiplePaymentProcessorTest extends CiviSelenium $isPcpApprovalNeeded = FALSE, $isSeparatePayment = FALSE, $honoreeSection = FALSE, - $allowOtherAmmount = TRUE + $allowOtherAmount = TRUE ); $this->openCiviPage("contribute/transact", "reset=1&action=preview&id=$pageId", NULL); diff --git a/tests/phpunit/WebTest/Contribute/VerifySSLContributionTest.php b/tests/phpunit/WebTest/Contribute/VerifySSLContributionTest.php index 9b20ebaac5..cc5f3a3b78 100644 --- a/tests/phpunit/WebTest/Contribute/VerifySSLContributionTest.php +++ b/tests/phpunit/WebTest/Contribute/VerifySSLContributionTest.php @@ -90,7 +90,7 @@ class WebTest_Contribute_VerifySSLContributionTest extends CiviSeleniumTestCase $isPcpApprovalNeeded = FALSE, $isSeparatePayment = FALSE, $honoreeSection = FALSE, - $allowOtherAmmount = TRUE + $allowOtherAmount = TRUE ); // enable verify ssl diff --git a/tests/phpunit/WebTest/Member/OnlineMembershipCreateTest.php b/tests/phpunit/WebTest/Member/OnlineMembershipCreateTest.php index 15f49ed142..6cd5678a61 100644 --- a/tests/phpunit/WebTest/Member/OnlineMembershipCreateTest.php +++ b/tests/phpunit/WebTest/Member/OnlineMembershipCreateTest.php @@ -53,7 +53,7 @@ class WebTest_Member_OnlineMembershipCreateTest extends CiviSeleniumTestCase { // create contribution page with randomized title and default params $amountSection = TRUE; $payLater = TRUE; - $allowOtherAmmount = FALSE; + $allowOtherAmount = FALSE; $onBehalf = FALSE; $pledges = FALSE; $recurring = FALSE; @@ -262,7 +262,7 @@ class WebTest_Member_OnlineMembershipCreateTest extends CiviSeleniumTestCase { $processorName = 'Test Processor'; $amountSection = TRUE; $payLater = TRUE; - $allowOtherAmmount = TRUE; + $allowOtherAmount = TRUE; $onBehalf = FALSE; $pledges = FALSE; $recurring = FALSE; @@ -299,7 +299,7 @@ class WebTest_Member_OnlineMembershipCreateTest extends CiviSeleniumTestCase { FALSE, $isSeparatePayment, TRUE, - $allowOtherAmmount, + $allowOtherAmount, TRUE, 'Donation', $fixedAmount, -- 2.25.1