@@ -441,7 +441,7 @@ |
||
441 | 441 | * should be indexed for the current page. |
442 | 442 | * |
443 | 443 | * @param \Apache_Solr_Document $pageDocument The main document representing this page. |
444 | - * @param array $existingDocuments An array of documents already created for this page. |
|
444 | + * @param \Apache_Solr_Document[] $existingDocuments An array of documents already created for this page. |
|
445 | 445 | * @return array An array of additional \Apache_Solr_Document objects to index |
446 | 446 | */ |
447 | 447 | protected function getAdditionalDocuments( |
@@ -62,7 +62,7 @@ |
||
62 | 62 | * number counting from zero of the total number of results. |
63 | 63 | * |
64 | 64 | * @param array $arguments |
65 | - * @return string |
|
65 | + * @return integer |
|
66 | 66 | */ |
67 | 67 | public function execute(array $arguments = array()) |
68 | 68 | { |
@@ -201,6 +201,7 @@ |
||
201 | 201 | * |
202 | 202 | * @param array $mergedRow |
203 | 203 | * @param array $statisticsRow |
204 | + * @param string $fieldName |
|
204 | 205 | * @return float|int |
205 | 206 | */ |
206 | 207 | protected function getAverageFromField(array &$mergedRow, array $statisticsRow, $fieldName) |
@@ -169,7 +169,7 @@ discard block |
||
169 | 169 | } |
170 | 170 | |
171 | 171 | /** |
172 | - * @param $table |
|
172 | + * @param string $table |
|
173 | 173 | * @param $uid |
174 | 174 | * @param $changedFields |
175 | 175 | * @param $indexQueue |
@@ -349,7 +349,7 @@ discard block |
||
349 | 349 | * |
350 | 350 | * @param string $table The record's table name. |
351 | 351 | * @param integer $record The record's uid. |
352 | - * @return array The cleaned record |
|
352 | + * @return integer The cleaned record |
|
353 | 353 | */ |
354 | 354 | protected function normalizeFrontendGroupField($table, $record) |
355 | 355 | { |
@@ -418,7 +418,7 @@ discard block |
||
418 | 418 | * determines whether it is set on the current record. |
419 | 419 | * |
420 | 420 | * @param string $table The table name. |
421 | - * @param array $record An array with record fields that may affect visibility. |
|
421 | + * @param integer $record An array with record fields that may affect visibility. |
|
422 | 422 | * @return boolean True if the record is hidden, FALSE otherwise. |
423 | 423 | */ |
424 | 424 | protected function isHidden($table, $record) |
@@ -439,7 +439,7 @@ discard block |
||
439 | 439 | * making the record invisible on the website. |
440 | 440 | * |
441 | 441 | * @param string $table The table name. |
442 | - * @param array $record An array with record fields that may affect visibility. |
|
442 | + * @param integer $record An array with record fields that may affect visibility. |
|
443 | 443 | * @return boolean True if the record's start time is in the future, FALSE otherwise. |
444 | 444 | */ |
445 | 445 | protected function isStartTimeInFuture($table, $record) |
@@ -459,7 +459,7 @@ discard block |
||
459 | 459 | * indexed already. |
460 | 460 | * |
461 | 461 | * @param string $table The table name. |
462 | - * @param array $record An array with record fields that may affect visibility. |
|
462 | + * @param integer $record An array with record fields that may affect visibility. |
|
463 | 463 | * @return boolean True if the record is marked as being indexed |
464 | 464 | */ |
465 | 465 | protected function isMarkedAsIndexed($table, $record) |
@@ -474,7 +474,7 @@ discard block |
||
474 | 474 | * the record invisible to at least some people. |
475 | 475 | * |
476 | 476 | * @param string $table The table name. |
477 | - * @param array $record An array with record fields that may affect visibility. |
|
477 | + * @param integer $record An array with record fields that may affect visibility. |
|
478 | 478 | * @return boolean TRUE if frontend groups have been removed from access to the record, FALSE otherwise. |
479 | 479 | */ |
480 | 480 | protected function hasFrontendGroupsRemoved($table, $record) |
@@ -501,7 +501,7 @@ discard block |
||
501 | 501 | /** |
502 | 502 | * Checks whether the page has been excluded from searching. |
503 | 503 | * |
504 | - * @param array $record An array with record fields that may affect visibility. |
|
504 | + * @param integer $record An array with record fields that may affect visibility. |
|
505 | 505 | * @return boolean True if the page has been excluded from searching, FALSE otherwise |
506 | 506 | */ |
507 | 507 | protected function isPageExcludedFromSearch($record) |
@@ -513,7 +513,7 @@ discard block |
||
513 | 513 | * Checks whether a page has a page type that can be indexed. |
514 | 514 | * Currently standard pages and mount pages can be indexed. |
515 | 515 | * |
516 | - * @param array $record A page record |
|
516 | + * @param integer $record A page record |
|
517 | 517 | * @return boolean TRUE if the page can be indexed according to its page type, FALSE otherwise |
518 | 518 | */ |
519 | 519 | protected function isIndexablePageType(array $record) |
@@ -204,7 +204,7 @@ discard block |
||
204 | 204 | /** |
205 | 205 | * Generates the headers to be send with the request. |
206 | 206 | * |
207 | - * @return array Array of HTTP headers. |
|
207 | + * @return string[] Array of HTTP headers. |
|
208 | 208 | */ |
209 | 209 | public function getHeaders() |
210 | 210 | { |
@@ -324,7 +324,7 @@ discard block |
||
324 | 324 | * Sets a request's parameter and its value. |
325 | 325 | * |
326 | 326 | * @param string $parameter Parameter name |
327 | - * @param mixed $value Parameter value. |
|
327 | + * @param string $value Parameter value. |
|
328 | 328 | */ |
329 | 329 | public function setParameter($parameter, $value) |
330 | 330 | { |
@@ -134,7 +134,7 @@ |
||
134 | 134 | /** |
135 | 135 | * Gets the last searched keywords from the database |
136 | 136 | * |
137 | - * @param int|bool $limit |
|
137 | + * @param integer $limit |
|
138 | 138 | * @return array An array containing the last searches of the current user |
139 | 139 | */ |
140 | 140 | protected function getLastSearchesFromDatabase($limit = false) |
@@ -274,7 +274,7 @@ |
||
274 | 274 | * Generates a list of page IDs in this site. Attention, this includes |
275 | 275 | * all page types! Deleted pages are not included. |
276 | 276 | * |
277 | - * @param int|string $rootPageId Page ID from where to start collection sub pages |
|
277 | + * @param integer $rootPageId Page ID from where to start collection sub pages |
|
278 | 278 | * @param int $maxDepth Maximum depth to decend into the site tree |
279 | 279 | * @return array Array of pages (IDs) in this site |
280 | 280 | */ |
@@ -128,7 +128,7 @@ discard block |
||
128 | 128 | /** |
129 | 129 | * Returns the current time in milliseconds. |
130 | 130 | * |
131 | - * @return int |
|
131 | + * @return double |
|
132 | 132 | */ |
133 | 133 | protected function getMilliseconds() |
134 | 134 | { |
@@ -174,7 +174,7 @@ discard block |
||
174 | 174 | * |
175 | 175 | * Also does not report the time, see https://forge.typo3.org/issues/64551 |
176 | 176 | * |
177 | - * @param float|int $timeout maximum time to wait for ping in seconds, -1 for unlimited (default is 2) |
|
177 | + * @param integer $timeout maximum time to wait for ping in seconds, -1 for unlimited (default is 2) |
|
178 | 178 | * @return bool TRUE if Solr can be reached, FALSE if not |
179 | 179 | */ |
180 | 180 | public function ping($timeout = 2) |
@@ -186,8 +186,8 @@ discard block |
||
186 | 186 | /** |
187 | 187 | * Call the /admin/ping servlet, can be used to get the runtime of a ping request. |
188 | 188 | * |
189 | - * @param float|int $timeout maximum time to wait for ping in seconds, -1 for unlimited (default is 2) |
|
190 | - * @return int runtime in milliseconds |
|
189 | + * @param integer $timeout maximum time to wait for ping in seconds, -1 for unlimited (default is 2) |
|
190 | + * @return double runtime in milliseconds |
|
191 | 191 | * @throws \ApacheSolrForTypo3\Solr\PingFailedException |
192 | 192 | */ |
193 | 193 | public function getPingRoundTripRuntime($timeout = 2) |
@@ -581,7 +581,7 @@ discard block |
||
581 | 581 | * a complete and well formed "delete" xml document |
582 | 582 | * |
583 | 583 | * @param string $rawPost Expected to be utf-8 encoded xml document |
584 | - * @param float|int $timeout Maximum expected duration of the delete operation on the server (otherwise, will throw a communication exception) |
|
584 | + * @param integer $timeout Maximum expected duration of the delete operation on the server (otherwise, will throw a communication exception) |
|
585 | 585 | * @return \Apache_Solr_Response |
586 | 586 | */ |
587 | 587 | public function delete($rawPost, $timeout = 3600) |
@@ -678,7 +678,7 @@ discard block |
||
678 | 678 | /** |
679 | 679 | * Add list of synonyms for base word to managed synonyms map |
680 | 680 | * |
681 | - * @param $baseWord |
|
681 | + * @param string $baseWord |
|
682 | 682 | * @param array $synonyms |
683 | 683 | * |
684 | 684 | * @return \Apache_Solr_Response |
@@ -699,7 +699,7 @@ discard block |
||
699 | 699 | /** |
700 | 700 | * Remove a synonym from the synonyms map |
701 | 701 | * |
702 | - * @param $baseWord |
|
702 | + * @param string $baseWord |
|
703 | 703 | * @return \Apache_Solr_Response |
704 | 704 | * @throws \Apache_Solr_InvalidArgumentException |
705 | 705 | */ |
@@ -715,7 +715,7 @@ discard block |
||
715 | 715 | /** |
716 | 716 | * Central method for making a HTTP DELETE operation against the Solr server |
717 | 717 | * |
718 | - * @param $url |
|
718 | + * @param string $url |
|
719 | 719 | * @param bool|float $timeout Read timeout in seconds |
720 | 720 | * @return \Apache_Solr_Response |
721 | 721 | */ |
@@ -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) |