We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -265,7 +265,7 @@ |
||
| 265 | 265 | |
| 266 | 266 | $query = $this->solr->service->createSelect(); |
| 267 | 267 | // Restrict the fields to the required ones |
| 268 | - $query->setFields($fields['uid'] .',' . $fields['id'] .',' . $fields['toplevel'] .',' . $fields['thumbnail'] .',' . $fields['page']); |
|
| 268 | + $query->setFields($fields['uid'] . ',' . $fields['id'] . ',' . $fields['toplevel'] . ',' . $fields['thumbnail'] . ',' . $fields['page']); |
|
| 269 | 269 | foreach ($this->solrConfig as $solr_name) { |
| 270 | 270 | $query->addField($solr_name); |
| 271 | 271 | } |
@@ -261,7 +261,8 @@ discard block |
||
| 261 | 261 | * |
| 262 | 262 | * @return Result |
| 263 | 263 | */ |
| 264 | - private function getSolrResult($record) { |
|
| 264 | + private function getSolrResult($record) |
|
| 265 | + { |
|
| 265 | 266 | $fields = Solr::getFields(); |
| 266 | 267 | |
| 267 | 268 | $query = $this->solr->service->createSelect(); |
@@ -329,7 +330,8 @@ discard block |
||
| 329 | 330 | * |
| 330 | 331 | * @return array |
| 331 | 332 | */ |
| 332 | - private function getSolrRecord($record, $result) { |
|
| 333 | + private function getSolrRecord($record, $result) |
|
| 334 | + { |
|
| 333 | 335 | // If it is a fulltext search, fetch the highlighting results. |
| 334 | 336 | if ($this->metadata['fulltextSearch']) { |
| 335 | 337 | $data = $result->getData(); |
@@ -113,7 +113,8 @@ discard block |
||
| 113 | 113 | * |
| 114 | 114 | * @return string SOLR query |
| 115 | 115 | */ |
| 116 | - private function getQuery($fields, $parameters) { |
|
| 116 | + private function getQuery($fields, $parameters) |
|
| 117 | + { |
|
| 117 | 118 | return $fields['fulltext'] . ':(' . Solr::escapeQuery((string) $parameters['q']) . ') AND ' . $fields['uid'] . ':' . $this->getUid($parameters['uid']); |
| 118 | 119 | } |
| 119 | 120 | |
@@ -127,7 +128,8 @@ discard block |
||
| 127 | 128 | * |
| 128 | 129 | * @return int|string uid of the document |
| 129 | 130 | */ |
| 130 | - private function getUid($uid) { |
|
| 131 | + private function getUid($uid) |
|
| 132 | + { |
|
| 131 | 133 | return is_numeric($uid) ? intval($uid) : $uid; |
| 132 | 134 | } |
| 133 | 135 | } |