| @@ -53,7 +53,7 @@ | ||
| 53 | 53 | * @param string $uri | 
| 54 | 54 | * @param TypoScriptFrontendController $frontend | 
| 55 | 55 | * | 
| 56 | - * @return array | |
| 56 | + * @return string[] | |
| 57 | 57 | * | 
| 58 | 58 | * @throws \Exception | 
| 59 | 59 | * | 
| @@ -60,7 +60,7 @@ discard block | ||
| 60 | 60 | } | 
| 61 | 61 | |
| 62 | 62 | /** | 
| 63 | - * @param $processId | |
| 63 | + * @param string $processId | |
| 64 | 64 | */ | 
| 65 | 65 | public function unsetQueueProcessId($processId) | 
| 66 | 66 |      { | 
| @@ -438,7 +438,7 @@ discard block | ||
| 438 | 438 | /** | 
| 439 | 439 | * Determines if a page is queued | 
| 440 | 440 | * | 
| 441 | - * @param $uid | |
| 441 | + * @param integer $uid | |
| 442 | 442 | * @param bool $unprocessed_only | 
| 443 | 443 | * @param bool $timed_only | 
| 444 | 444 | * @param bool $timestamp | 
| @@ -250,7 +250,7 @@ | ||
| 250 | 250 | /** | 
| 251 | 251 | * Obtains configuration keys from the CLI arguments | 
| 252 | 252 | * | 
| 253 | - * @param $conf string | |
| 253 | + * @param string $conf string | |
| 254 | 254 | * @return array | 
| 255 | 255 | */ | 
| 256 | 256 | private function getConfigurationKeys($conf) | 
| @@ -297,7 +297,7 @@ | ||
| 297 | 297 | * scheduled but have note been crawled yet. | 
| 298 | 298 | * | 
| 299 | 299 | * @param int $uid uid of the page | 
| 300 | - * @param bool $limit | |
| 300 | + * @param integer $limit | |
| 301 | 301 | * | 
| 302 | 302 | * @return array array with the crawl-history of a page => 0 : scheduled time , 1 : executed_time, 2 : set_id | 
| 303 | 303 | */ | 
| @@ -31,7 +31,6 @@ | ||
| 31 | 31 | use TYPO3\CMS\Core\Database\ConnectionPool; | 
| 32 | 32 | use TYPO3\CMS\Core\Database\Query\QueryBuilder; | 
| 33 | 33 | use TYPO3\CMS\Core\Utility\GeneralUtility; | 
| 34 | -use TYPO3\CMS\Core\Utility\MathUtility; | |
| 35 | 34 | use TYPO3\CMS\Extbase\Object\ObjectManager; | 
| 36 | 35 | use TYPO3\CMS\Frontend\Page\PageRepository; | 
| 37 | 36 | |
| @@ -397,7 +397,7 @@ | ||
| 397 | 397 | * | 
| 398 | 398 | * @param void | 
| 399 | 399 | * | 
| 400 | - * @return string a-tag | |
| 400 | + * @return \TYPO3\CMS\Backend\Template\Components\Buttons\LinkButton|null a-tag | |
| 401 | 401 | */ | 
| 402 | 402 | protected function getModeLink() | 
| 403 | 403 |      { | 
| @@ -449,6 +449,10 @@ discard block | ||
| 449 | 449 | * @param array Array which is passed by reference and contains the an id per url to secure we will not crawl duplicates | 
| 450 | 450 | * @param array Array which will be filled with URLS for download if flag is set. | 
| 451 | 451 | * @param array Array of processing instructions | 
| 452 | + * @param integer $scheduledTime | |
| 453 | + * @param integer $reqMinute | |
| 454 | + * @param boolean $submitCrawlUrls | |
| 455 | + * @param boolean $downloadCrawlUrls | |
| 452 | 456 | * @return string List of URLs (meant for display in backend module) | 
| 453 | 457 | * | 
| 454 | 458 | */ | 
| @@ -531,7 +535,7 @@ discard block | ||
| 531 | 535 | * | 
| 532 | 536 | * @param string $piString PI to test | 
| 533 | 537 | * @param array $incomingProcInstructions Processing instructions | 
| 534 | - * @return boolean | |
| 538 | + * @return boolean|null | |
| 535 | 539 | */ | 
| 536 | 540 | public function drawURLs_PIfilter($piString, array $incomingProcInstructions) | 
| 537 | 541 |      { | 
| @@ -753,7 +757,7 @@ discard block | ||
| 753 | 757 | } | 
| 754 | 758 | |
| 755 | 759 | /** | 
| 756 | - * @param $rootid | |
| 760 | + * @param integer $rootid | |
| 757 | 761 | * @param $depth | 
| 758 | 762 | * @return array | 
| 759 | 763 | * | 
| @@ -1016,7 +1020,7 @@ discard block | ||
| 1016 | 1020 | * The number of URLs will be the multiplication of the number of parameter values for each key | 
| 1017 | 1021 | * | 
| 1018 | 1022 | * @param array $paramArray Output of expandParameters(): Array with keys (GET var names) and for each an array of values | 
| 1019 | - * @param array $urls URLs accumulated in this array (for recursion) | |
| 1023 | + * @param string[] $urls URLs accumulated in this array (for recursion) | |
| 1020 | 1024 | * @return array | 
| 1021 | 1025 | */ | 
| 1022 | 1026 | public function compileUrls($paramArray, $urls = []) | 
| @@ -1773,6 +1777,7 @@ discard block | ||
| 1773 | 1777 | |
| 1774 | 1778 | /** | 
| 1775 | 1779 | * @param message | 
| 1780 | + * @param string $message | |
| 1776 | 1781 | */ | 
| 1777 | 1782 | protected function log($message) | 
| 1778 | 1783 |      { | 
| @@ -1793,7 +1798,7 @@ discard block | ||
| 1793 | 1798 | * @param array $url | 
| 1794 | 1799 | * @param string $crawlerId | 
| 1795 | 1800 | * | 
| 1796 | - * @return array | |
| 1801 | + * @return string[] | |
| 1797 | 1802 | */ | 
| 1798 | 1803 | protected function buildRequestHeaderArray(array $url, $crawlerId) | 
| 1799 | 1804 |      { | 
| @@ -2071,6 +2076,7 @@ discard block | ||
| 2071 | 2076 | * | 
| 2072 | 2077 | * @param array Page row | 
| 2073 | 2078 | * @param string Page icon and title for row | 
| 2079 | + * @param string $pageTitleAndIcon | |
| 2074 | 2080 | * @return string HTML <tr> content (one or more) | 
| 2075 | 2081 | */ | 
| 2076 | 2082 | public function drawURLs_addRowsForPage(array $pageRow, $pageTitleAndIcon) | 
| @@ -2261,7 +2267,7 @@ discard block | ||
| 2261 | 2267 | * @param int $countInARun | 
| 2262 | 2268 | * @param int $sleepTime | 
| 2263 | 2269 | * @param int $sleepAfterFinish | 
| 2264 | - * @return string | |
| 2270 | + * @return integer | |
| 2265 | 2271 | */ | 
| 2266 | 2272 | public function CLI_run($countInARun, $sleepTime, $sleepAfterFinish) | 
| 2267 | 2273 |      { | 
| @@ -2564,6 +2570,7 @@ discard block | ||
| 2564 | 2570 | * Used to determine timeouts and to ensure a proper cleanup if there's a timeout | 
| 2565 | 2571 | * | 
| 2566 | 2572 | * @param string identification string for the process | 
| 2573 | + * @param string $pid | |
| 2567 | 2574 | * @return boolean determines if the process is still active / has resources | 
| 2568 | 2575 | * | 
| 2569 | 2576 | * TODO: Please consider moving this to Domain Model for Process or in ProcessRepository | 
| @@ -2725,7 +2732,7 @@ discard block | ||
| 2725 | 2732 | * Check whether the Crawling Protocol should be http or https | 
| 2726 | 2733 | * | 
| 2727 | 2734 | * @param $crawlerConfiguration | 
| 2728 | - * @param $pageConfiguration | |
| 2735 | + * @param boolean $pageConfiguration | |
| 2729 | 2736 | * | 
| 2730 | 2737 | * @return bool | 
| 2731 | 2738 | */ |