Fix some spelling errors (death to referAnce)
authorEileen McNaughton <eileen@fuzion.co.nz>
Mon, 8 Sep 2014 00:12:56 +0000 (12:12 +1200)
committerEileen McNaughton <eileen@fuzion.co.nz>
Mon, 8 Sep 2014 00:12:56 +0000 (12:12 +1200)
43 files changed:
CRM/Admin/Form/PreferencesDate.php
CRM/Contact/Import/Parser/Contact.php
CRM/Core/OptionValue.php
CRM/Custom/Form/Field.php
CRM/Member/BAO/Membership.php
CRM/Price/BAO/LineItem.php
CRM/Price/Form/Field.php
CRM/Price/Form/Option.php
CRM/Upgrade/Snapshot/V4p2/Price/BAO/LineItem.php
Civi/CCase/Analyzer.php
Civi/CiUtil/PHPUnitScanner.php
api/v3/Campaign.php
api/v3/Constant.php
api/v3/Contact.php
api/v3/ContactType.php
api/v3/Contribution.php
api/v3/ContributionPage.php
api/v3/ContributionRecur.php
api/v3/File.php
api/v3/Grant.php
api/v3/Group.php
api/v3/GroupContact.php
api/v3/LineItem.php
api/v3/LocBlock.php
api/v3/LocationType.php
api/v3/MailSettings.php
api/v3/OptionGroup.php
api/v3/ParticipantStatusType.php
api/v3/PledgePayment.php
api/v3/PriceField.php
api/v3/PriceFieldValue.php
api/v3/PriceSet.php
api/v3/Setting.php
api/v3/Survey.php
api/v3/Tag.php
api/v3/utils.php
bin/deprecated/civimail.cronjob.php
tests/extensions/test.extension.manager.moduletest/moduletest.php
tests/phpunit/CRM/Contact/BAO/ContactType/ContactSearchTest.php
tests/phpunit/CiviTest/CiviUnitTestCase.php
tests/phpunit/WebTest/Member/InheritedMembershipTest.php
tests/phpunit/api/v3/CustomValueContactTypeTest.php
tests/qunit/README.txt

index 8efba4a425bcb8c9112c46f013b9aeeca9f5dee5..16bda9e6ca548dfcfcfc7f2633cd207303f180ce 100644 (file)
@@ -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
index f287623561f6f3ce7f405a4458453d29ba2b1b44..3cc01b3fd135c8c1d95379d1b35bf86021445571 100644 (file)
@@ -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
index eda30d9e2e81b07398aa08469a15035d7be78f0c..1d7cf7fda12e098423ef17fa9e03d14a06d280c8 100644 (file)
@@ -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
    *
index cce4f2b9584106e1278dab62d982cbf0e96f383f..e45f7fcca308a6bb3f5c367e49c94551156754bd 100644 (file)
@@ -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
index bba96580c4caa3a0441de568e68201072c356e6a..20d8a9206c869e1be5dd4563f84471702d7c952e 100644 (file)
@@ -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;
index b8053645b1a29a33a6181c7f8e42b41d2c835c0d..428d3131b44aa7013d2c3dad6f399cf648706c49 100644 (file)
@@ -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;
           }
index e0ec35e89f0e69d64c480275ad02ffb1ea63e037..52f758c3e7817b169a5082a705c8669044221e3e 100644 (file)
@@ -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
index 4413967daf6a41ad155f105cf0624fbb66dcce80..2657ec5bab66ba0b3bacdffeab69c65914616fba 100644 (file)
@@ -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
index 21ea95299293e9648867e82136c18e9df6b63564..10accd252c6b507af27bd53e63ef2d3f784c999f 100644 (file)
@@ -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);
 
index 2d94873126b6486c4406b293e40a143da992bd62..cc82918dfba69b231eef0dcecc557ee34f3fc70b 100644 (file)
@@ -212,4 +212,4 @@ class Analyzer {
     $this->activities = NULL;
     $this->indices = array();
   }
-}
\ No newline at end of file
+}
index b09de45367b615124d178aa623584a9ef3cbd925..132f654ff4e5e4288fcfd5016d165e4b8dc45eb9 100644 (file)
@@ -88,4 +88,4 @@ class PHPUnitScanner {
     }
     return $r;
   }
