@@ -163,7 +163,7 @@ discard block |
||
163 | 163 | /** |
164 | 164 | * Returns the current time in milliseconds. |
165 | 165 | * |
166 | - * @return int |
|
166 | + * @return double |
|
167 | 167 | */ |
168 | 168 | protected function getMilliseconds() |
169 | 169 | { |
@@ -209,7 +209,7 @@ discard block |
||
209 | 209 | * |
210 | 210 | * Also does not report the time, see https://forge.typo3.org/issues/64551 |
211 | 211 | * |
212 | - * @param float|int $timeout maximum time to wait for ping in seconds, -1 for unlimited (default is 2) |
|
212 | + * @param integer $timeout maximum time to wait for ping in seconds, -1 for unlimited (default is 2) |
|
213 | 213 | * @param boolean $useCache indicates if the ping result should be cached in the instance or not |
214 | 214 | * @return bool TRUE if Solr can be reached, FALSE if not |
215 | 215 | */ |
@@ -222,9 +222,9 @@ discard block |
||
222 | 222 | /** |
223 | 223 | * Call the /admin/ping servlet, can be used to get the runtime of a ping request. |
224 | 224 | * |
225 | - * @param float|int $timeout maximum time to wait for ping in seconds, -1 for unlimited (default is 2) |
|
225 | + * @param integer $timeout maximum time to wait for ping in seconds, -1 for unlimited (default is 2) |
|
226 | 226 | * @param boolean $useCache indicates if the ping result should be cached in the instance or not |
227 | - * @return int runtime in milliseconds |
|
227 | + * @return double runtime in milliseconds |
|
228 | 228 | * @throws \ApacheSolrForTypo3\Solr\PingFailedException |
229 | 229 | */ |
230 | 230 | public function getPingRoundTripRuntime($timeout = 2, $useCache = true) |
@@ -633,7 +633,7 @@ discard block |
||
633 | 633 | * a complete and well formed "delete" xml document |
634 | 634 | * |
635 | 635 | * @param string $rawPost Expected to be utf-8 encoded xml document |
636 | - * @param float|int $timeout Maximum expected duration of the delete operation on the server (otherwise, will throw a communication exception) |
|
636 | + * @param integer $timeout Maximum expected duration of the delete operation on the server (otherwise, will throw a communication exception) |
|
637 | 637 | * @return \Apache_Solr_Response |
638 | 638 | */ |
639 | 639 | public function delete($rawPost, $timeout = 3600) |
@@ -730,7 +730,7 @@ discard block |
||
730 | 730 | /** |
731 | 731 | * Add list of synonyms for base word to managed synonyms map |
732 | 732 | * |
733 | - * @param $baseWord |
|
733 | + * @param string $baseWord |
|
734 | 734 | * @param array $synonyms |
735 | 735 | * |
736 | 736 | * @return \Apache_Solr_Response |
@@ -751,7 +751,7 @@ discard block |
||
751 | 751 | /** |
752 | 752 | * Remove a synonym from the synonyms map |
753 | 753 | * |
754 | - * @param $baseWord |
|
754 | + * @param string $baseWord |
|
755 | 755 | * @return \Apache_Solr_Response |
756 | 756 | * @throws \Apache_Solr_InvalidArgumentException |
757 | 757 | */ |
@@ -767,7 +767,7 @@ discard block |
||
767 | 767 | /** |
768 | 768 | * Central method for making a HTTP DELETE operation against the Solr server |
769 | 769 | * |
770 | - * @param $url |
|
770 | + * @param string $url |
|
771 | 771 | * @param bool|float $timeout Read timeout in seconds |
772 | 772 | * @return \Apache_Solr_Response |
773 | 773 | */ |
@@ -253,7 +253,7 @@ |
||
253 | 253 | */ |
254 | 254 | protected function performPingRequest($timeout = 2, $useCache = true) |
255 | 255 | { |
256 | - $cacheKey = (string) ($this); |
|
256 | + $cacheKey = (string)($this); |
|
257 | 257 | if ($useCache && isset(static::$pingCache[$cacheKey])) { |
258 | 258 | return static::$pingCache[$cacheKey]; |
259 | 259 | } |