if (is_array($extendsChildType)) {
foreach ($extendsChildType as $childType) {
if (!array_key_exists($childType, $registeredSubTypes) && !in_array($childType, $registeredSubTypes, TRUE)) {
- throw new CRM_Core_Exception('Supplied Sub type is not valid for the specified entitiy');
+ throw new CRM_Core_Exception('Supplied Sub type is not valid for the specified entity');
}
}
}
else {
if (!array_key_exists($extendsChildType, $registeredSubTypes) && !in_array($extendsChildType, $registeredSubTypes, TRUE)) {
- throw new CRM_Core_Exception('Supplied Sub type is not valid for the specified entitiy');
+ throw new CRM_Core_Exception('Supplied Sub type is not valid for the specified entity');
}
$extendsChildType = [$extendsChildType];
}
$sorter = new FixedArraySort();
$formEntities = array_keys($this->getFormDataModel()->getEntities());
foreach ($formEntities as $entityName) {
- // Add all dependencies that are the valid name of another entitiy
+ // Add all dependencies that are the valid name of another entity
$dependencies = array_intersect($this->dependencies[$entityName] ?? [], $formEntities);
$sorter->add($entityName, $dependencies);
}
* It 'steals and deletes entities that are part of the 'stock build'.
*
* In general this causes weird stuff and is worse that competing functions
- * like individualCreate() eventCreateUnpaid() or createTestEntitiy().
+ * like individualCreate() eventCreateUnpaid() or createTestEntity().
*
* @param $daoName
* @param array $params
'is_active' => 1,
];
- $result = $this->callAPIFailure('custom_group', 'create', $params, 'Supplied Sub type is not valid for the specified entitiy');
+ $result = $this->callAPIFailure('custom_group', 'create', $params, 'Supplied Sub type is not valid for the specified entity');
}
/**