-}
\ No newline at end of file
+}
index b1ddd8a988b93b777218308cc361dfb70c490410..4608a8469ddb419203d1bb8dcc4a418211f7b05e 100644 (file)
@@ -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
index 328dfbad4a9cd5850a229dbd3d5270da384e64ce..93fcfcb68f9a054f739aec73c1c41f301945956e 100644 (file)
@@ -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
  *  <ul>
  *    <li>activityStatus</li>
  *    <li>activityType</li>
index 59e1c38e31e511a323f108c9a67328a55f17f5b6..7bf53b9fd8313f4b458e7b920543b0a2e711caca 100644 (file)
@@ -202,13 +202,13 @@ function _civicrm_api3_contact_get_spec(&$params) {
   $params['gender_id']['title'] = 'Gender ID';
   $params['gender']['title'] = 'Gender';
   $params['on_hold']['title'] = 'Primary Email On Hold';
-  $params['im']['title'] = 'Primary Instant Messanger';
-  $params['im_id']['title'] = 'Primary Instant Messanger ID';
+  $params['im']['title'] = 'Primary Instant Messenger';
+  $params['im_id']['title'] = 'Primary Instant Messenger ID';
   $params['group_id']['title'] = 'Group Memberships (filter)';
   $params['group']['title'] = 'Group Memberships (filter, array)';
   $params['tag']['title'] = 'Assigned tags (filter, array)';
-  $params['birth_date_low'] = array('name' => 'birth_date_low', 'type' => CRM_Utils_Type::T_DATE, 'title' => ts('Birthdate is equal to or greater than'));
-  $params['birth_date_high'] = array('name' => 'birth_date_high', 'type' => CRM_Utils_Type::T_DATE, 'title' => ts('Birthdate is equal to or less than'));
+  $params['birth_date_low'] = array('name' => 'birth_date_low', 'type' => CRM_Utils_Type::T_DATE, 'title' => ts('Birth Date is equal to or greater than'));
+  $params['birth_date_high'] = array('name' => 'birth_date_high', 'type' => CRM_Utils_Type::T_DATE, 'title' => ts('Birth Date is equal to or less than'));
   $params['deceased_date_low'] = array('name' => 'deceased_date_low','type' => CRM_Utils_Type::T_DATE, 'title' => ts('Deceased Date is equal to or greater than'));
   $params['deceased_date_high'] = array('name' => 'deceased_date_high', 'type' => CRM_Utils_Type::T_DATE, 'title' => ts('Deceased Date is equal to or less than'));
 }
index ed8ff1c222ffd99f35b4f9d6a754fb95329bf996..79854ecb26ec12cec5eb576324ce4c92bad3cb11 100644 (file)
@@ -41,7 +41,7 @@
  * In case of updating existing contact_type, id of that particular contact_type 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 'contact_type'
  *
  * @return array   contact_type array
