Commit b44e3f84 authored by Dmitry Smirnov's avatar Dmitry Smirnov
Browse files

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];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment