@@ -199,7 +199,7 @@ discard block |
||
| 199 | 199 | { |
| 200 | 200 | try { |
| 201 | 201 | $pingQueryTime = $solr->getPingRoundTripRuntime(); |
| 202 | - $pingMessage = (int) $pingQueryTime . ' ms'; |
|
| 202 | + $pingMessage = (int)$pingQueryTime . ' ms'; |
|
| 203 | 203 | } catch (PingFailedException $e) { |
| 204 | 204 | $this->responseStatus = Status::ERROR; |
| 205 | 205 | $pingMessage = 'Ping error: ' . $e->getMessage(); |
@@ -217,7 +217,7 @@ discard block |
||
| 217 | 217 | try { |
| 218 | 218 | $solrConfigMessage = $solr->getSolrconfigName(); |
| 219 | 219 | } catch (\Exception $e) { |
| 220 | - $this->responseStatus = Status::ERROR; |
|
| 220 | + $this->responseStatus = Status::ERROR; |
|
| 221 | 221 | $solrConfigMessage = 'Error determining solr config: ' . $e->getMessage(); |
| 222 | 222 | } |
| 223 | 223 | |
@@ -234,7 +234,7 @@ discard block |
||
| 234 | 234 | try { |
| 235 | 235 | $solrSchemaMessage = $solr->getSchemaName(); |
| 236 | 236 | } catch (\Exception $e) { |
| 237 | - $this->responseStatus = Status::ERROR; |
|
| 237 | + $this->responseStatus = Status::ERROR; |
|
| 238 | 238 | $solrSchemaMessage = 'Error determining schema name: ' . $e->getMessage(); |
| 239 | 239 | } |
| 240 | 240 | |
@@ -526,7 +526,7 @@ |
||
| 526 | 526 | $spellcheckingSuggestions = $suggestions; |
| 527 | 527 | |
| 528 | 528 | if (isset($this->response->spellcheck->collations)) { |
| 529 | - $collections = (array) $this->response->spellcheck->collations; |
|
| 529 | + $collections = (array)$this->response->spellcheck->collations; |
|
| 530 | 530 | $spellcheckingSuggestions['collation'] = $collections['collation']; |
| 531 | 531 | } |
| 532 | 532 | } |
@@ -286,7 +286,7 @@ discard block |
||
| 286 | 286 | * @param Query $query The query that has been searched for. |
| 287 | 287 | * @param \Apache_Solr_Response $response The search's response. |
| 288 | 288 | */ |
| 289 | - protected function processResponse($rawQuery, Query $query, \Apache_Solr_Response &$response) |
|
| 289 | + protected function processResponse($rawQuery, Query $query, \Apache_Solr_Response & $response) |
|
| 290 | 290 | { |
| 291 | 291 | if ($this->shouldHideResultsFromInitialSearch($rawQuery)) { |
| 292 | 292 | // explicitly set number of results to 0 as we just wanted |
@@ -314,7 +314,7 @@ discard block |
||
| 314 | 314 | * |
| 315 | 315 | * @param \Apache_Solr_Response $response |
| 316 | 316 | */ |
| 317 | - protected function addExpandedDocumentsFromVariants(\Apache_Solr_Response &$response) |
|
| 317 | + protected function addExpandedDocumentsFromVariants(\Apache_Solr_Response & $response) |
|
| 318 | 318 | { |
| 319 | 319 | if (!is_array($response->response->docs)) { |
| 320 | 320 | return; |
@@ -366,7 +366,7 @@ discard block |
||
| 366 | 366 | * @param \Apache_Solr_Response $response |
| 367 | 367 | * @throws \InvalidArgumentException |
| 368 | 368 | */ |
| 369 | - protected function wrapResultDocumentInResultObject(\Apache_Solr_Response &$response) |
|
| 369 | + protected function wrapResultDocumentInResultObject(\Apache_Solr_Response & $response) |
|
| 370 | 370 | { |
| 371 | 371 | if (!is_array($response->response->docs)) { |
| 372 | 372 | return; |
@@ -154,7 +154,7 @@ discard block |
||
| 154 | 154 | $activeFacets = $this->getActiveFacets(); |
| 155 | 155 | $facetNames = []; |
| 156 | 156 | |
| 157 | - array_map(function ($activeFacet) use (&$facetNames) { |
|
| 157 | + array_map(function($activeFacet) use (&$facetNames) { |
|
| 158 | 158 | $facetNames[] = substr($activeFacet, 0, strpos($activeFacet, ':')); |
| 159 | 159 | }, $activeFacets); |
| 160 | 160 | |
@@ -171,7 +171,7 @@ discard block |
||
| 171 | 171 | $values = []; |
| 172 | 172 | $activeFacets = $this->getActiveFacets(); |
| 173 | 173 | |
| 174 | - array_map(function ($activeFacet) use (&$values, $facetName) { |
|
| 174 | + array_map(function($activeFacet) use (&$values, $facetName) { |
|
| 175 | 175 | $parts = explode(':', $activeFacet, 2); |
| 176 | 176 | if ($parts[0] === $facetName) { |
| 177 | 177 | $values[] = $parts[1]; |
@@ -273,7 +273,7 @@ discard block |
||
| 273 | 273 | public function removeAllFacetValuesByName($facetName) |
| 274 | 274 | { |
| 275 | 275 | $facetValues = $this->getActiveFacets(); |
| 276 | - $facetValues = array_filter($facetValues, function ($facetValue) use ($facetName) { |
|
| 276 | + $facetValues = array_filter($facetValues, function($facetValue) use ($facetName) { |
|
| 277 | 277 | $parts = explode(':', $facetValue, 2); |
| 278 | 278 | return $parts[0] !== $facetName; |
| 279 | 279 | }); |