We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -414,7 +414,7 @@ discard block |
||
| 414 | 414 | // Add filter query for date search |
| 415 | 415 | if (!empty($this->searchParams['dateFrom']) && !empty($this->searchParams['dateTo'])) { |
| 416 | 416 | // combine dateFrom and dateTo into range search |
| 417 | - $params['filterquery'][]['query'] = '{!join from=' . $fields['uid'] . ' to=' . $fields['uid'] . '}'. $fields['date'] . ':[' . $this->searchParams['dateFrom'] . ' TO ' . $this->searchParams['dateTo'] . ']'; |
|
| 417 | + $params['filterquery'][]['query'] = '{!join from=' . $fields['uid'] . ' to=' . $fields['uid'] . '}' . $fields['date'] . ':[' . $this->searchParams['dateFrom'] . ' TO ' . $this->searchParams['dateTo'] . ']'; |
|
| 418 | 418 | } |
| 419 | 419 | |
| 420 | 420 | // Add filter query for faceting. |
@@ -532,8 +532,8 @@ discard block |
||
| 532 | 532 | if ($this->searchParams['fulltext'] == '1') { |
| 533 | 533 | $searchResult['snippet'] = $doc['snippet']; |
| 534 | 534 | $searchResult['highlight'] = $doc['highlight']; |
| 535 | - $searchResult['highlight_word'] = preg_replace('/^;|;$/', '', // remove ; at beginning or end |
|
| 536 | - preg_replace('/;+/', ';', // replace any multiple of ; with a single ; |
|
| 535 | + $searchResult['highlight_word'] = preg_replace('/^;|;$/', '', // remove ; at beginning or end |
|
| 536 | + preg_replace('/;+/', ';', // replace any multiple of ; with a single ; |
|
| 537 | 537 | preg_replace('/[{~\d*}{\s+}{^=*\d+.*\d*}`~!@#$%\^&*()_|+-=?;:\'",.<>\{\}\[\]\\\]/', ';', $this->searchParams['query']))); // replace search operators and special characters with ; |
| 538 | 538 | } |
| 539 | 539 | $documents[$doc['uid']]['searchResults'][] = $searchResult; |
@@ -861,7 +861,7 @@ discard block |
||
| 861 | 861 | private function translateLanguageCode(&$doc): void |
| 862 | 862 | { |
| 863 | 863 | if (is_array($doc['metadata']) && array_key_exists('language', $doc['metadata'])) { |
| 864 | - foreach($doc['metadata']['language'] as $indexName => $language) { |
|
| 864 | + foreach ($doc['metadata']['language'] as $indexName => $language) { |
|
| 865 | 865 | $doc['metadata']['language'][$indexName] = Helper::getLanguageName($language); |
| 866 | 866 | } |
| 867 | 867 | } |