@@ -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 descend into the site tree |
279 | 279 | * @return array Array of pages (IDs) in this site |
280 | 280 | */ |
@@ -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 | { |
@@ -28,7 +28,6 @@ |
||
28 | 28 | use Psr\Http\Message\ServerRequestInterface; |
29 | 29 | use TYPO3\CMS\Backend\Routing\UriBuilder; |
30 | 30 | use TYPO3\CMS\Backend\Toolbar\ClearCacheActionsHookInterface; |
31 | -use TYPO3\CMS\Backend\Utility\BackendUtility; |
|
32 | 31 | use TYPO3\CMS\Core\Imaging\Icon; |
33 | 32 | use TYPO3\CMS\Core\Imaging\IconFactory; |
34 | 33 | use TYPO3\CMS\Core\SingletonInterface; |