@@ -129,7 +129,7 @@ discard block |
||
| 129 | 129 | /** |
| 130 | 130 | * Returns the current time in milliseconds. |
| 131 | 131 | * |
| 132 | - * @return int |
|
| 132 | + * @return double |
|
| 133 | 133 | */ |
| 134 | 134 | protected function getMilliseconds() |
| 135 | 135 | { |
@@ -175,7 +175,7 @@ discard block |
||
| 175 | 175 | * |
| 176 | 176 | * Also does not report the time, see https://forge.typo3.org/issues/64551 |
| 177 | 177 | * |
| 178 | - * @param float|int $timeout maximum time to wait for ping in seconds, -1 for unlimited (default is 2) |
|
| 178 | + * @param integer $timeout maximum time to wait for ping in seconds, -1 for unlimited (default is 2) |
|
| 179 | 179 | * @return bool TRUE if Solr can be reached, FALSE if not |
| 180 | 180 | */ |
| 181 | 181 | public function ping($timeout = 2) |
@@ -187,8 +187,8 @@ discard block |
||
| 187 | 187 | /** |
| 188 | 188 | * Call the /admin/ping servlet, can be used to get the runtime of a ping request. |
| 189 | 189 | * |
| 190 | - * @param float|int $timeout maximum time to wait for ping in seconds, -1 for unlimited (default is 2) |
|
| 191 | - * @return int runtime in milliseconds |
|
| 190 | + * @param integer $timeout maximum time to wait for ping in seconds, -1 for unlimited (default is 2) |
|
| 191 | + * @return double runtime in milliseconds |
|
| 192 | 192 | * @throws \ApacheSolrForTypo3\Solr\PingFailedException |
| 193 | 193 | */ |
| 194 | 194 | public function getPingRoundTripRuntime($timeout = 2) |
@@ -582,7 +582,7 @@ discard block |
||
| 582 | 582 | * a complete and well formed "delete" xml document |
| 583 | 583 | * |
| 584 | 584 | * @param string $rawPost Expected to be utf-8 encoded xml document |
| 585 | - * @param float|int $timeout Maximum expected duration of the delete operation on the server (otherwise, will throw a communication exception) |
|
| 585 | + * @param integer $timeout Maximum expected duration of the delete operation on the server (otherwise, will throw a communication exception) |
|
| 586 | 586 | * @return \Apache_Solr_Response |
| 587 | 587 | */ |
| 588 | 588 | public function delete($rawPost, $timeout = 3600) |
@@ -679,7 +679,7 @@ discard block |
||
| 679 | 679 | /** |
| 680 | 680 | * Add list of synonyms for base word to managed synonyms map |
| 681 | 681 | * |
| 682 | - * @param $baseWord |
|
| 682 | + * @param string $baseWord |
|
| 683 | 683 | * @param array $synonyms |
| 684 | 684 | * |
| 685 | 685 | * @return \Apache_Solr_Response |
@@ -700,7 +700,7 @@ discard block |
||
| 700 | 700 | /** |
| 701 | 701 | * Remove a synonym from the synonyms map |
| 702 | 702 | * |
| 703 | - * @param $baseWord |
|
| 703 | + * @param string $baseWord |
|
| 704 | 704 | * @return \Apache_Solr_Response |
| 705 | 705 | * @throws \Apache_Solr_InvalidArgumentException |
| 706 | 706 | */ |
@@ -716,7 +716,7 @@ discard block |
||
| 716 | 716 | /** |
| 717 | 717 | * Central method for making a HTTP DELETE operation against the Solr server |
| 718 | 718 | * |
| 719 | - * @param $url |
|
| 719 | + * @param string $url |
|
| 720 | 720 | * @param bool|float $timeout Read timeout in seconds |
| 721 | 721 | * @return \Apache_Solr_Response |
| 722 | 722 | */ |
@@ -540,7 +540,7 @@ discard block |
||
| 540 | 540 | * |
| 541 | 541 | * @param string $configurationName |
| 542 | 542 | * @param string $defaultIfEmpty |
| 543 | - * @return mixed |
|
| 543 | + * @return string |
|
| 544 | 544 | */ |
| 545 | 545 | public function getIndexQueueInitializerClassByConfigurationName($configurationName, $defaultIfEmpty = 'ApacheSolrForTypo3\\Solr\\IndexQueue\\Initializer\\Record') |
| 546 | 546 | { |
@@ -1232,7 +1232,7 @@ discard block |
||
| 1232 | 1232 | * plugin.tx_solr.search.query.allowEmptyQuery |
| 1233 | 1233 | * |
| 1234 | 1234 | * @param string $defaultIfEmpty |
| 1235 | - * @return string |
|
| 1235 | + * @return boolean |
|
| 1236 | 1236 | */ |
| 1237 | 1237 | public function getSearchQueryAllowEmptyQuery($defaultIfEmpty = '') |
| 1238 | 1238 | { |
@@ -1294,7 +1294,7 @@ discard block |
||
| 1294 | 1294 | * |
| 1295 | 1295 | * plugin.tx_solr.search.query.returnFields |
| 1296 | 1296 | * |
| 1297 | - * @param array $defaultIfEmpty |
|
| 1297 | + * @param string[] $defaultIfEmpty |
|
| 1298 | 1298 | * @return array |
| 1299 | 1299 | */ |
| 1300 | 1300 | public function getSearchQueryReturnFieldsAsArray($defaultIfEmpty = array()) |
@@ -178,7 +178,7 @@ |
||
| 178 | 178 | } |
| 179 | 179 | |
| 180 | 180 | /** |
| 181 | - * @return mixed |
|
| 181 | + * @return integer |
|
| 182 | 182 | */ |
| 183 | 183 | public function getDocumentsToIndexLimit() |
| 184 | 184 | { |
@@ -127,6 +127,7 @@ discard block |
||
| 127 | 127 | /** |
| 128 | 128 | * Finds the view helpers in the template and loads them. |
| 129 | 129 | * |
| 130 | + * @param string $content |
|
| 130 | 131 | * @return void |
| 131 | 132 | */ |
| 132 | 133 | protected function initializeViewHelpers($content) |
@@ -1152,7 +1153,7 @@ discard block |
||
| 1152 | 1153 | } |
| 1153 | 1154 | |
| 1154 | 1155 | /** |
| 1155 | - * @param $templateContent |
|
| 1156 | + * @param string $templateContent |
|
| 1156 | 1157 | * @return mixed |
| 1157 | 1158 | */ |
| 1158 | 1159 | public function setTemplateContent($templateContent) |
@@ -437,7 +437,7 @@ |
||
| 437 | 437 | * should be indexed for the current page. |
| 438 | 438 | * |
| 439 | 439 | * @param \Apache_Solr_Document $pageDocument The main document representing this page. |
| 440 | - * @param array $existingDocuments An array of documents already created for this page. |
|
| 440 | + * @param \Apache_Solr_Document[] $existingDocuments An array of documents already created for this page. |
|
| 441 | 441 | * @return array An array of additional \Apache_Solr_Document objects to index |
| 442 | 442 | */ |
| 443 | 443 | protected function getAdditionalDocuments( |
@@ -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) |
@@ -60,7 +60,7 @@ |
||
| 60 | 60 | * number counting from zero of the total number of results. |
| 61 | 61 | * |
| 62 | 62 | * @param array $arguments |
| 63 | - * @return string |
|
| 63 | + * @return integer |
|
| 64 | 64 | */ |
| 65 | 65 | public function execute(array $arguments = array()) |
| 66 | 66 | { |
@@ -168,7 +168,7 @@ |
||
| 168 | 168 | } |
| 169 | 169 | |
| 170 | 170 | /** |
| 171 | - * @param $table |
|
| 171 | + * @param string $table |
|
| 172 | 172 | * @param $uid |
| 173 | 173 | * @param $changedFields |
| 174 | 174 | * @param $indexQueue |
@@ -193,7 +193,7 @@ discard block |
||
| 193 | 193 | * |
| 194 | 194 | * @param string $msg |
| 195 | 195 | * @param int $severity |
| 196 | - * @param mixed $dataVar |
|
| 196 | + * @param string[] $dataVar |
|
| 197 | 197 | */ |
| 198 | 198 | protected function writeDevLog($msg, $severity = 0, $dataVar = false) |
| 199 | 199 | { |
@@ -1004,7 +1004,7 @@ discard block |
||
| 1004 | 1004 | /** |
| 1005 | 1005 | * Sets the fields to return by a query. |
| 1006 | 1006 | * |
| 1007 | - * @param array|string $fieldList an array or comma-separated list of field names |
|
| 1007 | + * @param string $fieldList an array or comma-separated list of field names |
|
| 1008 | 1008 | * @throws \UnexpectedValueException on parameters other than comma-separated lists and arrays |
| 1009 | 1009 | */ |
| 1010 | 1010 | public function setFieldList($fieldList = array('*', 'score')) |
@@ -1080,7 +1080,7 @@ discard block |
||
| 1080 | 1080 | * |
| 1081 | 1081 | * This query supports the complete Lucene Query Language. |
| 1082 | 1082 | * |
| 1083 | - * @param mixed $alternativeQuery String alternative query or boolean FALSE to disable / reset the q.alt parameter. |
|
| 1083 | + * @param string $alternativeQuery String alternative query or boolean FALSE to disable / reset the q.alt parameter. |
|
| 1084 | 1084 | * @see http://wiki.apache.org/solr/DisMaxQParserPlugin#q.alt |
| 1085 | 1085 | */ |
| 1086 | 1086 | public function setAlternativeQuery($alternativeQuery) |