| @@ -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 |      { | 
| @@ -27,7 +27,6 @@ | ||
| 27 | 27 | |
| 28 | 28 | use AOE\Crawler\Domain\Model\ProcessCollection; | 
| 29 | 29 | use AOE\Crawler\Utility\ButtonUtility; | 
| 30 | -use TYPO3\CMS\Backend\Utility\BackendUtility; | |
| 31 | 30 | use TYPO3\CMS\Core\Utility\GeneralUtility; | 
| 32 | 31 | use TYPO3\CMS\Extbase\Mvc\Web\Routing\UriBuilder; | 
| 33 | 32 | |
| @@ -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 | 
| @@ -26,7 +26,6 @@ | ||
| 26 | 26 | ***************************************************************/ | 
| 27 | 27 | |
| 28 | 28 | use AOE\Crawler\Domain\Repository\ConfigurationRepository; | 
| 29 | -use TYPO3\CMS\Backend\Utility\BackendUtility; | |
| 30 | 29 | use TYPO3\CMS\Core\Messaging\FlashMessage; | 
| 31 | 30 | use TYPO3\CMS\Core\Utility\GeneralUtility; | 
| 32 | 31 | use TYPO3\CMS\Core\Utility\MathUtility; | 
| @@ -223,7 +223,7 @@ discard block | ||
| 223 | 223 | /** | 
| 224 | 224 | * Determines if a page is queued | 
| 225 | 225 | * | 
| 226 | - * @param $uid | |
| 226 | + * @param integer $uid | |
| 227 | 227 | * @param bool $unprocessed_only | 
| 228 | 228 | * @param bool $timed_only | 
| 229 | 229 | * @param bool $timestamp | 
| @@ -304,7 +304,7 @@ discard block | ||
| 304 | 304 | * scheduled but have note been crawled yet. | 
| 305 | 305 | * | 
| 306 | 306 | * @param int $uid uid of the page | 
| 307 | - * @param bool $limit | |
| 307 | + * @param integer $limit | |
| 308 | 308 | * | 
| 309 | 309 | * @return array array with the crawl-history of a page => 0 : scheduled time , 1 : executed_time, 2 : set_id | 
| 310 | 310 | */ | 
| @@ -40,7 +40,6 @@ | ||
| 40 | 40 | use TYPO3\CMS\Backend\Tree\View\PageTreeView; | 
| 41 | 41 | use TYPO3\CMS\Backend\Utility\BackendUtility; | 
| 42 | 42 | use TYPO3\CMS\Beuser\Domain\Model\BackendUser; | 
| 43 | -use TYPO3\CMS\Beuser\Domain\Model\Demand; | |
| 44 | 43 | use TYPO3\CMS\Beuser\Domain\Repository\BackendUserRepository; | 
| 45 | 44 | use TYPO3\CMS\Core\Authentication\BackendUserAuthentication; | 
| 46 | 45 | use TYPO3\CMS\Core\Configuration\ExtensionConfiguration; | 
| @@ -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 | 
| @@ -29,10 +29,8 @@ | ||
| 29 | 29 | use AOE\Crawler\Domain\Model\Queue; | 
| 30 | 30 | use TYPO3\CMS\Core\Database\ConnectionPool; | 
| 31 | 31 | use TYPO3\CMS\Core\Database\Query\QueryBuilder; | 
| 32 | -use TYPO3\CMS\Core\Exception; | |
| 33 | 32 | use TYPO3\CMS\Core\Utility\GeneralUtility; | 
| 34 | 33 | use TYPO3\CMS\Core\Utility\MathUtility; | 
| 35 | -use TYPO3\CMS\Extbase\Persistence\Generic\QueryResult; | |
| 36 | 34 | |
| 37 | 35 | /** | 
| 38 | 36 | * Class QueueRepository | 
| @@ -436,6 +436,10 @@ discard block | ||
| 436 | 436 | * @param array Array which is passed by reference and contains the an id per url to secure we will not crawl duplicates | 
| 437 | 437 | * @param array Array which will be filled with URLS for download if flag is set. | 
| 438 | 438 | * @param array Array of processing instructions | 
| 439 | + * @param integer $scheduledTime | |
| 440 | + * @param integer $reqMinute | |
| 441 | + * @param boolean $submitCrawlUrls | |
| 442 | + * @param boolean $downloadCrawlUrls | |
| 439 | 443 | * @return string List of URLs (meant for display in backend module) | 
| 440 | 444 | * | 
| 441 | 445 | */ | 
| @@ -560,7 +564,7 @@ discard block | ||
| 560 | 564 | * | 
| 561 | 565 | * @param string $piString PI to test | 
| 562 | 566 | * @param array $incomingProcInstructions Processing instructions | 
| 563 | - * @return boolean | |
| 567 | + * @return boolean|null | |
| 564 | 568 | */ | 
| 565 | 569 | public function drawURLs_PIfilter($piString, array $incomingProcInstructions) | 
| 566 | 570 |      { | 
| @@ -781,7 +785,7 @@ discard block | ||
| 781 | 785 | } | 
| 782 | 786 | |
| 783 | 787 | /** | 
| 784 | - * @param $rootid | |
| 788 | + * @param integer $rootid | |
| 785 | 789 | * @param $depth | 
| 786 | 790 | * @return array | 
| 787 | 791 | * | 
| @@ -1043,7 +1047,7 @@ discard block | ||
| 1043 | 1047 | * The number of URLs will be the multiplication of the number of parameter values for each key | 
| 1044 | 1048 | * | 
| 1045 | 1049 | * @param array $paramArray Output of expandParameters(): Array with keys (GET var names) and for each an array of values | 
| 1046 | - * @param array $urls URLs accumulated in this array (for recursion) | |
| 1050 | + * @param string[] $urls URLs accumulated in this array (for recursion) | |
| 1047 | 1051 | * @return array | 
| 1048 | 1052 | */ | 
| 1049 | 1053 | public function compileUrls($paramArray, $urls = []) | 
| @@ -1780,6 +1784,7 @@ discard block | ||
| 1780 | 1784 | |
| 1781 | 1785 | /** | 
| 1782 | 1786 | * @param message | 
| 1787 | + * @param string $message | |
| 1783 | 1788 | */ | 
| 1784 | 1789 | protected function log($message) | 
| 1785 | 1790 |      { | 
| @@ -1797,7 +1802,7 @@ discard block | ||
| 1797 | 1802 | * @param array $url | 
| 1798 | 1803 | * @param string $crawlerId | 
| 1799 | 1804 | * | 
| 1800 | - * @return array | |
| 1805 | + * @return string[] | |
| 1801 | 1806 | */ | 
| 1802 | 1807 | protected function buildRequestHeaderArray(array $url, $crawlerId) | 
| 1803 | 1808 |      { | 
| @@ -2074,6 +2079,7 @@ discard block | ||
| 2074 | 2079 | * | 
| 2075 | 2080 | * @param array Page row | 
| 2076 | 2081 | * @param string Page icon and title for row | 
| 2082 | + * @param string $pageTitleAndIcon | |
| 2077 | 2083 | * @return string HTML <tr> content (one or more) | 
| 2078 | 2084 | */ | 
| 2079 | 2085 | public function drawURLs_addRowsForPage(array $pageRow, $pageTitleAndIcon) | 
| @@ -2436,7 +2442,7 @@ discard block | ||
| 2436 | 2442 | * @param int $countInARun | 
| 2437 | 2443 | * @param int $sleepTime | 
| 2438 | 2444 | * @param int $sleepAfterFinish | 
| 2439 | - * @return string | |
| 2445 | + * @return integer | |
| 2440 | 2446 | */ | 
| 2441 | 2447 | public function CLI_run($countInARun, $sleepTime, $sleepAfterFinish) | 
| 2442 | 2448 |      { | 
| @@ -2761,6 +2767,7 @@ discard block | ||
| 2761 | 2767 | * Used to determine timeouts and to ensure a proper cleanup if there's a timeout | 
| 2762 | 2768 | * | 
| 2763 | 2769 | * @param string identification string for the process | 
| 2770 | + * @param string $pid | |
| 2764 | 2771 | * @return boolean determines if the process is still active / has resources | 
| 2765 | 2772 | * | 
| 2766 | 2773 | * TODO: Please consider moving this to Domain Model for Process or in ProcessRepository | 
| @@ -2801,7 +2808,7 @@ discard block | ||
| 2801 | 2808 | /** | 
| 2802 | 2809 | * @param bool $get_as_float | 
| 2803 | 2810 | * | 
| 2804 | - * @return mixed | |
| 2811 | + * @return string | |
| 2805 | 2812 | */ | 
| 2806 | 2813 | protected function microtime($get_as_float = false) | 
| 2807 | 2814 |      { | 
| @@ -2922,7 +2929,7 @@ discard block | ||
| 2922 | 2929 | * Check whether the Crawling Protocol should be http or https | 
| 2923 | 2930 | * | 
| 2924 | 2931 | * @param $crawlerConfiguration | 
| 2925 | - * @param $pageConfiguration | |
| 2932 | + * @param boolean $pageConfiguration | |
| 2926 | 2933 | * | 
| 2927 | 2934 | * @return bool | 
| 2928 | 2935 | */ | 
| @@ -27,7 +27,6 @@ discard block | ||
| 27 | 27 | |
| 28 | 28 | use AOE\Crawler\Command\CrawlerCommandLineController; | 
| 29 | 29 | use AOE\Crawler\Command\FlushCommandLineController; | 
| 30 | -use AOE\Crawler\Command\QueueCommandLineController; | |
| 31 | 30 | use AOE\Crawler\Domain\Model\Reason; | 
| 32 | 31 | use AOE\Crawler\Domain\Repository\ProcessRepository; | 
| 33 | 32 | use AOE\Crawler\Domain\Repository\QueueRepository; | 
| @@ -39,11 +38,9 @@ discard block | ||
| 39 | 38 | use TYPO3\CMS\Core\Authentication\BackendUserAuthentication; | 
| 40 | 39 | use TYPO3\CMS\Core\Database\Connection; | 
| 41 | 40 | use TYPO3\CMS\Core\Database\ConnectionPool; | 
| 42 | -use TYPO3\CMS\Core\Database\DatabaseConnection; | |
| 43 | 41 | use TYPO3\CMS\Core\Database\Query\QueryBuilder; | 
| 44 | 42 | use TYPO3\CMS\Core\Log\Logger; | 
| 45 | 43 | use TYPO3\CMS\Core\Log\LogLevel; | 
| 46 | -use TYPO3\CMS\Core\TimeTracker\NullTimeTracker; | |
| 47 | 44 | use TYPO3\CMS\Core\TimeTracker\TimeTracker; | 
| 48 | 45 | use TYPO3\CMS\Core\Utility\DebugUtility; | 
| 49 | 46 | use TYPO3\CMS\Core\Utility\ExtensionManagementUtility; | 
| @@ -51,7 +48,6 @@ discard block | ||
| 51 | 48 | use TYPO3\CMS\Core\Utility\MathUtility; | 
| 52 | 49 | use TYPO3\CMS\Extbase\Object\ObjectManager; | 
| 53 | 50 | use TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController; | 
| 54 | -use TYPO3\CMS\Frontend\Page\PageGenerator; | |
| 55 | 51 | use TYPO3\CMS\Frontend\Page\PageRepository; | 
| 56 | 52 | use TYPO3\CMS\Frontend\Utility\EidUtility; | 
| 57 | 53 | use TYPO3\CMS\Lang\LanguageService; |