Skip to content

Commit

Permalink
Fix minor typos 2
Browse files Browse the repository at this point in the history
  • Loading branch information
dsenalik committed Feb 4, 2018
1 parent cf420eb commit 76f04f9
Show file tree
Hide file tree
Showing 21 changed files with 29 additions and 29 deletions.
Expand Up @@ -1217,7 +1217,7 @@ function chado_node_get_unique_constraint_format($base_table, $format_type = 'ti
tripal_report_error(
'tripal_node_api',
TRIPAL_ERROR,
'Unable to determine the format for the unique contraint since the format type (%format-type) is not supported (only "title" and "url" are at this time).',
'Unable to determine the format for the unique constraint since the format type (%format-type) is not supported (only "title" and "url" are at this time).',
array('%format-type' => $format_type)
);
}
Expand Down
2 changes: 1 addition & 1 deletion legacy/tripal_cv/api/tripal_cv.api.inc
Expand Up @@ -16,7 +16,7 @@
*/

/**
* Retreives the default vocabulary for a given table and field.
* Retrieves the default vocabulary for a given table and field.
*
* Each table in Chado that has a 'type_id' (or foreign key constraint to
* the cvterm table) will have a default vocabulary assigned. This indicates to
Expand Down
2 changes: 1 addition & 1 deletion legacy/tripal_feature/tripal_feature.drush.inc
Expand Up @@ -43,7 +43,7 @@ function tripal_feature_drush_command() {
'parent' => dt('Set this argument to 1 to retrieve the sequence from the parent in an alignment rather than the residues column of the feature itself.'),
'agg' => dt('Set this argument to 1 to aggregate sub features into a single sequence. This is useful, for example, for obtaining CDS sequence from an mRNA'),
'child' => dt('Set this argument to the exact sequence ontology term for the children to aggregate. This is useful in the case where a gene has exons as well as CDSs and UTRs. You may sepcify as many feature types as desired by separating each with a single comma (no spaces). Term matching is case-sensitive.'),
'relationship' => dt('Retreives the sequence of any feature in the specified relationship with the matched features.'),
'relationship' => dt('Retrieves the sequence of any feature in the specified relationship with the matched features.'),
'rel_part' => dt('If a relationship is provided, then this will be "subject" or "object" indicating the side of the relationship for the matched features. If the matched features are the "object" then the "subject" features will have their sequences included in the output (and vice versa).'),
'width' => dt('The number of nucleotides per row (defaults to 50).')
),
Expand Down
Expand Up @@ -209,7 +209,7 @@ function chado_organism_form($node, $form_state) {
$terms = tripal_get_cvterm_select_options($cv->cv_id);

// Unfortunately the taxonomic_rank vocabulary is not properly organized
// such that we an only include terms below 'species'. Therefore we will
// such that we only include terms below 'species'. Therefore we will
// just list them here and hope we haven't missed one.
$valid_terms = array('subspecies', 'varietas', 'subvariety', 'forma', 'subforma');
foreach ($terms as $cvterm_id => $name) {
Expand Down
4 changes: 2 additions & 2 deletions tripal/api/tripal.files.api.inc
Expand Up @@ -65,7 +65,7 @@ function tripal_create_files_dir($module_name, $path = FALSE) {
}

/**
* Retreives the Drupal relative directory for a Tripal module.
* Retrieves the Drupal relative directory for a Tripal module.
*
* Each Tripal module has a unique data directory which was created using the
* tripal_create_files_dir function during installation. This function
Expand Down Expand Up @@ -97,7 +97,7 @@ function tripal_get_files_dir($module_name = FALSE) {
}

/**
* Retreives the Drupal stream (e.g. public://...) for a Tripal module.
* Retrieves the Drupal stream (e.g. public://...) for a Tripal module.
*
* Each Tripal module has a unique data directory which was created using the
* tripal_create_files_dir function during installation. This function
Expand Down
6 changes: 3 additions & 3 deletions tripal/includes/TripalEntityCollection.inc
Expand Up @@ -242,7 +242,7 @@ class TripalEntityCollection {
* Retrieves the list of entity IDs.
*
* @return
* An array of numeric enity IDs.
* An array of numeric entity IDs.
*/
public function getEntityIDs(){
return $this->ids;
Expand Down Expand Up @@ -275,7 +275,7 @@ class TripalEntityCollection {
}

/**
* Retreives the name of the collection.
* Retrieves the name of the collection.
*
* @return
* A string containing the name of the collection.
Expand All @@ -295,7 +295,7 @@ class TripalEntityCollection {
}

/**
* Retreives the collection description
* Retrieves the collection description
*
* @return
* A string containing the description of the collection.
Expand Down
Expand Up @@ -169,7 +169,7 @@ abstract class TripalFieldDownloader {
abstract protected function formatEntity($entity);

/**
* Retreives header lines
* Retrieves header lines
*
* This function should be implemented by a child class. It should return
* the header lines for an output file.
Expand Down
2 changes: 1 addition & 1 deletion tripal/includes/TripalFields/TripalField.inc
Expand Up @@ -17,7 +17,7 @@ class TripalField {
// The default description for this field.
public static $default_description = 'The generic base class for all Tripal fields. Replace this text as appropriate for the child implementation.';

// Provide a list of global settings. These can be accessed witihn the
// Provide a list of global settings. These can be accessed within the
// globalSettingsForm. When the globalSettingsForm is submitted then
// Drupal will automatically change these settings for all fields.
// Once instances exist for a field type then these settings cannot be
Expand Down
2 changes: 1 addition & 1 deletion tripal/includes/TripalFields/rdfs__type/rdfs__type.inc
Expand Up @@ -8,7 +8,7 @@ class rdfs__type extends TripalField {
// The default description for this field.
public static $description = 'The resource content type.';

// Provide a list of global settings. These can be accessed witihn the
// Provide a list of global settings. These can be accessed within the
// globalSettingsForm. When the globalSettingsForm is submitted then
// Drupal will automatically change these settings for all fields.
public static $default_settings = array();
Expand Down
Expand Up @@ -155,7 +155,7 @@ function tripal_bulk_loader_modify_template_base_form($form, &$form_state = NULL
'#collapsible' => TRUE,
'#weight' => 2,
'#description' => t('A "Record" is an entry in a database table. Each of the records '
. 'added to the bulk loader will be added per constant set and per line of you '
. 'added to the bulk loader will be added per constant set and per line of your '
. 'input file when a Tripal Bulk Loading Job is created using this template. '
. 'Furthermore, if you add two records for the same table (i.e. feature table) then '
. 'two distinct entries will be created per line (i.e. if recordA specifies a parent '
Expand Down Expand Up @@ -2172,7 +2172,7 @@ function tripal_bulk_loader_template_field_form($form, &$form_state = NULL) {
'#description' => 'You can use standard php regular expressions in this field to specify a '
.'pattern. Only if this pattern matches the value in the data file does the replacement '
.'pattern get applied to the value. To capture a section of your value for use in the '
.'replacement patten surround with round brackets. For example, <i>GI:(\d+)</i> will match '
.'replacement pattern surround with parentheses. For example, <i>GI:(\d+)</i> will match '
.' NCBI gi numbers and will capture the numerical digits for use in the replacement pattern. '
.' To match and capture any value use <i>.*</i>',
'#default_value' => $pattern_default,
Expand Down
2 changes: 1 addition & 1 deletion tripal_chado/api/tripal_chado.entity.api.inc
Expand Up @@ -108,7 +108,7 @@ function chado_get_record_entity_by_table($data_table, $record_id) {
* table should always be unique.
*
* @param $bundle
* A bundle object (as retreieved from tripal_load_bundle_entity().
* A bundle object (as retrieved from tripal_load_bundle_entity().
*
* @return
* The name of the mapping table that Chado uses to map entities to records.
Expand Down
6 changes: 3 additions & 3 deletions tripal_chado/api/tripal_chado.query.api.inc
Expand Up @@ -508,7 +508,7 @@ function chado_insert_record($table, $values, $options = array()) {
if ($ukeys) {
foreach ($ukeys as $name => $fields) {
foreach ($fields as $index => $field) {
// build the arrays for performing a select that will check the contraint
// build the arrays for performing a select that will check the constraint
$ukselect_cols[] = $field;
if (!array_key_exists($field, $insert_values)) {
if (array_key_exists('default', $table_desc['fields'][$field])) {
Expand Down Expand Up @@ -1265,7 +1265,7 @@ function chado_select_record($table, $columns, $values, $options = NULL) {
foreach ($fields as $field) {
if (array_key_exists($field, $values)) {
$new_values[$field] = $values[$field];
// if there is no primary key then use the unique contraint fields
// if there is no primary key then use the unique constraint fields
if (!$has_pkey) {
array_push($new_columns, $field);
}
Expand Down Expand Up @@ -1821,7 +1821,7 @@ function chado_pager_get_count($element) {
* This function is used by chado_select_record, chado_insert_record,
* and chado_update_record to iterate through the associate array of
* values that gets passed to each of those routines. The values array
* is nested where foreign key contraints are used to specify a value that. See
* is nested where foreign key constraints are used to specify a value that. See
* documentation for any of those functions for further information.
*
* @param $table_desc
Expand Down
Expand Up @@ -226,7 +226,7 @@ class obi__organism extends ChadoField {
'elements' => array(
'rdfs:label' => array(
'searchable' => TRUE,
'name' => 'scientfic_name',
'name' => 'scientific_name',
'operations' => array('eq', 'ne', 'contains', 'starts'),
'sortable' => FALSE,
'type' => 'xs:string',
Expand Down
2 changes: 1 addition & 1 deletion tripal_chado/includes/TripalImporter/OBOImporter.inc
Expand Up @@ -983,7 +983,7 @@ class OBOImporter extends TripalImporter {
}

/**
* Retreives the term array from the temp loading table for a given term id.
* Retrieves the term array from the temp loading table for a given term id.
*
* @param id
* The id of the term to retrieve
Expand Down
Expand Up @@ -405,7 +405,7 @@ function tripal_pub_remote_search_AGL($search_array, $num_to_retrieve, $page) {
}

/**
* Retreives a range of publications from AGL
* Retrieves a range of publications from AGL
*
* @param $yazc
* The YAZC connection object.
Expand Down Expand Up @@ -475,7 +475,7 @@ function tripal_pub_AGL_range($yazc, $search_str, $start, $num_to_retrieve, $tot
}

/**
* Retreives the total number of publications that match the search string.
* Retrieves the total number of publications that match the search string.
*
* @param $yazc
* The YAZC connection object.
Expand Down
Expand Up @@ -262,7 +262,7 @@ function tripal_pub_PMID_search_init($search_str, $retmax){
}

/**
* Retreives from PubMed a set of publications from the
* Retrieves from PubMed a set of publications from the
* previously initiated query.
*
* @param $query_key
Expand Down
2 changes: 1 addition & 1 deletion tripal_chado/includes/tripal_chado.bundle.inc
Expand Up @@ -70,7 +70,7 @@ function tripal_chado_bundle_create($bundle, $storage_args) {
* Creates the table that tripal_chado uses to link Chado records with entities.
*
* @param $bundle
* A bundle object (as retreieved from tripal_load_bundle_entity().
* A bundle object (as retrieved from tripal_load_bundle_entity().
*/
function tripal_chado_create_bundle_table($bundle) {

Expand Down
Expand Up @@ -403,7 +403,7 @@ function tripal_chado_views_integration_form($form, &$form_state) {
.'default core and module definitions. The views integration definition with the '
.'lightest priority will be used. For example, if there is a definition created by '
.'core with a priority of 10 and another by a custom module of 5 and yours is -1 then '
.'you definition will be used for that table because -1 is lighter then both 5 and 10.'),
.'your definition will be used for that table because -1 is lighter than both 5 and 10.'),
'#options' => $priorities,
'#default_value' => $default,
);
Expand Down
Expand Up @@ -66,7 +66,7 @@ function tripal_chado_views_integration_import_form() {
.'default core and module definitions. The views integration definition with the '
.'lightest priority will be used. For example, if there is a definition created by '
.'core with a priority of 10 and another by a custom module of 5 and yours is -1 then '
.'you definition will be used for that table because -1 is lighter then both 5 and 10.'),
.'your definition will be used for that table because -1 is lighter than both 5 and 10.'),
'#options' => $priorities,
'#default_value' => -1,
);
Expand Down
2 changes: 1 addition & 1 deletion tripal_ws/includes/TripalWebService.inc
Expand Up @@ -258,7 +258,7 @@ class TripalWebService {
}

/**
* Retreives the service URL for this service.
* Retrieves the service URL for this service.
*/
public function getServicePath() {
$class = get_class($this);
Expand Down
4 changes: 2 additions & 2 deletions tripal_ws/includes/TripalWebServiceResource.inc
Expand Up @@ -220,7 +220,7 @@ class TripalWebServiceResource {
}

/**
* Retreives the IRI for an entity of a given ID in this web service.
* Retrieves the IRI for an entity of a given ID in this web service.
*
* @param $id
* The unique identifier for the resource.
Expand Down Expand Up @@ -259,7 +259,7 @@ class TripalWebServiceResource {
}

/**
* Retreives the type of this resource.
* Retrieves the type of this resource.
*
* @return
* The name of the resource.
Expand Down

0 comments on commit 76f04f9

Please sign in to comment.