Skip to content

Commit

Permalink
style: replace double spaces with single spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
Chloe070196 committed Aug 23, 2024
1 parent 6a56405 commit cda045b
Showing 1 changed file with 25 additions and 25 deletions.
50 changes: 25 additions & 25 deletions code/web/sys/SearchObject/SummonSearcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ class SearchObject_SummonSearcher extends SearchObject_BaseSearcher{
protected $journalTitle = false;
protected $lightWeightRes = false;
protected $sort = null;
/**
/**
* @var string mixed
*/
private $searchIndex = 'Title';
Expand Down Expand Up @@ -112,13 +112,13 @@ public function __construct() {
$this->resultsModule = 'Summon';
$this->resultsAction = 'Results';
}

/**
* Initialise the object from the global
* search parameters in $_REQUEST.
* @access public
* search parameters in $_REQUEST.
* @access public
* @param string $searchSource
* @return boolean
* @return boolean
*/
public function init($searchSource = null) {
//********************
Expand Down Expand Up @@ -272,7 +272,7 @@ public function getOptions () {
//2 by default - max database reccomendations
's.rec.db.max' => $this->maxRecDb,
//allows access to records
's.role' => 'authenticated',
's.role' => 'authenticated',
);
return $options;
}
Expand Down Expand Up @@ -315,8 +315,8 @@ public function splitFacets($combinedFacets) {
/**
* Return an array of data summarising the results of a search.
*
* @access public
* @return array summary of results
* @access public
* @return array summary of results
*/
public function getResultSummary() {
$summary = [];
Expand All @@ -341,8 +341,8 @@ public function getResultSummary() {

/** Return a url for use by pagination template
*
* @access public
* @return string URL of a new search
* @access public
* @return string URL of a new search
*/
public function renderLinkPageTemplate() {
// Stash our old data for a minute
Expand All @@ -361,8 +361,8 @@ public function renderLinkPageTemplate() {
* Use the record driver to build an array of HTML displays from the search
* results. Called by results.php.
*
* @access public
* @return array Array of HTML chunks for individual records.
* @access public
* @return array Array of HTML chunks for individual records.
*/
public function getResultRecordHTML() {
global $interface;
Expand Down Expand Up @@ -392,8 +392,8 @@ public function getResultRecordHTML() {
* Use the record driver to build an array of HTML displays from the search
* results.
*
* @access public
* @return array Array of HTML chunks for individual records.
* @access public
* @return array Array of HTML chunks for individual records.
*/
public function getCombinedResultHTML() {
global $interface;
Expand All @@ -416,7 +416,7 @@ public function getCombinedResultHTML() {
$html[] = "Unable to find record";
}
return $html;
}
}

//Assign properties to each of the sort options
public function getSortList() {
Expand All @@ -437,9 +437,9 @@ public function getSortList() {
/**
* Return a url for the current search with a new sort
*
* @access public
* @access public
* @param string $newSort A field to sort by
* @return string URL of a new search
* @return string URL of a new search
*/
public function renderLinkWithSort($newSort) {
// Stash our old data for a minute
Expand Down Expand Up @@ -579,11 +579,11 @@ public function getSummonFilters() {
/**
* Generate an HMAC hash for authentication
*
* @param string $key Hash key
* @param string $key Hash key
* @param string $data Data to hash
*
* @return string Generated hash
*/
* @return string Generated hash
*/
protected function hmacsha1($key, $data) {
$blocksize=64;
$hashfunc='sha1';
Expand Down Expand Up @@ -660,7 +660,7 @@ public function process($input, $textQuery = null) {
)
);
}
// Detect errors
// Detect errors
if (isset(SearchObject_SummonSearcher::$searchOptions['errors']) && is_array(SearchObject_SummonSearcher::$searchOptions['errors'])) {
foreach (SearchObject_SummonSearcher::$searchOptions['errors'] as $current) {
$errors[] = "{$current['code']}: {$current['message']}";
Expand Down Expand Up @@ -702,7 +702,7 @@ protected function httpRequest($baseUrl, $queryString, $headers) {
}

/**
* Start the timer to work out how long a query takes. Complements
* Start the timer to work out how long a query takes. Complements
* stopQueryTimer().
*
* @access protected
Expand All @@ -714,7 +714,7 @@ protected function startQueryTimer() {
}

/**
* End the timer to work out how long a query takes. Complements
* End the timer to work out how long a query takes. Complements
* startQueryTimer().
*
* @access protected
Expand All @@ -733,8 +733,8 @@ public function getQuerySpeed() {
}

/**
* Search indexes
*/
* Search indexes
*/
public function getSearchIndexes() {
return [
"Title" => translate([
Expand Down

0 comments on commit cda045b

Please sign in to comment.