@@ -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 | |
@@ -282,7 +282,7 @@ discard block |
||
| 282 | 282 | * @param Query $query The query that has been searched for. |
| 283 | 283 | * @param \Apache_Solr_Response $response The search's response. |
| 284 | 284 | */ |
| 285 | - protected function processResponse($rawQuery, Query $query, \Apache_Solr_Response &$response) |
|
| 285 | + protected function processResponse($rawQuery, Query $query, \Apache_Solr_Response & $response) |
|
| 286 | 286 | { |
| 287 | 287 | if ($this->shouldHideResultsFromInitialSearch($rawQuery)) { |
| 288 | 288 | // explicitly set number of results to 0 as we just wanted |
@@ -310,7 +310,7 @@ discard block |
||
| 310 | 310 | * |
| 311 | 311 | * @param \Apache_Solr_Response $response |
| 312 | 312 | */ |
| 313 | - protected function addExpandedDocumentsFromVariants(\Apache_Solr_Response &$response) |
|
| 313 | + protected function addExpandedDocumentsFromVariants(\Apache_Solr_Response & $response) |
|
| 314 | 314 | { |
| 315 | 315 | if (!is_array($response->response->docs)) { |
| 316 | 316 | return; |
@@ -362,7 +362,7 @@ discard block |
||
| 362 | 362 | * @param \Apache_Solr_Response $response |
| 363 | 363 | * @throws \InvalidArgumentException |
| 364 | 364 | */ |
| 365 | - protected function wrapResultDocumentInResultObject(\Apache_Solr_Response &$response) |
|
| 365 | + protected function wrapResultDocumentInResultObject(\Apache_Solr_Response & $response) |
|
| 366 | 366 | { |
| 367 | 367 | if (!is_array($response->response->docs)) { |
| 368 | 368 | return; |
@@ -387,7 +387,7 @@ discard block |
||
| 387 | 387 | $searchResultClassName = $this->getResultClassName(); |
| 388 | 388 | $result = GeneralUtility::makeInstance($searchResultClassName, $originalDocument); |
| 389 | 389 | if (!$result instanceof SearchResult) { |
| 390 | - throw new \InvalidArgumentException('Could not create result object with class: ' . (string) $searchResultClassName, 1470037679); |
|
| 390 | + throw new \InvalidArgumentException('Could not create result object with class: ' . (string)$searchResultClassName, 1470037679); |
|
| 391 | 391 | } |
| 392 | 392 | |
| 393 | 393 | return $result; |
@@ -399,8 +399,7 @@ discard block |
||
| 399 | 399 | protected function getResultClassName() |
| 400 | 400 | { |
| 401 | 401 | return isset($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['solr']['searchResultClassName ']) ? |
| 402 | - $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['solr']['searchResultClassName '] : |
|
| 403 | - 'ApacheSolrForTypo3\\Solr\\Domain\\Search\\ResultSet\\SearchResult'; |
|
| 402 | + $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['solr']['searchResultClassName '] : 'ApacheSolrForTypo3\\Solr\\Domain\\Search\\ResultSet\\SearchResult'; |
|
| 404 | 403 | } |
| 405 | 404 | |
| 406 | 405 | /** |
@@ -409,8 +408,7 @@ discard block |
||
| 409 | 408 | protected function getResultSetClassName() |
| 410 | 409 | { |
| 411 | 410 | return isset($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['solr']['searchResultSetClassName ']) ? |
| 412 | - $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['solr']['searchResultSetClassName '] : |
|
| 413 | - 'ApacheSolrForTypo3\\Solr\\Domain\\Search\\ResultSet\\SearchResultSet'; |
|
| 411 | + $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['solr']['searchResultSetClassName '] : 'ApacheSolrForTypo3\\Solr\\Domain\\Search\\ResultSet\\SearchResultSet'; |
|
| 414 | 412 | } |
| 415 | 413 | |
| 416 | 414 | /** |
@@ -556,7 +554,7 @@ discard block |
||
| 556 | 554 | $response = $this->search->search($query, 0, 1); |
| 557 | 555 | $this->processResponse($documentId, $query, $response); |
| 558 | 556 | |
| 559 | - $resultDocument = isset($response->response->docs[0]) ? $response->response->docs[0] : null; |
|
| 557 | + $resultDocument = isset($response->response->docs[0]) ? $response->response->docs[0] : null; |
|
| 560 | 558 | return $resultDocument; |
| 561 | 559 | } |
| 562 | 560 | |