We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -107,6 +107,6 @@ |
||
| 107 | 107 | } |
| 108 | 108 | |
| 109 | 109 | private function getUid($uid) { |
| 110 | - return is_numeric($uid) > 0 ? intval($uid) : $uid; |
|
| 110 | + return is_numeric($uid) > 0 ? intval($uid) : $uid; |
|
| 111 | 111 | } |
| 112 | 112 | } |
@@ -102,11 +102,13 @@ |
||
| 102 | 102 | return $response; |
| 103 | 103 | } |
| 104 | 104 | |
| 105 | - private function getQuery($fields, $parameters) { |
|
| 105 | + private function getQuery($fields, $parameters) |
|
| 106 | + { |
|
| 106 | 107 | return $fields['fulltext'] . ':(' . Solr::escapeQuery((string) $parameters['q']) . ') AND ' . $fields['uid'] . ':' . $this->getUid($parameters['uid']); |
| 107 | 108 | } |
| 108 | 109 | |
| 109 | - private function getUid($uid) { |
|
| 110 | + private function getUid($uid) |
|
| 111 | + { |
|
| 110 | 112 | return is_numeric($uid) > 0 ? intval($uid) : $uid; |
| 111 | 113 | } |
| 112 | 114 | } |
@@ -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(); |