From e2fdb9e3c20ad612aa3a6e152cacd980374bb8de Mon Sep 17 00:00:00 2001 From: Brandon Weigel Date: Wed, 25 Nov 2020 16:23:16 +0000 Subject: [PATCH] Travis --- includes/admin.form.inc | 4 ++-- includes/orphaned_objects.inc | 7 +++---- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/includes/admin.form.inc b/includes/admin.form.inc index a8598b69..0d6ae539 100644 --- a/includes/admin.form.inc +++ b/includes/admin.form.inc @@ -133,8 +133,8 @@ function islandora_repository_admin(array $form, array &$form_state) { '#description' => t('How the Orphaned Islandora Objects list is generated.'), '#default_value' => variable_get('islandora_orphaned_objects_backend', 'SPARQL'), '#options' => array( - 'Solr' => t('Solr'), - 'SPARQL' => t('SPARQL'), + 'Solr' => t('Solr'), + 'SPARQL' => t('SPARQL'), ), ), 'islandora_risearch_use_itql_when_necessary' => array( diff --git a/includes/orphaned_objects.inc b/includes/orphaned_objects.inc index 0a71fe1e..e911995e 100644 --- a/includes/orphaned_objects.inc +++ b/includes/orphaned_objects.inc @@ -169,7 +169,7 @@ function islandora_get_orphaned_objects() { $qp->solrParams['fl'] = $params; $qp->solrLimit = 1000000000; - // Check islandora_compound_object filters, include compound children if necessary. + // Check islandora_compound_object filters to include compound children. if (variable_get('islandora_compound_object_hide_child_objects_solr', TRUE)) { $fq = variable_get('islandora_compound_object_solr_fq', '-RELS_EXT_isConstituentOf_uri_mt:[* TO *]'); if (!empty($fq)) { @@ -319,11 +319,10 @@ function islandora_delete_orphaned_objects_create_batch(array $pids) { /** * Solr query to check for deceased parents. - * */ function islandora_identify_missing_parents($parent) { $parent_params = "PID"; - $parent_test = substr($parent, strpos($parent, '/') +1); + $parent_test = substr($parent, strpos($parent, '/') + 1); $parent_query = 'PID:"' . $parent_test . '"'; $qp = new islandoraSolrQueryProcessor(); $qp->buildQuery($parent_query); @@ -337,7 +336,7 @@ function islandora_identify_missing_parents($parent) { watchdog_exception('Islandora', $e, 'Got an exception searching for parent objects .', array(), WATCHDOG_ERROR); $parent_results = array(); } - return($parent_results); + return ($parent_results); }