Commit b44e3f84 authored by Dmitry Smirnov's avatar Dmitry Smirnov

codespell: CRM/*

parent 1f62f088
......@@ -679,7 +679,7 @@ SELECT $acl.*
* Value we want to set the is_active field.
*
* @return Object
* DAO object on sucess, null otherwise
* DAO object on success, null otherwise
*/
public static function setIsActive($id, $is_active) {
// note this also resets any ACL cache
......
......@@ -81,7 +81,7 @@ class CRM_ACL_BAO_EntityRole extends CRM_ACL_DAO_EntityRole {
* Value we want to set the is_active field.
*
* @return Object
* DAO object on sucess, null otherwise
* DAO object on success, null otherwise
*/
public static function setIsActive($id, $is_active) {
return CRM_Core_DAO::setFieldValue('CRM_ACL_DAO_EntityRole', $id, 'is_active', $is_active);
......
......@@ -580,7 +580,7 @@ class CRM_Activity_Form_Activity extends CRM_Contact_Form_Task {
$defaults['target_contact_id'] = $this->_contactIds;
}
// CRM-15472 - 50 is around the practial limit of how many items a select2 entityRef can handle
// CRM-15472 - 50 is around the practical limit of how many items a select2 entityRef can handle
if (!empty($defaults['target_contact_id'])) {
$count = count(is_array($defaults['target_contact_id']) ? $defaults['target_contact_id'] : explode(',', $defaults['target_contact_id']));
if ($count > 50) {
......
......@@ -165,7 +165,7 @@ class CRM_Activity_Import_Form_Preview extends CRM_Import_Form_Preview {
// add all the necessary variables to the form
$parser->set($this, CRM_Import_Parser::MODE_IMPORT);
// check if there is any error occured
// check if there is any error occurred
$errorStack = CRM_Core_Error::singleton();
$errors = $errorStack->getErrors();
......
......@@ -228,7 +228,7 @@ class CRM_Activity_Page_AJAX {
$caseRelationships[$key]['relation'] = $caseRoles[$value['relation_type']];
unset($caseRoles[$value['relation_type']]);
}
// mark orginal case relationships record to use on setting edit links below
// mark original case relationships record to use on setting edit links below
$caseRelationships[$key]['source'] = 'caseRel';
}
......
......@@ -212,7 +212,7 @@ class CRM_Admin_Page_Extensions extends CRM_Core_Page_Basic {
}
$this->assign('localExtensionRows', $localExtensionRows);
// build list of availabe downloads
// build list of available downloads
$remoteExtensionRows = array();
foreach (CRM_Extension_System::singleton()->getBrowser()->getExtensions() as $info) {
$row = (array) $info;
......
......@@ -75,7 +75,7 @@ class CRM_Badge_BAO_Badge {
}
/**
* Funtion to create structure and add meta data according to layout.
* Function to create structure and add meta data according to layout.
*
* @param array $row
* Row element that needs to be formatted.
......
......@@ -554,7 +554,7 @@ INNER JOIN civicrm_group grp ON ( grp.id = campgrp.entity_id )
* Value we want to set the is_active field.
*
* @return CRM_Campaign_DAO_Campaign|null
* DAO object on sucess, null otherwise
* DAO object on success, null otherwise
*/
public static function setIsActive($id, $is_active) {
return CRM_Core_DAO::setFieldValue('CRM_Campaign_DAO_Campaign', $id, 'is_active', $is_active);
......
......@@ -377,7 +377,7 @@ SELECT survey.id as id,
* Value we want to set the is_active field.
*
* @return Object
* DAO object on sucess, null otherwise
* DAO object on success, null otherwise
*/
public static function setIsActive($id, $is_active) {
return CRM_Core_DAO::setFieldValue('CRM_Campaign_DAO_Survey', $id, 'is_active', $is_active);
......
......@@ -154,7 +154,7 @@ class CRM_Campaign_Form_Task_Release extends CRM_Campaign_Form_Task {
}
}
//set survey activites as deleted = true.
//set survey activities as deleted = true.
if (!empty($deleteActivityIds)) {
$query = 'UPDATE civicrm_activity SET is_deleted = 1 WHERE id IN ( ' . implode(', ', $deleteActivityIds) . ' )';
CRM_Core_DAO::executeQuery($query);
......
......@@ -109,7 +109,7 @@ class CRM_Case_BAO_CaseType extends CRM_Case_DAO_CaseType {
*
* @param string $name
* @param array $definition
* The case-type defintion expressed as an array-tree.
* The case-type definition expressed as an array-tree.
* @return string
* XML
*/
......
......@@ -434,7 +434,7 @@ class CRM_Case_Form_Case extends CRM_Core_Form {
$className::endPostProcess($this, $params);
}
// 5. auto populate activites
// 5. auto populate activities
// 6. set status
CRM_Core_Session::setStatus($params['statusMsg'], ts('Saved'), 'success');
......
......@@ -794,7 +794,7 @@ LIMIT 1
return FALSE;
}
// next get activity set Informtion
// next get activity set Information
$activitySet = array(
'label' => $form->getActivitySetLabel($xml, $activitySetName),
'includeActivities' => 'All',
......
......@@ -327,7 +327,7 @@ class CRM_Contact_BAO_Contact extends CRM_Contact_DAO_Contact {
$contact = self::add($params);
if (!$contact) {
// Not dying here is stupid, since we get into wierd situation and into a bug that
// Not dying here is stupid, since we get into weird situation and into a bug that
// is impossible to figure out for the user or for us
// CRM-7925
CRM_Core_Error::fatal();
......
......@@ -632,7 +632,7 @@ class CRM_Contact_BAO_Group extends CRM_Contact_DAO_Group {
/**
* This function create the hidden smart group when user perform
* contact seach and want to send mailing to search contacts.
* contact search and want to send mailing to search contacts.
*
* @param array $params
* ( reference ) an assoc array of name/value pairs.
......@@ -1003,10 +1003,10 @@ class CRM_Contact_BAO_Group extends CRM_Contact_DAO_Group {
// need to return id, title (w/ spacer), description, visibility
// We need to build a list of tags ordered by hierarchy and sorted by
// name. The heirarchy will be communicated by an accumulation of
// name. The hierarchy will be communicated by an accumulation of
// separators in front of the name to give it a visual offset.
// Instead of recursively making mysql queries, we'll make one big
// query and build the heirarchy with the algorithm below.
// query and build the hierarchy with the algorithm below.
$groups = array();
$args = array(1 => array($groupIdString, 'String'));
$query = "
......
......@@ -137,7 +137,7 @@ AND ( g.cache_date IS NULL OR
$groupIDs = array($groupIDs);
}
// note escapeString is a must here and we can't send the imploded value as second arguement to
// note escapeString is a must here and we can't send the imploded value as second argument to
// the executeQuery(), since that would put single quote around the string and such a string
// of comma separated integers would not work.
$groupIDString = CRM_Core_DAO::escapeString(implode(', ', $groupIDs));
......@@ -446,7 +446,7 @@ WHERE id = %1
self::$_alreadyLoaded[$groupID] = 1;
// we now have the lock, but some other proces could have actually done the work
// we now have the lock, but some other process could have actually done the work
// before we got here, so before we do any work, lets ensure that work needs to be
// done
// we allow hidden groups here since we dont know if the caller wants to evaluate an
......
......@@ -162,7 +162,7 @@ class CRM_Contact_BAO_GroupNesting extends CRM_Contact_DAO_GroupNesting implemen
if (!$nextGroup) {
// no sibling, find an ancestor w/ a sibling
for (;;) {
// since we pop this array everytime, we should be
// since we pop this array every time, we should be
// reasonably safe from infinite loops, I think :)
$ancestor = array_pop($this->_parentStack);
$this->_current = &$ancestor;
......
......@@ -69,7 +69,7 @@ WHERE n.child_group_id = gc.id
}
if (self::checkCyclicGraph($tree)) {
CRM_Core_Error::fatal(ts('We detected a cycle which we cant handle. aborting'));
CRM_Core_Error::fatal(ts('We detected a cycle which we can't handle. aborting'));
}
// first reset the current cache entries
......@@ -105,7 +105,7 @@ WHERE id = $id
* @return bool
*/
public static function checkCyclicGraph(&$tree) {
// lets keep this simple, we should probably use a graph algoritm here at some stage
// lets keep this simple, we should probably use a graph algorithm here at some stage
// foreach group that has a parent or a child, ensure that
// the ancestors and descendants dont intersect
......
......@@ -71,7 +71,7 @@ class CRM_Contact_BAO_RelationshipType extends CRM_Contact_DAO_RelationshipType
* Value we want to set the is_active field.
*
* @return Object
* DAO object on sucess, null otherwise
* DAO object on success, null otherwise
*/
public static function setIsActive($id, $is_active) {
return CRM_Core_DAO::setFieldValue('CRM_Contact_DAO_RelationshipType', $id, 'is_active', $is_active);
......
......@@ -77,7 +77,7 @@ class CRM_Contact_Controller_Search extends CRM_Core_Controller {
CRM_Core_Session::setStatus($message);
// see if we can figure out the url and redirect to the right search form
// note that this happens really early on, so we cant use any of the form or controller
// note that this happens really early on, so we can't use any of the form or controller
// variables
$config = CRM_Core_Config::singleton();
$qString = $_GET[$config->userFrameworkURLVar];
......
......@@ -1235,7 +1235,7 @@ class CRM_Contact_Form_Contact extends CRM_Core_Form {
* of key value consist of address blocks.
*
* @return array
* as array of sucess/fails for each address block
* as array of success/fails for each address block
*/
public function parseAddress(&$params) {
$parseSuccess = $parsedFields = array();
......
......@@ -209,7 +209,7 @@ class CRM_Contact_Form_Domain extends CRM_Core_Form {
// check for state/country mapping
$errors = CRM_Contact_Form_Edit_Address::formRule($fields, CRM_Core_DAO::$_nullArray, CRM_Core_DAO::$_nullObject);
// $errors === TRUE means no errors from above formRule excution,
// so declaring $errors to array for futher processing
// so declaring $errors to array for further processing
if ($errors === TRUE) {
$errors = array();
}
......
......@@ -53,7 +53,7 @@ class CRM_Contact_Form_Edit_CommunicationPreferences {
* @return void
*/
public static function buildQuickForm(&$form) {
// since the pcm - preferred comminication method is logically
// since the pcm - preferred communication method is logically
// grouped hence we'll use groups of HTML_QuickForm
// checkboxes for DO NOT phone, email, mail
......
......@@ -34,7 +34,7 @@
*/
/**
* Auxilary class to provide support to the Contact Form class. Does this by implementing
* Auxiliary class to provide support to the Contact Form class. Does this by implementing
* a small set of static methods
*
*/
......
......@@ -34,7 +34,7 @@
*/
/**
* Auxilary class to provide support to the Contact Form class. Does this by implementing
* Auxiliary class to provide support to the Contact Form class. Does this by implementing
* a small set of static methods
*
*/
......
......@@ -34,7 +34,7 @@
*/
/**
* Auxilary class to provide support for locking (and ignoring locks on)
* Auxiliary class to provide support for locking (and ignoring locks on)
* contact records.
*/
class CRM_Contact_Form_Edit_Lock {
......
......@@ -34,7 +34,7 @@
*/
/**
* Auxilary class to provide support to the Contact Form class. Does this by implementing
* Auxiliary class to provide support to the Contact Form class. Does this by implementing
* a small set of static methods
*
*/
......
......@@ -34,7 +34,7 @@
*/
/**
* Auxilary class to provide support for locking (and ignoring locks on)
* Auxiliary class to provide support for locking (and ignoring locks on)
* contact records.
*/
class CRM_Contact_Form_Inline_Lock {
......
......@@ -201,7 +201,7 @@ class CRM_Contact_Form_Task extends CRM_Core_Form {
// need to perform action on only selected contacts
$insertString = array();
// refire sql in case of custom seach
// refire sql in case of custom search
if ($form->_action == CRM_Core_Action::COPY) {
// selected contacts only
// need to perform action on only selected contacts
......
......@@ -855,7 +855,7 @@ class CRM_Contact_Import_Form_MapField extends CRM_Import_Form_MapField {
$updateMappingFields->name = $mapper[$i];
$updateMappingFields->relationship_type_id = 'NULL';
$updateMappingFields->relationship_type_direction = 'NULL';
// to store phoneType id and provider id seperately
// to store phoneType id and provider id separately
// before updating mappingFields for phone and IM, CRM-3140
if (CRM_Utils_Array::value('0', $mapperKeys[$i]) == 'url') {
$updateMappingFields->website_type_id = isset($mapperKeys[$i][1]) ? $mapperKeys[$i][1] : NULL;
......@@ -917,7 +917,7 @@ class CRM_Contact_Import_Form_MapField extends CRM_Import_Form_MapField {
$saveMappingFields->name = ucwords(str_replace("_", " ", $mapperKeys[$i][1]));
$saveMappingFields->relationship_type_id = $id;
$saveMappingFields->relationship_direction = "{$first}_{$second}";
// to get phoneType id and provider id seperately
// to get phoneType id and provider id separately
// before saving mappingFields of phone and IM for related contact, CRM-3140
if (CRM_Utils_Array::value('1', $mapperKeys[$i]) == 'url') {
$saveMappingFields->website_type_id = isset($mapperKeys[$i][2]) ? $mapperKeys[$i][2] : NULL;
......@@ -935,7 +935,7 @@ class CRM_Contact_Import_Form_MapField extends CRM_Import_Form_MapField {
else {
$saveMappingFields->name = $mapper[$i];
$location_id = array_keys($locationTypes, $locations[$i]);
// to get phoneType id and provider id seperately
// to get phoneType id and provider id separately
// before saving mappingFields of phone and IM, CRM-3140
if (CRM_Utils_Array::value('0', $mapperKeys[$i]) == 'url') {
$saveMappingFields->website_type_id = isset($mapperKeys[$i][1]) ? $mapperKeys[$i][1] : NULL;
......
......@@ -306,7 +306,7 @@ class CRM_Contact_Import_Form_Preview extends CRM_Import_Form_Preview {
// add all the necessary variables to the form
$importJob->setFormVariables($this);
// check if there is any error occured
// check if there is any error occurred
$errorStack = CRM_Core_Error::singleton();
$errors = $errorStack->getErrors();
$errorMessage = array();
......@@ -571,7 +571,7 @@ class CRM_Contact_Import_Form_Preview extends CRM_Import_Form_Preview {
// add all the necessary variables to the form
$parser->set($this, CRM_Import_Parser::MODE_IMPORT);
// check if there is any error occured
// check if there is any error occurred
$errorStack = CRM_Core_Error::singleton();
$errors = $errorStack->getErrors();
......
......@@ -335,7 +335,7 @@ class CRM_Contact_Page_AJAX {
$config->userSystem->checkUserNameEmailExists($params, $errors);
if (isset($errors['cms_name']) || isset($errors['name'])) {
//user name is not availble
//user name is not available
$user = array('name' => 'no');
CRM_Utils_JSON::output($user);
}
......@@ -383,7 +383,7 @@ class CRM_Contact_Page_AJAX {
else {
$cid = CRM_Utils_Array::value('cid', $_GET);
if ($cid) {
//check cid for interger
//check cid for integer
$contIDS = explode(',', $cid);
foreach ($contIDS as $contID) {
CRM_Utils_Type::escape($contID, 'Integer');
......@@ -478,7 +478,7 @@ LIMIT {$offset}, {$rowCount}
else {
$cid = CRM_Utils_Array::value('cid', $_GET);
if ($cid) {
//check cid for interger
//check cid for integer
$contIDS = explode(',', $cid);
foreach ($contIDS as $contID) {
CRM_Utils_Type::escape($contID, 'Integer');
......
......@@ -2922,7 +2922,7 @@ WHERE contribution_id = %1 ";
$params['entity_id'] = $financialTxn->id;
}
}
// record line items and finacial items
// record line items and financial items
if (empty($params['skipLineItem'])) {
CRM_Price_BAO_LineItem::processPriceSet($entityId, CRM_Utils_Array::value('line_item', $params), $params['contribution'], $entityTable, $update);
}
......
......@@ -76,7 +76,7 @@ class CRM_Contribute_BAO_ManagePremiums extends CRM_Contribute_DAO_Product {
* Value we want to set the is_active field.
*
* @return Object
* DAO object on sucess, null otherwise
* DAO object on success, null otherwise
*/
public static function setIsActive($id, $is_active) {
if (!$is_active) {
......
......@@ -76,7 +76,7 @@ class CRM_Contribute_BAO_Premium extends CRM_Contribute_DAO_Premium {
* Value we want to set the is_active field.
*
* @return Object
* DAO object on sucess, null otherwise
* DAO object on success, null otherwise
*/
public static function setIsActive($id, $is_active) {
return CRM_Core_DAO::setFieldValue('CRM_Contribute_DAO_Premium', $id, 'premiums_active ', $is_active);
......
......@@ -74,7 +74,7 @@ class CRM_Contribute_Form_Contribution_Main extends CRM_Contribute_Form_Contribu
self::preProcessPaymentOptions($this);
// Make the contributionPageID avilable to the template
// Make the contributionPageID available to the template
$this->assign('contributionPageID', $this->_id);
$this->assign('isShare', CRM_Utils_Array::value('is_share', $this->_values));
$this->assign('isConfirmEnabled', CRM_Utils_Array::value('is_confirm_enabled', $this->_values));
......@@ -940,8 +940,8 @@ class CRM_Contribute_Form_Contribution_Main extends CRM_Contribute_Form_Contribu
$priceFieldIDS['id'] = $fields['priceSetId'];
$self->set('memberPriceFieldIDS', $priceFieldIDS);
$count = CRM_Price_BAO_PriceSet::getMembershipCount($ids);
foreach ($count as $id => $occurance) {
if ($occurance > 1) {
foreach ($count as $id => $occurrence) {
if ($occurrence > 1) {
$errors['_qf_default'] = ts('You have selected multiple memberships for the same organization or entity. Please review your selections and choose only one membership per entity. Contact the site administrator if you need assistance.');
}
}
......
......@@ -65,7 +65,7 @@ class CRM_Contribute_Form_ContributionView extends CRM_Core_Form {
$values['contribution_page_title'] = CRM_Utils_Array::value(CRM_Utils_Array::value('contribution_page_id', $values), $contribPages);
}
// get recieved into i.e to_financial_account_id from last trxn
// get received into i.e to_financial_account_id from last trxn
$financialTrxnId = CRM_Core_BAO_FinancialTrxn::getFinancialTrxnId($values['contribution_id'], 'DESC');
$values['to_financial_account'] = '';
if (!empty($financialTrxnId['financialTrxnId'])) {
......
......@@ -206,7 +206,7 @@ class CRM_Core_BAO_Address extends CRM_Core_DAO_Address {
*/
public static function fixAddress(&$params) {
if (!empty($params['billing_street_address'])) {
//Check address is comming from online contribution / registration page
//Check address is coming from online contribution / registration page
//Fixed :CRM-5076
$billing = array(
'street_address' => 'billing_street_address',
......
......@@ -464,7 +464,7 @@ class CRM_Core_BAO_Block {
if (!empty($params['is_primary'])) {
$sql = "UPDATE $table SET is_primary = 0 WHERE contact_id = %1";
$sqlParams = array(1 => array($contactId, 'Integer'));
// we don't want to create unecessary entries in the log_ tables so exclude the one we are working on
// we don't want to create unnecessary entries in the log_ tables so exclude the one we are working on
if (!empty($params['id'])) {
$sql .= " AND id <> %2";
$sqlParams[2] = array($params['id'], 'Integer');
......
......@@ -113,7 +113,7 @@ class CRM_Core_BAO_ConfigSetting {
}
}
//keep user preferred language upto date, CRM-7746
//keep user preferred language up to date, CRM-7746
$session = CRM_Core_Session::singleton();
$lcMessages = CRM_Utils_Array::value('lcMessages', $params);
if ($lcMessages && $session->get('userID')) {
......
......@@ -336,7 +336,7 @@ class CRM_Core_BAO_CustomField extends CRM_Core_DAO_CustomField {
* Value we want to set the is_active field.
*
* @return Object
* DAO object on sucess, null otherwise
* DAO object on success, null otherwise
*
*/
public static function setIsActive($id, $is_active) {
......
......@@ -244,7 +244,7 @@ class CRM_Core_BAO_CustomGroup extends CRM_Core_DAO_CustomGroup {
* Value we want to set the is_active field.
*
* @return Object
* DAO object on sucess, null otherwise
* DAO object on success, null otherwise
*/
public static function setIsActive($id, $is_active) {
// reset the cache
......
......@@ -616,7 +616,7 @@ AND cf.id IN ( $fieldIDList )
* To get the values of custom fields with IDs 13 and 43 for contact ID 1327, use:
* $params = array( 'entityID' => 1327, 'custom_13' => 1, 'custom_43' => 1 );
*
* Entity Type will be infered by the custom fields you request
* Entity Type will be inferred by the custom fields you request
* Specify $params['entityType'] if you do not supply any custom fields to return
* and entity type is other than Contact
*
......
......@@ -193,7 +193,7 @@ LIMIT 1;";
* Id of the entity usually the contactID.
*
* @return array
* array of catagory id's the contact belongs to.
* array of category id's the contact belongs to.
*
*/
public static function getFinancialTrxnTotal($entity_id) {
......@@ -269,7 +269,7 @@ WHERE ef2.financial_trxn_id =%1
* Name of the entity table usually 'civicrm_contact'.
*
* @return array
* array of catagory id's the contact belongs to.
* array of category id's the contact belongs to.
*
*/
public static function getFinancialTrxnLineTotal($entity_id, $entity_table = 'civicrm_contribution') {
......
......@@ -91,7 +91,7 @@ class CRM_Core_BAO_Job extends CRM_Core_DAO_Job {
* Value we want to set the is_active field.
*
* @return Object
* DAO object on sucess, null otherwise
* DAO object on success, null otherwise
*
*/
public static function setIsActive($id, $is_active) {
......
......@@ -77,7 +77,7 @@ class CRM_Core_BAO_LocationType extends CRM_Core_DAO_LocationType {
* Value we want to set the is_active field.
*
* @return Object
* DAO object on sucess, null otherwise
* DAO object on success, null otherwise
*
*/
public static function setIsActive($id, $is_active) {
......
......@@ -563,7 +563,7 @@ class CRM_Core_BAO_Mapping extends CRM_Core_DAO_Mapping {
foreach ($sel1 as $key => $sel) {
if ($key) {
// sort everything BUT the contactType which is sorted seperately by
// sort everything BUT the contactType which is sorted separately by
// an initial commit of CRM-13278 (check ksort above)
if (!in_array($key, $contactType)) {
asort($mapperFields[$key]);
......
......@@ -69,7 +69,7 @@ class CRM_Core_BAO_MessageTemplate extends CRM_Core_DAO_MessageTemplate {
* Value we want to set the is_active field.
*
* @return Object
* DAO object on sucess, NULL otherwise
* DAO object on success, NULL otherwise
*/
public static function setIsActive($id, $is_active) {
return CRM_Core_DAO::setFieldValue('CRM_Core_DAO_MessageTemplate', $id, 'is_active', $is_active);
......
......@@ -70,7 +70,7 @@ class CRM_Core_BAO_OptionGroup extends CRM_Core_DAO_OptionGroup {
* Value we want to set the is_active field.
*
* @return Object
* DAO object on sucess, null otherwise
* DAO object on success, null otherwise
*/
public static function setIsActive($id, $is_active) {
return CRM_Core_DAO::setFieldValue('CRM_Core_DAO_OptionGroup', $id, 'is_active', $is_active);
......
......@@ -153,7 +153,7 @@ class CRM_Core_BAO_OptionValue extends CRM_Core_DAO_OptionValue {
* Value we want to set the is_active field.
*
* @return Object
* DAO object on sucess, null otherwise
* DAO object on success, null otherwise
*/
public static function setIsActive($id, $is_active) {
return CRM_Core_DAO::setFieldValue('CRM_Core_DAO_OptionValue', $id, 'is_active', $is_active);
......
......@@ -76,7 +76,7 @@ class CRM_Core_BAO_PreferencesDate extends CRM_Core_DAO_PreferencesDate {
* Value we want to set the is_active field.
*
* @return void
* DAO object on sucess, null otherwise
* DAO object on success, null otherwise
*
*/
public static function setIsActive($id, $is_active) {
......
......@@ -324,7 +324,7 @@ class CRM_Core_BAO_RecurringEntity extends CRM_Core_DAO_RecurringEntity {
}
/**
* This function iterates through when object criterias and
* This function iterates through when object criteria and
* generates recursive dates based on that
*
* @return array
......@@ -989,11 +989,11 @@ class CRM_Core_BAO_RecurringEntity extends CRM_Core_DAO_RecurringEntity {
}
/**
* This function takes criterias saved in civicrm_action_schedule table
* This function takes criteria saved in civicrm_action_schedule table
* and creates recursion rule
*
* @param array $scheduleReminderDetails
* Array of repeat criterias saved in civicrm_action_schedule table .
* Array of repeat criteria saved in civicrm_action_schedule table .
*
* @return object
* When object
......
......@@ -208,10 +208,10 @@ class CRM_Core_BAO_Tag extends CRM_Core_DAO_Tag {
$tags = array();
}
// We need to build a list of tags ordered by hierarchy and sorted by
// name. The heirarchy will be communicated by an accumulation of
// name. The hierarchy will be communicated by an accumulation of
// separators in front of the name to give it a visual offset.
// Instead of recursively making mysql queries, we'll make one big
// query and build the heirarchy with the algorithm below.
// query and build the hierarchy with the algorithm below.
$args = array(1 => array('%' . $usedFor . '%', 'String'));
$query = "SELECT id, name, parent_id, is_tagset, is_selectable
FROM civicrm_tag
......@@ -323,7 +323,7 @@ class CRM_Core_BAO_Tag extends CRM_Core_DAO_Tag {
*/
public static function del($id) {
// since this is a destructive operation, lets make sure
// id is a postive number
// id is a positive number
CRM_Utils_Type::validate($id, 'Positive');
// delete all crm_entity_tag records with the selected tag id
......
......@@ -83,7 +83,7 @@ class CRM_Core_BAO_UFField extends CRM_Core_DAO_UFField {
* Value we want to set the is_active field.
*