@@ -64,11 +64,11 @@ function civicrm_api3_contact_type_create($params) {
 /**
  * Returns array of contact_types  matching a set of one or more group properties
  *
- * @param array $params  (referance) Array of one or more valid
+ * @param array $params one or more valid
  *                       property_name=>value pairs. If $params is set
  *                       as null, all contact_types will be returned
  *
- * @return array  (referance) Array of matching contact_types
+ * @return array Array of matching contact_types
  * @access public
  */
 function civicrm_api3_contact_type_get($params) {
@@ -82,11 +82,10 @@ function civicrm_api3_contact_type_get($params) {
  * This method is used to delete any existing contact_type. id of the group
  * to be deleted is required field in $params array
  *
- * @param array $params  (reference) array containing id of the group
+ * @param array $params array containing id of the group
  *                       to be deleted
  *
- * @return array  (referance) returns flag true if successfull, error
- *                message otherwise
+ * @return array  API Result Array
  *
  * @access public
  */
index 1ef6e4d97ae19014cc7df1ec60c73361376734e9..67f8ba8c310eb4bbd09ee97d841ec46790b13237 100644 (file)
@@ -110,7 +110,7 @@ function _civicrm_api3_contribution_create_spec(&$params) {
     'FKClassName' => 'CRM_Contact_DAO_Contact',
   );
   // note this is a recommended option but not adding as a default to avoid
-  // creating unecessary changes for the dev
+  // creating unnecessary changes for the dev
   $params['skipRecentView'] = array(
     'name' => 'skipRecentView',
     'title' => 'Skip adding to recent view',
index bff43b90c470ad957e7aef5eebb4e1a30ee785e7..f5f58f3b7f3b5afdd62c8592eac89154668138cd 100644 (file)
@@ -84,11 +84,10 @@ function civicrm_api3_contribution_page_get($params) {
  * This method is used to delete any existing contribution_page. id of the group
  * to be deleted is required field in $params array
  *
- * @param array $params  (reference) array containing id of the group
+ * @param array $params array containing id of the group
  *                       to be deleted
  *
- * @return array  (referance) returns flag true if successfull, error
- *                message otherwise
+ * @return array API result Array
  * {@getfields contribution_page_delete}
  * @access public
  */
@@ -105,8 +104,7 @@ function civicrm_api3_contribution_page_delete($params) {
  * @param array $params  (reference) array containing id of the group
  *                       to be deleted
  *
- * @return array  (referance) returns flag true if successfull, error
- *                message otherwise
+ * @return array API result array
  * {@getfields contribution_page_delete}
  * @access public
  */
index 29be2811e5c0cce979c84bb3175ae448f140f2bf..3768babbbd8b3551994de0f7ee3077754502717a 100644 (file)
@@ -64,11 +64,11 @@ function _civicrm_api3_contribution_recur_create_spec(&$params) {
 /**
  * Returns array of contribution_recurs  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 contribution_recurs will be returned
  *
- * @return array  (referance) Array of matching contribution_recurs
+ * @return array  API result Array of matching contribution_recurs
  * {@getfields contribution_recur_get}
  * @access public
  */
@@ -95,10 +95,10 @@ function civicrm_api3_contribution_recur_cancel($params) {
  * This method is used to delete any existing contribution_recur. id of the group
  * to be deleted is required field in $params array
  *
- * @param array $params  (reference) array containing id of the group
+ * @param array $params array containing id of the group
  *                       to be deleted
  *
- * @return array  (referance) returns flag true if successfull, error
+ * @return array API result array
  *                message otherwise
  * {@getfields contribution_recur_delete}
  * @access public
index 2098de66f39f62eb9f598a7b04691b8e277134b5..20bff507c555205ae11dc5c725a86e8ad24a9417 100644 (file)
@@ -130,9 +130,7 @@ function civicrm_api3_file_update($params) {
  *
  * @param $params
  *
- * @internal param Int $fileId Id of the file to be deleted
- *
- * @return null if successfull, object of CRM_Core_Error otherwise
+ * @return array API result array
  * @access public
  */
 function civicrm_api3_file_delete($params) {
index a7f0eebda3c95ee08eacac7d706c2fb62af65a67..797e03439ca0e12caff0c8f20f7c6582667e6a04 100644 (file)
@@ -65,11 +65,11 @@ function _civicrm_api3_grant_create_spec(&$params) {
 /**
  * Returns array of grants  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 grants will be returned
  *
- * @return array  (referance) Array of matching grants
+ * @return array Array of matching grants
  * {@getfields grant_get}
  * @access public
  */
index 786f15b2d58cb29202dbc2958ca01996e46b2569..921e3ce97a177dc76bacdf502fb3a58fefa19cf2 100644 (file)
  * create/update group
  *
  * This API is used to create new group or update any of the existing
- * In case of updating existing group, id of that particular grop must
+ * In case of updating existing group, id of that particular group must
  * be in $params array. Either id or name is required field in the
  * $params array
  *
- * @param array $params  (referance) Associative array of property
+ * @param array $params Associative array of property
  *                       name/value pairs to insert in new 'group'
  *
- * @return array   returns id of the group created if success,
- *                 error message otherwise
+ * @return array  API result array
  *@example GroupCreate.php
  *{@getfields group_create}
  * @access public
@@ -70,7 +69,7 @@ function _civicrm_api3_group_create_spec(&$params) {
 /**
  * Returns array of groups  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 groups will be returned
  *
index 09acf2d259499d53247d3cf7391a17c657d2f2b0..aa6429880774e295ea23b8c4da6c2d5a51fe2170 100644 (file)
@@ -41,7 +41,7 @@
 
 /**
  * This API will give list of the groups for particular contact
- * Particualr status can be sent in params array
+ * Particular status can be sent in params array
  * If no status mentioned in params, by default 'added' will be used
  * to fetch the records
  *
index a739beec0701fbdbdde9db8eac5a8c06ecaefcc3..8207a2b3a472c015494819e3d77c9c81b0c47082 100644 (file)
@@ -87,7 +87,7 @@ function civicrm_api3_line_item_get($params) {
  * @param array $params array containing id of the group
  *  to be deleted
  *
- * @return array  returns flag true if successfull, error message otherwise
+ * @return array API result array
  * {@getfields line_item_delete}
  * @access public
  */
index cb29a2050eb064c9b75631c310232295ff84ceb3..83128308e8141bf8b04e66028094c66dabb8a65a 100644 (file)
@@ -129,7 +129,7 @@ function civicrm_api3_loc_block_get($params) {
  *
  * @param array $params array containing id of the record to be deleted
  *
- * @return array  returns flag true if successfull, error message otherwise
+ * @return array API result array
  * {@getfields loc_block_delete}
  * @access public
  */
index c0097ebadd718956e26291ed9af9517c16c3e677..513fff7e283eee9ce9fe56c43e7be31c90dd9b4d 100644 (file)
@@ -76,7 +76,7 @@ function _civicrm_api3_location_type_create_spec(&$params) {
  *
  * @example LocationTypeDelete.php Standard Delete Example
  *
- * @return boolean | error  true if successfull, error otherwise
+ * @return array API result array
  * {@getfields LocationType_delete}
  * @access public
  */
index c298312018135e7c6567cea215343a1482d74aa6..5b1c650b1f95897b0c79c90dade5f480c1e677c2 100644 (file)
@@ -60,13 +60,13 @@ function _civicrm_api3_mail_settings_create_spec(&$params) {
 }
 
 /**
- * Returns array of mail_settingss  matching a set of one or more group properties
+ * Returns array of mail_settings  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 mail_settingss will be returned
+ *                       as null, all mail_settings will be returned
  *
- * @return array  (referance) Array of matching mail_settingss
+ * @return array Array of matching mail_settings
  * {@getfields mail_settings_get}
  * @access public
  */
index 27d0cb570840e50e0f7c35206482c08976d4d04c..545b6c71ec8dff9c6d2c9606b3543e48a0bd2b87 100644 (file)
@@ -43,10 +43,10 @@ function _civicrm_api3_option_group_create_spec(&$params) {
  * This method is used to delete any existing Option Group. id of the group
  * to be deleted is required field in $params array
  *
- * @param array $params  (reference) array containing id of the group
+ * @param array $params array containing id of the group
  *                       to be deleted
  *
- * @return array  (reference) returns flag true if successfull, error
+ * @return array API Result Array
  *                message otherwise
  * {@getfields OptionGroup_delete}
  * @access public
index 8f30be2d76453ced03702ac9448b721fae09f94a..7b5f17f8b01ddd36c97651bd64271a369cedd993 100644 (file)
@@ -41,7 +41,7 @@
  * In case of updating existing participant_status, id of that particular participant_status must
  * be in $params array.
  *
- * @param array $params  (referance) Associative array of property
+ * @param array $params Associative array of property
  *                       name/value pairs to insert in new 'participant_status'
  *
  * @return array   participant_status array
@@ -54,13 +54,13 @@ function civicrm_api3_participant_status_type_create($params) {
 }
 
 /**
- * Returns array of participant_statuss  matching a set of one or more group properties
+ * Returns array of participant_statuses  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 participant_statuss will be returned
+ *                       as null, all participant_statuses will be returned
  *
- * @return array  (referance) Array of matching participant_statuses
+ * @return array Array of matching participant_statuses
  * {@getfields ParticipantStatusType_get}
  * @example ParticipantStatusTypeGet.php
  * @access public
index 722dc400c1a33945f6b44bb002cf4960cb6471b0..4691d3047e5011945c4e9d0ff79e7facc5250959 100644 (file)
@@ -43,7 +43,7 @@
  * the oldest pledge with no associated contribution is updated
  *
  * @todo possibly add ability to add payment if there are less payments than pledge installments
- * @todo possibily add ability to recalc dates if the schedule is changed
+ * @todo possibly add ability to recalculate dates if the schedule is changed
  *
  * @param  array   $params    input parameters
  * {@getfields PledgePayment_create}
index 1fdbe9800d1582ee11ed12d49e366b4af984f65f..77fa95f8baacb9fb442d4a2dc390a6e77dd649ee 100644 (file)
@@ -83,7 +83,7 @@ function civicrm_api3_price_field_get($params) {
  * @param array $params array containing id of the group
  *  to be deleted
  *
- * @return array  returns flag true if successfull, error message otherwise
+ * @return array API result array
  * {@getfields price_field_delete}
  * @access public
  */
index 541d65b9a140d603c5bb0923fb66ab3d1eefa481..71d749622499996c0853ba8ce54e3d44cde1dcb6 100644 (file)
@@ -96,7 +96,7 @@ function civicrm_api3_price_field_value_get($params) {
  * @param array $params array containing id of the group
  *  to be deleted
  *
- * @return array  returns flag true if successfull, error message otherwise
+ * @return array API result array
  * {@getfields price_field_value_delete}
  * @access public
  */
index 4e4b0aa5a6cdcc878c455b3b0752165b3a91006a..5d76ad3f22841a88373e5c240897ee5694994811 100644 (file)
@@ -107,7 +107,7 @@ function civicrm_api3_price_set_get($params) {
  * @param array $params array containing id of the group
  *  to be deleted
  *
- * @return array  returns flag true if successfull, error message otherwise
+ * @return array API result array
  * {@getfields price_set_delete}
  * @access public
  */
index 125fb18fb7b6bba532e35406aea8f8b56b41b1b9..c9a2a139ea430a96ea8c84c955c976b67a737f15 100644 (file)
@@ -231,7 +231,7 @@ function _civicrm_api3_setting_create_spec(&$params) {
 /**
  * Returns array of settings matching input parameters
  *
- * @param array $params  (referance) Array of one or more valid
+ * @param array $params Array of one or more valid
  *                       property_name=>value pairs.
  *
  * @return array Array of matching settings
index ab7b8ca789edcdd56623c53b80c16da8ee84fe6d..a657f48c4bb8a5ae8f99e7177d3275729f3a2bcc 100644 (file)
@@ -63,11 +63,11 @@ function _civicrm_api3_survey_create_spec(&$params) {
 /**
  * Returns array of surveys  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 surveys will be returned
  *
- * @return array  (referance) Array of matching surveys
+ * @return array  API result Array of matching surveys
  * {@getfields survey_get}
  * @access public
  */
index fd87dfde70bf399603cc37b8a45b71d62e5dab69..2189159e435012d16ee9a63e49f1eef2d9411062 100644 (file)
@@ -69,7 +69,7 @@ function _civicrm_api3_tag_create_spec(&$params) {
  *
  * @example TagDelete.ph
  *
- * @return boolean | error  true if successfull, error otherwise
+ * @return array API result array
  * {@getfields tag_delete}
  * @access public
  */
index 3bf88b7769a2ff4e55d842d8c57d2714e0b935ff..c4eb611213f8f4ca0828b4cd4a469679f6eda00c 100644 (file)
@@ -48,7 +48,7 @@ function _civicrm_api3_initialize() {
 /**
  * Wrapper Function for civicrm_verify_mandatory to make it simple to pass either / or fields for checking
  *
- * @param array $params array of fields to checkl
+ * @param array $params array of fields to check
  * @param array $daoName string DAO to check for required fields (create functions only)
  * @param array $keyoptions list of required fields options. One of the options is required
  *
index fcf21d21524f57866c11d4077a377a9fa5609f16..1aa56303fc2484fb3d88dd15f840da862d70c20f 100644 (file)
@@ -29,7 +29,7 @@
  * A PHP cron script to run the outstanding and scheduled CiviMail jobs
  * initiated by Owen Barton from a mailing sent by Lobo to crm-mail
  *
- * The structure of the file is set to mimiic soap.php which is a stand-alone
+ * The structure of the file is set to mimic soap.php which is a stand-alone
  * script and hence does not have any UF issues. You should be able to run
  * this script using a web url or from the command line
  */
index b08e1e7d2f934764a7cbfe51ca515a804eeb3c94..5e92a003bcd502206b560bc97232249f3d858e25 100644 (file)
@@ -8,14 +8,14 @@ function moduletest_civicrm_install() {
 }
 
 /**
- * Implemenation of hook_civicrm_postInstall
+ * Implementation of hook_civicrm_postInstall
  */
 function moduletest_civicrm_postInstall() {
   CRM_Extension_Manager_ModuleTest::incHookCount('moduletest', 'postInstall');
 }
 
 /**
- * Implemenation of hook_civicrm_uninstall
+ * Implementation of hook_civicrm_uninstall
  */
 function moduletest_civicrm_uninstall() {
   CRM_Extension_Manager_ModuleTest::incHookCount('moduletest', 'uninstall');
index c576fdf8f2257900ecc207ad4396954901be98e2..1bc3dca7706fc58467e3b7d176303d3d38560b24 100644 (file)
@@ -11,7 +11,7 @@ class CRM_Contact_BAO_ContactType_ContactSearchTest extends CiviUnitTestCase {
    */
   function get_info() {
     return array(
-      'name' => 'Contact Serach Subtype',
+      'name' => 'Contact Search Subtype',
       'description' => 'Test Contact for subtype.',
       'group' => 'CiviCRM BAO Tests',
     );
index 245fcf9be0e9fd758eb89e01e8ced60237208f9c..ff4d40cef19f5efcb04fe1d870097eb0eae40c4a 100644 (file)
@@ -2806,9 +2806,9 @@ AND    ( TABLE_NAME LIKE 'civicrm_value_%' )
 
   /**
    * Set up an acl allowing contact to see 2 specified groups
-   *  - $this->_permissionedGroup & $this->_permissionedDisbaledGroup
+   *  - $this->_permissionedGroup & $this->_permissionedDisabledGroup
    *
-   *  You need to have precreated these groups & created the user e.g
+   *  You need to have pre-created these groups & created the user e.g
    *  $this->createLoggedInUser();
    *   $this->_permissionedDisabledGroup = $this->groupCreate(array('title' => 'pick-me-disabled', 'is_active' => 0, 'name' => 'pick-me-disabled'));
    *   $this->_permissionedGroup = $this->groupCreate(array('title' => 'pick-me-active', 'is_active' => 1, 'name' => 'pick-me-active'));
index d8c9c039b9bcc658eea137380bc67c29fe5af86e..7f615c29c1ab89e1f6c46c7dca3f8a5be6d356fa 100644 (file)
@@ -299,7 +299,7 @@ class WebTest_Member_InheritedMembershipTest extends CiviSeleniumTestCase {
     $this->waitForElementPresent('link=Add Membership Type');
     $this->waitForText('crm-notification-container', "Membership Type $title");
 
-    // creating another Orgnization
+    // creating another Organization
     $this->openCiviPage('contact/add', 'reset=1&ct=Organization', '_qf_Contact_cancel');
     $org1 = substr(sha1(rand()), 0, 7);
     $this->type('organization_name', "Organization $org1");
index a773cab9ed49c27f33d6faa7f6c60ded691cdb6c..1afcfd8844f72a187ab138f648f28af5aa706543 100644 (file)
@@ -129,7 +129,7 @@ class api_v3_CustomValueContactTypeTest extends CiviUnitTestCase {
    */
   function testGetFields() {
     $result = $this->callAPISuccess('Contact', 'getfields', array());
-    $this->assertArrayHasKey("custom_{$this->IndividualField['id']}", $result['values'], 'If This fails there is probably a cachine issue - failure in line' . __LINE__ . print_r(array_keys($result['values']), TRUE));
+    $this->assertArrayHasKey("custom_{$this->IndividualField['id']}", $result['values'], 'If This fails there is probably a caching issue - failure in line' . __LINE__ . print_r(array_keys($result['values']), TRUE));
     $result = $this->callAPISuccess('Contact', 'getfields', array('action' => 'create', 'contact_type' => 'Individual'), 'in line' . __LINE__);
     $this->assertArrayHasKey("custom_{$this->IndividualField['id']}", $result['values']);
     $result = $this->callAPISuccess('Contact', 'getfields', array('action' => 'create', 'contact_type' => 'Organization'));
index a74f18ad5b6e6c6f647d0d0526b7fcc50ea4020c..686e95bc011277baa62993f53887c63aca291c66 100644 (file)
@@ -51,7 +51,7 @@ To create a new test-suite:
    (my-stuff.js) as well as any special dependencies (jQuery plugins,
    Backbone, etc).
 
-4. Edit the "civcrm/tests/qunit/my-stuff/test.js"
+4. Edit the "civicrm/tests/qunit/my-stuff/test.js"
 
 5. To run the test-suite, login to CiviCRM as administrator and visit: