@@ -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 | * |
@@ -357,7 +357,7 @@ discard block |
||
| 357 | 357 | /** |
| 358 | 358 | * Returns a tag for the refresh icon |
| 359 | 359 | * |
| 360 | - * @return string |
|
| 360 | + * @return ButtonUtility |
|
| 361 | 361 | */ |
| 362 | 362 | protected function getRefreshLink() |
| 363 | 363 | { |
@@ -371,7 +371,7 @@ discard block |
||
| 371 | 371 | /** |
| 372 | 372 | * Returns a link for the panel to enable or disable the crawler |
| 373 | 373 | * |
| 374 | - * @return string |
|
| 374 | + * @return ButtonUtility |
|
| 375 | 375 | */ |
| 376 | 376 | protected function getEnableDisableLink() |
| 377 | 377 | { |
@@ -397,7 +397,7 @@ discard block |
||
| 397 | 397 | * |
| 398 | 398 | * @param void |
| 399 | 399 | * |
| 400 | - * @return string a-tag |
|
| 400 | + * @return ButtonUtility|null a-tag |
|
| 401 | 401 | */ |
| 402 | 402 | protected function getModeLink() |
| 403 | 403 | { |
@@ -117,7 +117,7 @@ |
||
| 117 | 117 | /** |
| 118 | 118 | * Mark current value as selected by returning the "selected" attribute |
| 119 | 119 | * |
| 120 | - * @param array $configurationArray |
|
| 120 | + * @param string $configurationArray |
|
| 121 | 121 | * @param string $currentValue |
| 122 | 122 | * |
| 123 | 123 | * @return string |
@@ -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) |
@@ -32,7 +32,6 @@ |
||
| 32 | 32 | use Helhum\Typo3Console\Mvc\Controller\CommandController; |
| 33 | 33 | use TYPO3\CMS\Core\Utility\GeneralUtility; |
| 34 | 34 | use TYPO3\CMS\Core\Utility\MathUtility; |
| 35 | -use TYPO3\CMS\Extbase\Object\ObjectManager; |
|
| 36 | 35 | |
| 37 | 36 | /** |
| 38 | 37 | * Class CrawlerCommandController |
@@ -429,6 +429,10 @@ discard block |
||
| 429 | 429 | * @param array Array which is passed by reference and contains the an id per url to secure we will not crawl duplicates |
| 430 | 430 | * @param array Array which will be filled with URLS for download if flag is set. |
| 431 | 431 | * @param array Array of processing instructions |
| 432 | + * @param integer $scheduledTime |
|
| 433 | + * @param integer $reqMinute |
|
| 434 | + * @param boolean $submitCrawlUrls |
|
| 435 | + * @param boolean $downloadCrawlUrls |
|
| 432 | 436 | * @return string List of URLs (meant for display in backend module) |
| 433 | 437 | * |
| 434 | 438 | */ |
@@ -551,7 +555,7 @@ discard block |
||
| 551 | 555 | * |
| 552 | 556 | * @param string $piString PI to test |
| 553 | 557 | * @param array $incomingProcInstructions Processing instructions |
| 554 | - * @return boolean |
|
| 558 | + * @return boolean|null |
|
| 555 | 559 | */ |
| 556 | 560 | public function drawURLs_PIfilter($piString, array $incomingProcInstructions) |
| 557 | 561 | { |
@@ -763,6 +767,9 @@ discard block |
||
| 763 | 767 | return $baseUrl; |
| 764 | 768 | } |
| 765 | 769 | |
| 770 | + /** |
|
| 771 | + * @param integer $rootid |
|
| 772 | + */ |
|
| 766 | 773 | public function getConfigurationsForBranch($rootid, $depth) |
| 767 | 774 | { |
| 768 | 775 | $configurationsForBranch = []; |
@@ -984,7 +991,7 @@ discard block |
||
| 984 | 991 | * The number of URLs will be the multiplication of the number of parameter values for each key |
| 985 | 992 | * |
| 986 | 993 | * @param array $paramArray Output of expandParameters(): Array with keys (GET var names) and for each an array of values |
| 987 | - * @param array $urls URLs accumulated in this array (for recursion) |
|
| 994 | + * @param string[] $urls URLs accumulated in this array (for recursion) |
|
| 988 | 995 | * @return array |
| 989 | 996 | */ |
| 990 | 997 | public function compileUrls($paramArray, $urls = []) |
@@ -1720,6 +1727,7 @@ discard block |
||
| 1720 | 1727 | |
| 1721 | 1728 | /** |
| 1722 | 1729 | * @param message |
| 1730 | + * @param string $message |
|
| 1723 | 1731 | */ |
| 1724 | 1732 | protected function log($message) |
| 1725 | 1733 | { |
@@ -1737,7 +1745,7 @@ discard block |
||
| 1737 | 1745 | * @param array $url |
| 1738 | 1746 | * @param string $crawlerId |
| 1739 | 1747 | * |
| 1740 | - * @return array |
|
| 1748 | + * @return string[] |
|
| 1741 | 1749 | */ |
| 1742 | 1750 | protected function buildRequestHeaderArray(array $url, $crawlerId) |
| 1743 | 1751 | { |
@@ -1997,6 +2005,7 @@ discard block |
||
| 1997 | 2005 | * |
| 1998 | 2006 | * @param array Page row |
| 1999 | 2007 | * @param string Page icon and title for row |
| 2008 | + * @param string $pageTitleAndIcon |
|
| 2000 | 2009 | * @return string HTML <tr> content (one or more) |
| 2001 | 2010 | */ |
| 2002 | 2011 | public function drawURLs_addRowsForPage(array $pageRow, $pageTitleAndIcon) |
@@ -2281,7 +2290,7 @@ discard block |
||
| 2281 | 2290 | /** |
| 2282 | 2291 | * Function executed by crawler_im.php cli script. |
| 2283 | 2292 | * |
| 2284 | - * @return bool |
|
| 2293 | + * @return null|boolean |
|
| 2285 | 2294 | */ |
| 2286 | 2295 | public function CLI_main_flush() |
| 2287 | 2296 | { |
@@ -2342,7 +2351,7 @@ discard block |
||
| 2342 | 2351 | * @param int $countInARun |
| 2343 | 2352 | * @param int $sleepTime |
| 2344 | 2353 | * @param int $sleepAfterFinish |
| 2345 | - * @return string |
|
| 2354 | + * @return integer |
|
| 2346 | 2355 | */ |
| 2347 | 2356 | public function CLI_run($countInARun, $sleepTime, $sleepAfterFinish) |
| 2348 | 2357 | { |
@@ -2656,7 +2665,7 @@ discard block |
||
| 2656 | 2665 | /** |
| 2657 | 2666 | * @param bool $get_as_float |
| 2658 | 2667 | * |
| 2659 | - * @return mixed |
|
| 2668 | + * @return string |
|
| 2660 | 2669 | */ |
| 2661 | 2670 | protected function microtime($get_as_float = false) |
| 2662 | 2671 | { |
@@ -2787,7 +2796,7 @@ discard block |
||
| 2787 | 2796 | * Check whether the Crawling Protocol should be http or https |
| 2788 | 2797 | * |
| 2789 | 2798 | * @param $crawlerConfiguration |
| 2790 | - * @param $pageConfiguration |
|
| 2799 | + * @param boolean $pageConfiguration |
|
| 2791 | 2800 | * |
| 2792 | 2801 | * @return bool |
| 2793 | 2802 | */ |
@@ -209,7 +209,7 @@ |
||
| 209 | 209 | /** |
| 210 | 210 | * Determines if a page is queued |
| 211 | 211 | * |
| 212 | - * @param $uid |
|
| 212 | + * @param integer $uid |
|
| 213 | 213 | * @param bool $unprocessed_only |
| 214 | 214 | * @param bool $timed_only |
| 215 | 215 | * @param bool $timestamp |