@@ -236,7 +236,7 @@ discard block |
||
236 | 236 | * @param int $pageId Id of the (root) page to get the Solr configuration from. |
237 | 237 | * @param string $path The TypoScript configuration path to retrieve. |
238 | 238 | * @param bool $initializeTsfe Optionally initializes a full TSFE to get the configuration, defaults to FALSE |
239 | - * @param int|bool $language System language uid or FALSE to disable language usage, optional, defaults to 0 |
|
239 | + * @param integer $language System language uid or FALSE to disable language usage, optional, defaults to 0 |
|
240 | 240 | * @return TypoScriptConfiguration The Solr configuration for the requested tree. |
241 | 241 | */ |
242 | 242 | public static function getConfigurationFromPageId( |
@@ -311,9 +311,9 @@ discard block |
||
311 | 311 | |
312 | 312 | /** |
313 | 313 | * This function is used to retrieve the configuration from an existing TSFE instance |
314 | - * @param $pageId |
|
315 | - * @param $path |
|
316 | - * @param $language |
|
314 | + * @param integer $pageId |
|
315 | + * @param string $path |
|
316 | + * @param integer $language |
|
317 | 317 | * @return mixed |
318 | 318 | */ |
319 | 319 | private static function getConfigurationFromExistingTSFE($pageId, $path, $language) |
@@ -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; |