Skip to content

Commit

Permalink
style: remove redundant spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
Chloe070196 committed Aug 23, 2024
1 parent 4badf7e commit 06e4664
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions code/web/sys/SearchObject/SummonSearcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ public function init($searchSource = null) {
* Create an instance of the Summon Searcher
* @return SearchObject_SummonSearcher
*/
public static function getInstance() {
public static function getInstance() {
if (SearchObject_SummonSearcher::$instance == null) {
SearchObject_SummonSearcher::$instance = new SearchObject_SummonSearcher();
}
Expand Down Expand Up @@ -339,7 +339,7 @@ public function getResultSummary() {
return $summary;
}

/** Return a url for use by pagination template
/** Return a url for use by pagination template
*
* @access public
* @return string URL of a new search
Expand Down Expand Up @@ -429,7 +429,7 @@ public function getSortList() {
'desc' => $label,
'selected' => ($sort == $this->sort),
];
}
}
}
return $list;
}
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 @@ -732,10 +732,10 @@ public function getQuerySpeed() {
return $this->queryTime;
}

/**
/**
* Search indexes
*/
public function getSearchIndexes() {
public function getSearchIndexes() {
return [
"Title" => translate([
'text' => "Title",
Expand All @@ -753,9 +753,9 @@ public function getSearchIndexes() {
'inAttribute' => true,
])
];
}
}

//Default search index
//Default search index
public function getDefaultIndex() {
return $this->searchIndex;
}
Expand Down

0 comments on commit 06e4664

Please sign in to comment.