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 01f4559 commit c3a373f
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions code/web/sys/SearchObject/SummonSearcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ public function authenticate($settings, $queryString) {
$headers['Authorization'] = "Summon $settings->summonApiId;$hmacHash";
if (!is_null($this->sessionId)){
$headers['x-summon-session-id'] = $this->sessionId;
}
}
return $headers;
}

Expand Down Expand Up @@ -429,7 +429,7 @@ public function getSortList() {
'desc' => $label,
'selected' => ($sort == $this->sort),
];
}
}
}
return $list;
}
Expand Down Expand Up @@ -565,11 +565,11 @@ public function getSummonFilters() {
if (is_array($value)) {
foreach ($value as $val) {
$encodedValue = urlencode($val);
$this->filters[] = urlencode($key) . ',' . $encodedValue . ',';
$this->filters[] = urlencode($key) . ',' . $encodedValue . ',';
}
} else {
$encodedValue = urlencode($value);
$this->filters[] = urlencode($key) . ',' . $encodedValue . ',';
$this->filters[] = urlencode($key) . ',' . $encodedValue . ',';
}
}
return $this->filters;
Expand Down Expand Up @@ -633,7 +633,7 @@ public function sendRequest() {
$headers = $this->authenticate($settings, $queryString);
$recordData = $this->httpRequest($baseUrl, $queryString, $headers);
if (!empty($recordData)){
$recordData = $this->processData($recordData);
$recordData = $this->processData($recordData);
$this->stopQueryTimer();
}
return $recordData;
Expand All @@ -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 @@ -753,9 +753,9 @@ public function getSearchIndexes() {
'inAttribute' => true,
])
];
}
}

//Default search index
//Default search index
public function getDefaultIndex() {
return $this->searchIndex;
}
Expand Down Expand Up @@ -822,7 +822,7 @@ public function getresultsTotal(){
return $this->resultsTotal;
}

public function processSearch($returnIndexErrors = false, $recommendations = false, $preventQueryModification = false) {
public function processSearch($returnIndexErrors = false, $recommendations = false, $preventQueryModification = false) {
}

public function __destruct() {
Expand Down

0 comments on commit c3a373f

Please sign in to comment.