From a1619a64c375f17ed3d8639140728f8c036cb9c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Chlo=C3=A9=20Zermatten?= Date: Fri, 23 Aug 2024 12:41:02 +0100 Subject: [PATCH] style: remove redundant spaces --- code/web/sys/SearchObject/SummonSearcher.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/code/web/sys/SearchObject/SummonSearcher.php b/code/web/sys/SearchObject/SummonSearcher.php index bd68f28dcb..0845665fed 100644 --- a/code/web/sys/SearchObject/SummonSearcher.php +++ b/code/web/sys/SearchObject/SummonSearcher.php @@ -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; } @@ -429,7 +429,7 @@ public function getSortList() { 'desc' => $label, 'selected' => ($sort == $this->sort), ]; - } + } } return $list; } @@ -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; @@ -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; @@ -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']}"; @@ -753,9 +753,9 @@ public function getSearchIndexes() { 'inAttribute' => true, ]) ]; - } + } - //Default search index + //Default search index public function getDefaultIndex() { return $this->searchIndex; } @@ -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() {