@@ -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  | 
                                                        
@@ -25,9 +25,7 @@  | 
                                                    ||
| 25 | 25 | * This copyright notice MUST APPEAR in all copies of the script!  | 
                                                        
| 26 | 26 | ***************************************************************/  | 
                                                        
| 27 | 27 | |
| 28 | -use AOE\Crawler\Domain\Model\Configuration;  | 
                                                        |
| 29 | 28 | use AOE\Crawler\Domain\Repository\ConfigurationRepository;  | 
                                                        
| 30 | -use TYPO3\CMS\Backend\Utility\BackendUtility;  | 
                                                        |
| 31 | 29 | use TYPO3\CMS\Core\Messaging\FlashMessage;  | 
                                                        
| 32 | 30 | use TYPO3\CMS\Core\Utility\GeneralUtility;  | 
                                                        
| 33 | 31 | use TYPO3\CMS\Core\Utility\MathUtility;  | 
                                                        
@@ -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)  | 
                                                        
@@ -33,7 +33,6 @@  | 
                                                    ||
| 33 | 33 | use TYPO3\CMS\Core\Database\ConnectionPool;  | 
                                                        
| 34 | 34 | use TYPO3\CMS\Core\Utility\GeneralUtility;  | 
                                                        
| 35 | 35 | use TYPO3\CMS\Core\Utility\MathUtility;  | 
                                                        
| 36 | -use TYPO3\CMS\Extbase\Object\ObjectManager;  | 
                                                        |
| 37 | 36 | |
| 38 | 37 | /**  | 
                                                        
| 39 | 38 | * Class CrawlerCommandController  | 
                                                        
@@ -26,7 +26,6 @@  | 
                                                    ||
| 26 | 26 | ***************************************************************/  | 
                                                        
| 27 | 27 | |
| 28 | 28 | use AOE\Crawler\Controller\CrawlerController;  | 
                                                        
| 29 | -use AOE\Crawler\Domain\Model\Queue;  | 
                                                        |
| 30 | 29 | use AOE\Crawler\Domain\Repository\ProcessRepository;  | 
                                                        
| 31 | 30 | use AOE\Crawler\Domain\Repository\QueueRepository;  | 
                                                        
| 32 | 31 | use TYPO3\CMS\Core\Database\ConnectionPool;  | 
                                                        
@@ -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 | */  | 
                                                        
@@ -43,7 +43,6 @@  | 
                                                    ||
| 43 | 43 | use TYPO3\CMS\Backend\Tree\View\PageTreeView;  | 
                                                        
| 44 | 44 | use TYPO3\CMS\Core\Authentication\BackendUserAuthentication;  | 
                                                        
| 45 | 45 | use TYPO3\CMS\Core\Database\ConnectionPool;  | 
                                                        
| 46 | -use TYPO3\CMS\Core\Database\DatabaseConnection;  | 
                                                        |
| 47 | 46 | use TYPO3\CMS\Core\Database\Query\Restriction\DeletedRestriction;  | 
                                                        
| 48 | 47 | use TYPO3\CMS\Core\Database\Query\Restriction\HiddenRestriction;  | 
                                                        
| 49 | 48 | use TYPO3\CMS\Core\Database\Query\Restriction\WorkspaceRestriction;  | 
                                                        
@@ -60,7 +60,6 @@  | 
                                                    ||
| 60 | 60 | /**  | 
                                                        
| 61 | 61 | * Main function of process CleanUp Hook.  | 
                                                        
| 62 | 62 | *  | 
                                                        
| 63 | - * @param CrawlerController $crawlerController Crawler Lib class  | 
                                                        |
| 64 | 63 | *  | 
                                                        
| 65 | 64 | * @return void  | 
                                                        
| 66 | 65 | */  |