@@ -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 | { |
@@ -445,6 +445,10 @@ discard block |
||
| 445 | 445 | * @param array Array which is passed by reference and contains the an id per url to secure we will not crawl duplicates |
| 446 | 446 | * @param array Array which will be filled with URLS for download if flag is set. |
| 447 | 447 | * @param array Array of processing instructions |
| 448 | + * @param integer $scheduledTime |
|
| 449 | + * @param integer $reqMinute |
|
| 450 | + * @param boolean $submitCrawlUrls |
|
| 451 | + * @param boolean $downloadCrawlUrls |
|
| 448 | 452 | * @return string List of URLs (meant for display in backend module) |
| 449 | 453 | * |
| 450 | 454 | */ |
@@ -527,7 +531,7 @@ discard block |
||
| 527 | 531 | * |
| 528 | 532 | * @param string $piString PI to test |
| 529 | 533 | * @param array $incomingProcInstructions Processing instructions |
| 530 | - * @return boolean |
|
| 534 | + * @return boolean|null |
|
| 531 | 535 | */ |
| 532 | 536 | public function drawURLs_PIfilter($piString, array $incomingProcInstructions) |
| 533 | 537 | { |
@@ -1010,7 +1014,7 @@ discard block |
||
| 1010 | 1014 | * The number of URLs will be the multiplication of the number of parameter values for each key |
| 1011 | 1015 | * |
| 1012 | 1016 | * @param array $paramArray Output of expandParameters(): Array with keys (GET var names) and for each an array of values |
| 1013 | - * @param array $urls URLs accumulated in this array (for recursion) |
|
| 1017 | + * @param string[] $urls URLs accumulated in this array (for recursion) |
|
| 1014 | 1018 | * @return array |
| 1015 | 1019 | */ |
| 1016 | 1020 | public function compileUrls($paramArray, $urls = []) |
@@ -1767,6 +1771,7 @@ discard block |
||
| 1767 | 1771 | |
| 1768 | 1772 | /** |
| 1769 | 1773 | * @param message |
| 1774 | + * @param string $message |
|
| 1770 | 1775 | */ |
| 1771 | 1776 | protected function log($message) |
| 1772 | 1777 | { |
@@ -1787,7 +1792,7 @@ discard block |
||
| 1787 | 1792 | * @param array $url |
| 1788 | 1793 | * @param string $crawlerId |
| 1789 | 1794 | * |
| 1790 | - * @return array |
|
| 1795 | + * @return string[] |
|
| 1791 | 1796 | */ |
| 1792 | 1797 | protected function buildRequestHeaderArray(array $url, $crawlerId) |
| 1793 | 1798 | { |
@@ -2066,6 +2071,7 @@ discard block |
||
| 2066 | 2071 | * |
| 2067 | 2072 | * @param array Page row |
| 2068 | 2073 | * @param string Page icon and title for row |
| 2074 | + * @param string $pageTitleAndIcon |
|
| 2069 | 2075 | * @return string HTML <tr> content (one or more) |
| 2070 | 2076 | */ |
| 2071 | 2077 | public function drawURLs_addRowsForPage(array $pageRow, $pageTitleAndIcon) |
@@ -2256,7 +2262,7 @@ discard block |
||
| 2256 | 2262 | * @param int $countInARun |
| 2257 | 2263 | * @param int $sleepTime |
| 2258 | 2264 | * @param int $sleepAfterFinish |
| 2259 | - * @return string |
|
| 2265 | + * @return integer |
|
| 2260 | 2266 | */ |
| 2261 | 2267 | public function CLI_run($countInARun, $sleepTime, $sleepAfterFinish) |
| 2262 | 2268 | { |
@@ -2559,6 +2565,7 @@ discard block |
||
| 2559 | 2565 | * Used to determine timeouts and to ensure a proper cleanup if there's a timeout |
| 2560 | 2566 | * |
| 2561 | 2567 | * @param string identification string for the process |
| 2568 | + * @param string $pid |
|
| 2562 | 2569 | * @return boolean determines if the process is still active / has resources |
| 2563 | 2570 | * |
| 2564 | 2571 | * TODO: Please consider moving this to Domain Model for Process or in ProcessRepository |
@@ -2720,7 +2727,7 @@ discard block |
||
| 2720 | 2727 | * Check whether the Crawling Protocol should be http or https |
| 2721 | 2728 | * |
| 2722 | 2729 | * @param $crawlerConfiguration |
| 2723 | - * @param $pageConfiguration |
|
| 2730 | + * @param boolean $pageConfiguration |
|
| 2724 | 2731 | * |
| 2725 | 2732 | * @return bool |
| 2726 | 2733 | */ |