We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -316,7 +316,7 @@ |
||
316 | 316 | */ |
317 | 317 | private function getFieldWrap($index_name, $wrap) { |
318 | 318 | |
319 | - if(isset($this->fieldwrap[$index_name])) { |
|
319 | + if (isset($this->fieldwrap[$index_name])) { |
|
320 | 320 | |
321 | 321 | return $this->fieldwrap[$index_name]; |
322 | 322 |
@@ -412,7 +412,7 @@ |
||
412 | 412 | |
413 | 413 | } else { |
414 | 414 | |
415 | - $toplevel[$doc->uid]['p'][$doc->id] = array ( |
|
415 | + $toplevel[$doc->uid]['p'][$doc->id] = array ( |
|
416 | 416 | 'u' => $doc->id, |
417 | 417 | 'h' => (!empty($results->highlighting->{$doc->id}->fulltext) ? $results->highlighting->{$doc->id}->fulltext[0] : '') |
418 | 418 | ); |
@@ -296,10 +296,10 @@ |
||
296 | 296 | |
297 | 297 | } elseif (isset($record['subparts'][$resArray->id])) { |
298 | 298 | |
299 | - $record['subparts'][$resArray->id] = array ( |
|
299 | + $record['subparts'][$resArray->id] = array ( |
|
300 | 300 | 'uid' => $resArray->uid, |
301 | 301 | 'page' => $resArray->page, |
302 | - 'preview' => (!empty($result_highlights->highlighting->{$resArray->id}->fulltext[0])?$result_highlights->highlighting->{$resArray->id}->fulltext[0]:""), |
|
302 | + 'preview' => (!empty($result_highlights->highlighting->{$resArray->id}->fulltext[0])?$result_highlights->highlighting->{$resArray->id}->fulltext[0]:""), |
|
303 | 303 | 'thumbnail' => $resArray->thumbnail, |
304 | 304 | 'metadata' => $metadata |
305 | 305 | ); |
@@ -241,7 +241,7 @@ discard block |
||
241 | 241 | |
242 | 242 | if ($this->solrConnect()) { |
243 | 243 | |
244 | - $params = array(); |
|
244 | + $params = array (); |
|
245 | 245 | |
246 | 246 | // Restrict the fields to the required ones |
247 | 247 | $params['fl'] = "uid,id,toplevel,thumbnail,page"; |
@@ -256,9 +256,9 @@ discard block |
||
256 | 256 | $result = $this->solr->service->search('uid:'.tx_dlf_solr::escapeQuery($record['uid']), 0, $this->solr->limit, $params); |
257 | 257 | |
258 | 258 | // If it is a fulltext search, enable highlighting and fetch the results |
259 | - if($this->metadata['fulltextSearch']) { |
|
259 | + if ($this->metadata['fulltextSearch']) { |
|
260 | 260 | |
261 | - $params = array(); |
|
261 | + $params = array (); |
|
262 | 262 | |
263 | 263 | $params['hl'] = 'true'; |
264 | 264 | $params['hl.useFastVectorHighlighter'] = 'true'; |
@@ -299,7 +299,7 @@ discard block |
||
299 | 299 | $record['subparts'][$resArray->id] = array ( |
300 | 300 | 'uid' => $resArray->uid, |
301 | 301 | 'page' => $resArray->page, |
302 | - 'preview' => (!empty($result_highlights->highlighting->{$resArray->id}->fulltext[0])?$result_highlights->highlighting->{$resArray->id}->fulltext[0]:""), |
|
302 | + 'preview' => (!empty($result_highlights->highlighting->{$resArray->id}->fulltext[0]) ? $result_highlights->highlighting->{$resArray->id}->fulltext[0] : ""), |
|
303 | 303 | 'thumbnail' => $resArray->thumbnail, |
304 | 304 | 'metadata' => $metadata |
305 | 305 | ); |