@@ -46,7 +46,7 @@ |
||
| 46 | 46 | public function __construct($configurationToUse = []) |
| 47 | 47 | { |
| 48 | 48 | if (empty($configurationToUse)) { |
| 49 | - $this->configuration = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['solr']); |
|
| 49 | + $this->configuration = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['solr']); |
|
| 50 | 50 | } else { |
| 51 | 51 | $this->configuration = $configurationToUse; |
| 52 | 52 | } |
@@ -63,7 +63,7 @@ |
||
| 63 | 63 | $sumCount += $statisticsRow['count']; |
| 64 | 64 | } |
| 65 | 65 | |
| 66 | - $statisticsRows = array_map(function ($row) use ($sumCount) { |
|
| 66 | + $statisticsRows = array_map(function($row) use ($sumCount) { |
|
| 67 | 67 | $row['percent'] = $row['count'] * 100 / $sumCount; |
| 68 | 68 | return $row; |
| 69 | 69 | }, $statisticsRows); |
@@ -296,7 +296,7 @@ discard block |
||
| 296 | 296 | * @param Query $query The query that has been searched for. |
| 297 | 297 | * @param \Apache_Solr_Response $response The search's response. |
| 298 | 298 | */ |
| 299 | - protected function processResponse($rawQuery,Query $query, \Apache_Solr_Response &$response) |
|
| 299 | + protected function processResponse($rawQuery, Query $query, \Apache_Solr_Response & $response) |
|
| 300 | 300 | { |
| 301 | 301 | if ($this->shouldHideResultsFromInitialSearch($rawQuery)) { |
| 302 | 302 | // explicitly set number of results to 0 as we just wanted |
@@ -324,7 +324,7 @@ discard block |
||
| 324 | 324 | * |
| 325 | 325 | * @param \Apache_Solr_Response $response |
| 326 | 326 | */ |
| 327 | - protected function addExpandedDocumentsFromVariants(\Apache_Solr_Response &$response) |
|
| 327 | + protected function addExpandedDocumentsFromVariants(\Apache_Solr_Response & $response) |
|
| 328 | 328 | { |
| 329 | 329 | if (!is_array($response->response->docs)) { |
| 330 | 330 | return; |
@@ -376,7 +376,7 @@ discard block |
||
| 376 | 376 | * @param \Apache_Solr_Response $response |
| 377 | 377 | * @throws \Apache_Solr_ParserException |
| 378 | 378 | */ |
| 379 | - protected function wrapResultDocumentInResultObject(\Apache_Solr_Response &$response) |
|
| 379 | + protected function wrapResultDocumentInResultObject(\Apache_Solr_Response & $response) |
|
| 380 | 380 | { |
| 381 | 381 | try { |
| 382 | 382 | $documents = $response->response->docs; |
@@ -169,7 +169,7 @@ |
||
| 169 | 169 | * |
| 170 | 170 | * @param ContentObjectRenderer $parentObject parent content object |
| 171 | 171 | */ |
| 172 | - public function postProcessContentObjectInitialization(ContentObjectRenderer &$parentObject) |
|
| 172 | + public function postProcessContentObjectInitialization(ContentObjectRenderer & $parentObject) |
|
| 173 | 173 | { |
| 174 | 174 | if (!empty($parentObject->currentRecord)) { |
| 175 | 175 | list($table) = explode(':', $parentObject->currentRecord); |