From c206647d1a8629078f2201727c49772120de9a9c Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Mon, 8 Sep 2014 12:12:56 +1200 Subject: [PATCH] Fix some spelling errors (death to referAnce) --- CRM/Admin/Form/PreferencesDate.php | 2 +- CRM/Contact/Import/Parser/Contact.php | 2 +- CRM/Core/OptionValue.php | 2 +- CRM/Custom/Form/Field.php | 2 +- CRM/Member/BAO/Membership.php | 4 ++-- CRM/Price/BAO/LineItem.php | 12 ++++++------ CRM/Price/Form/Field.php | 2 +- CRM/Price/Form/Option.php | 2 +- CRM/Upgrade/Snapshot/V4p2/Price/BAO/LineItem.php | 8 ++++---- Civi/CCase/Analyzer.php | 2 +- Civi/CiUtil/PHPUnitScanner.php | 2 +- api/v3/Campaign.php | 8 ++++---- api/v3/Constant.php | 2 +- api/v3/Contact.php | 8 ++++---- api/v3/ContactType.php | 11 +++++------ api/v3/Contribution.php | 2 +- api/v3/ContributionPage.php | 8 +++----- api/v3/ContributionRecur.php | 8 ++++---- api/v3/File.php | 4 +--- api/v3/Grant.php | 4 ++-- api/v3/Group.php | 9 ++++----- api/v3/GroupContact.php | 2 +- api/v3/LineItem.php | 2 +- api/v3/LocBlock.php | 2 +- api/v3/LocationType.php | 2 +- api/v3/MailSettings.php | 8 ++++---- api/v3/OptionGroup.php | 4 ++-- api/v3/ParticipantStatusType.php | 10 +++++----- api/v3/PledgePayment.php | 2 +- api/v3/PriceField.php | 2 +- api/v3/PriceFieldValue.php | 2 +- api/v3/PriceSet.php | 2 +- api/v3/Setting.php | 2 +- api/v3/Survey.php | 4 ++-- api/v3/Tag.php | 2 +- api/v3/utils.php | 2 +- bin/deprecated/civimail.cronjob.php | 2 +- .../test.extension.manager.moduletest/moduletest.php | 4 ++-- .../Contact/BAO/ContactType/ContactSearchTest.php | 2 +- tests/phpunit/CiviTest/CiviUnitTestCase.php | 4 ++-- .../WebTest/Member/InheritedMembershipTest.php | 2 +- tests/phpunit/api/v3/CustomValueContactTypeTest.php | 2 +- tests/qunit/README.txt | 2 +- 43 files changed, 82 insertions(+), 88 deletions(-) diff --git a/CRM/Admin/Form/PreferencesDate.php b/CRM/Admin/Form/PreferencesDate.php index 8efba4a425..16bda9e6ca 100644 --- a/CRM/Admin/Form/PreferencesDate.php +++ b/CRM/Admin/Form/PreferencesDate.php @@ -91,7 +91,7 @@ class CRM_Admin_Form_PreferencesDate extends CRM_Admin_Form { /** * global validation rules for the form * - * @param array $fields (referance) posted values of the form + * @param array $fields posted values of the form * * @return array if errors then list of errors to be posted back to the form, * true otherwise diff --git a/CRM/Contact/Import/Parser/Contact.php b/CRM/Contact/Import/Parser/Contact.php index f287623561..3cc01b3fd1 100644 --- a/CRM/Contact/Import/Parser/Contact.php +++ b/CRM/Contact/Import/Parser/Contact.php @@ -1690,7 +1690,7 @@ class CRM_Contact_Import_Parser_Contact extends CRM_Contact_Import_Parser { /** * format params for update and fill mode * - * @param $params array referance to an array containg all the + * @param $params array reference to an array containing all the * values for import * @param $onDuplicate int * @param $cid int contact id diff --git a/CRM/Core/OptionValue.php b/CRM/Core/OptionValue.php index eda30d9e2e..1d7cf7fda1 100644 --- a/CRM/Core/OptionValue.php +++ b/CRM/Core/OptionValue.php @@ -376,7 +376,7 @@ class CRM_Core_OptionValue { * * @param array $groupParams Array containing group fields * whose option-values is to retrieved. - * @param array $values (referance) to the array which + * @param array $values (reference) to the array which * will have the values for the group * @param string $orderBy for orderBy clause * diff --git a/CRM/Custom/Form/Field.php b/CRM/Custom/Form/Field.php index cce4f2b958..e45f7fcca3 100644 --- a/CRM/Custom/Form/Field.php +++ b/CRM/Custom/Form/Field.php @@ -561,7 +561,7 @@ class CRM_Custom_Form_Field extends CRM_Core_Form { /** * global validation rules for the form * - * @param array $fields (referance) posted values of the form + * @param array $fields posted values of the form * * @param $files * @param $self diff --git a/CRM/Member/BAO/Membership.php b/CRM/Member/BAO/Membership.php index bba96580c4..20d8a9206c 100644 --- a/CRM/Member/BAO/Membership.php +++ b/CRM/Member/BAO/Membership.php @@ -1494,7 +1494,7 @@ AND civicrm_membership.is_test = %2"; * then status will be updated based on existing start and end * dates and log will be added for the status change. * - * @param array $currentMembership referance to the array + * @param array $currentMembership reference to the array * containing all values of * the current membership * @param array $changeToday array of month, day, year @@ -2844,7 +2844,7 @@ WHERE civicrm_membership.is_test = 0"; $contribution = CRM_Contribute_BAO_Contribution::create($contributionParams, $ids); - //CRM-13981, create new soft-credit record as to record payment from differnt person for this membership + //CRM-13981, create new soft-credit record as to record payment from different person for this membership if (!empty($contributionSoftParams)) { $contributionSoftParams['contribution_id'] = $contribution->id; $contributionSoftParams['currency'] = $contribution->currency; diff --git a/CRM/Price/BAO/LineItem.php b/CRM/Price/BAO/LineItem.php index b8053645b1..428d3131b4 100644 --- a/CRM/Price/BAO/LineItem.php +++ b/CRM/Price/BAO/LineItem.php @@ -62,7 +62,7 @@ class CRM_Price_BAO_LineItem extends CRM_Price_DAO_LineItem { else { CRM_Utils_Hook::pre('create', 'LineItem', $params['entity_id'], $params); } - + // unset entity table and entity id in $params // we never update the entity table and entity id during update mode if ($id) { @@ -221,10 +221,10 @@ AND li.entity_id = {$entityId} * processAmount method * * @param int $fid price set field id - * @param array $params referance to form values - * @param array $fields referance to array of fields belonging + * @param array $params reference to form values + * @param array $fields reference to array of fields belonging * to the price set used for particular event - * @param array $values referance to the values array( + * @param array $values reference to the values array( this is * lineItem array) * @@ -349,7 +349,7 @@ AND li.entity_id = {$entityId} $line['entity_id'] = $contributionDetails->id; } } - + // if financial type is not set and if price field value is NOT NULL // get financial type id of price field value if (!empty($line['price_field_value_id']) && empty($line['financial_type_id'])) { @@ -436,7 +436,7 @@ AND li.entity_id = {$entityId} $totalAmount = CRM_Utils_Array::value('total_amount', $params); $financialType = CRM_Utils_Array::value('financial_type_id', $params); foreach ($priceSetDetails as $values) { - if ($entityTable == 'membership') { + if ($entityTable == 'membership') { if ($isRelatedID != $values['membership_type_id']) { continue; } diff --git a/CRM/Price/Form/Field.php b/CRM/Price/Form/Field.php index e0ec35e89f..52f758c3e7 100644 --- a/CRM/Price/Form/Field.php +++ b/CRM/Price/Form/Field.php @@ -391,7 +391,7 @@ class CRM_Price_Form_Field extends CRM_Core_Form { /** * global validation rules for the form * - * @param array $fields (referance) posted values of the form + * @param array $fields posted values of the form * * @param $files * @param $form diff --git a/CRM/Price/Form/Option.php b/CRM/Price/Form/Option.php index 4413967daf..2657ec5bab 100644 --- a/CRM/Price/Form/Option.php +++ b/CRM/Price/Form/Option.php @@ -271,7 +271,7 @@ class CRM_Price_Form_Option extends CRM_Core_Form { /** * global validation rules for the form * - * @param array $fields (referance) posted values of the form + * @param array $fields posted values of the form * * @param $files * @param $form diff --git a/CRM/Upgrade/Snapshot/V4p2/Price/BAO/LineItem.php b/CRM/Upgrade/Snapshot/V4p2/Price/BAO/LineItem.php index 21ea952992..10accd252c 100644 --- a/CRM/Upgrade/Snapshot/V4p2/Price/BAO/LineItem.php +++ b/CRM/Upgrade/Snapshot/V4p2/Price/BAO/LineItem.php @@ -171,10 +171,10 @@ WHERE %2.id = %1"; * processAmount method * * @param int $fid price set field id - * @param array $params referance to form values - * @param array $fields referance to array of fields belonging + * @param array $params reference to form values + * @param array $fields reference to array of fields belonging * to the price set used for particular event - * @param array $values referance to the values array( + * @param array $values reference to the values array( this is * lineItem array) * @@ -205,7 +205,7 @@ WHERE %2.id = %1"; foreach ($params["price_{$fid}"] as $oid => $qty) { $price = $options[$oid]['amount']; - // lets clean the price in case it is not yet cleant + // lets clean the price in case it is not yet cleaned // CRM-10974 $price = CRM_Utils_Rule::cleanMoney($price); diff --git a/Civi/CCase/Analyzer.php b/Civi/CCase/Analyzer.php index 2d94873126..cc82918dfb 100644 --- a/Civi/CCase/Analyzer.php +++ b/Civi/CCase/Analyzer.php @@ -212,4 +212,4 @@ class Analyzer { $this->activities = NULL; $this->indices = array(); } -} \ No newline at end of file +} diff --git a/Civi/CiUtil/PHPUnitScanner.php b/Civi/CiUtil/PHPUnitScanner.php index b09de45367..132f654ff4 100644 --- a/Civi/CiUtil/PHPUnitScanner.php +++ b/Civi/CiUtil/PHPUnitScanner.php @@ -88,4 +88,4 @@ class PHPUnitScanner { } return $r; } -} \ No newline at end of file +} diff --git a/api/v3/Campaign.php b/api/v3/Campaign.php index b1ddd8a988..4608a8469d 100644 --- a/api/v3/Campaign.php +++ b/api/v3/Campaign.php @@ -41,7 +41,7 @@ * In case of updating existing campaign, id of that particular campaign must * be in $params array. * - * @param array $params (referance) Associative array of property + * @param array $params (reference) Associative array of property * name/value pairs to insert in new 'campaign' * * @return array campaign array @@ -65,11 +65,11 @@ function _civicrm_api3_campaign_create_spec(&$params) { /** * Returns array of campaigns matching a set of one or more group properties * - * @param array $params (referance) Array of one or more valid + * @param array $params Array of one or more valid * property_name=>value pairs. If $params is set * as null, all campaigns will be returned * - * @return array (referance) Array of matching campaigns + * @return array Array of matching campaigns * @access public * {@getfields campaign_get} */ @@ -86,7 +86,7 @@ function civicrm_api3_campaign_get($params) { * @param array $params (reference) array containing id of the group * to be deleted * - * @return array (referance) returns flag true if successfull, error + * @return array (reference) returns flag true if successful, error * message otherwise * {@getfields campaign_delete} * @access public diff --git a/api/v3/Constant.php b/api/v3/Constant.php index 328dfbad4a..93fcfcb68f 100644 --- a/api/v3/Constant.php +++ b/api/v3/Constant.php @@ -41,7 +41,7 @@ * It's recommended to use the api getoptions action instead * * @param string Name of a public static method of - * CRM_Core_PseudoContant: one of + * CRM_Core_PseudoConstant: one of *