@@ -420,7 +420,7 @@ discard block |
||
420 | 420 | * @param string $piString PI to test |
421 | 421 | * @param array $incomingProcInstructions Processing instructions |
422 | 422 | * |
423 | - * @return boolean TRUE if found |
|
423 | + * @return boolean|null TRUE if found |
|
424 | 424 | */ |
425 | 425 | public function drawURLs_PIfilter($piString, array $incomingProcInstructions) { |
426 | 426 | if (empty($incomingProcInstructions)) { |
@@ -626,7 +626,7 @@ discard block |
||
626 | 626 | } |
627 | 627 | |
628 | 628 | /** |
629 | - * @param $rootId |
|
629 | + * @param integer $rootId |
|
630 | 630 | * @param $depth |
631 | 631 | * |
632 | 632 | * @return array |
@@ -732,6 +732,7 @@ discard block |
||
732 | 732 | * |
733 | 733 | * @param array Array with key (GET var name) and values (value of GET var which is configuration for expansion) |
734 | 734 | * @param integer Current page ID |
735 | + * @param integer $pid |
|
735 | 736 | * @return array Array with key (GET var name) with the value being an array of all possible values for that key. |
736 | 737 | */ |
737 | 738 | protected function expandParameters($paramArray, $pid) { |
@@ -850,7 +851,7 @@ discard block |
||
850 | 851 | * The number of URLs will be the multiplication of the number of parameter values for each key |
851 | 852 | * |
852 | 853 | * @param array $paramArray Output of expandParameters(): Array with keys (GET var names) and for each an array of values |
853 | - * @param array $urls URLs accumulated in this array (for recursion) |
|
854 | + * @param string[] $urls URLs accumulated in this array (for recursion) |
|
854 | 855 | * @return array URLs accumulated, if number of urls exceed 'maxCompileUrls' it will return false as an error! |
855 | 856 | */ |
856 | 857 | public function compileUrls($paramArray, $urls = array()) { |
@@ -1018,6 +1019,8 @@ discard block |
||
1018 | 1019 | * @param integer Scheduled-time |
1019 | 1020 | * @param string (optional) configuration hash |
1020 | 1021 | * @param bool (optional) skip inner duplication check |
1022 | + * @param string $url |
|
1023 | + * @param double $tstamp |
|
1021 | 1024 | * @return bool true if the url was added, false if it already existed |
1022 | 1025 | */ |
1023 | 1026 | protected function addUrl ( |
@@ -1460,6 +1463,7 @@ discard block |
||
1460 | 1463 | |
1461 | 1464 | /** |
1462 | 1465 | * @param message |
1466 | + * @param string $message |
|
1463 | 1467 | */ |
1464 | 1468 | protected function log($message) { |
1465 | 1469 | if (!empty($this->extensionSettings['logFileName'])) { |
@@ -1473,7 +1477,7 @@ discard block |
||
1473 | 1477 | * @param array $url |
1474 | 1478 | * @param string $crawlerId |
1475 | 1479 | * |
1476 | - * @return array |
|
1480 | + * @return string[] |
|
1477 | 1481 | */ |
1478 | 1482 | protected function buildRequestHeaderArray(array $url, $crawlerId) { |
1479 | 1483 | $reqHeaders = array(); |
@@ -1567,6 +1571,12 @@ discard block |
||
1567 | 1571 | * @param boolean If set (and submitcrawlUrls is false) will fill $downloadUrls with entries) |
1568 | 1572 | * @param array Array of processing instructions |
1569 | 1573 | * @param array Array of configuration keys |
1574 | + * @param integer $id |
|
1575 | + * @param integer $depth |
|
1576 | + * @param integer $scheduledTime |
|
1577 | + * @param integer $reqMinute |
|
1578 | + * @param boolean $submitCrawlUrls |
|
1579 | + * @param boolean $downloadCrawlUrls |
|
1570 | 1580 | * @return string HTML code |
1571 | 1581 | */ |
1572 | 1582 | function getPageTreeAndUrls( |
@@ -1715,6 +1725,7 @@ discard block |
||
1715 | 1725 | * |
1716 | 1726 | * @param array Page row |
1717 | 1727 | * @param string Page icon and title for row |
1728 | + * @param string $pageTitleAndIcon |
|
1718 | 1729 | * @return string HTML <tr> content (one or more) |
1719 | 1730 | */ |
1720 | 1731 | public function drawURLs_addRowsForPage(array $pageRow, $pageTitleAndIcon) { |
@@ -2008,7 +2019,7 @@ discard block |
||
2008 | 2019 | /** |
2009 | 2020 | * Function executed by crawler_im.php cli script. |
2010 | 2021 | * |
2011 | - * @return bool |
|
2022 | + * @return null|boolean |
|
2012 | 2023 | */ |
2013 | 2024 | function CLI_main_flush() { |
2014 | 2025 | $this->setAccessMode('cli_flush'); |
@@ -2065,7 +2076,7 @@ discard block |
||
2065 | 2076 | * @param int $countInARun |
2066 | 2077 | * @param int $sleepTime |
2067 | 2078 | * @param int $sleepAfterFinish |
2068 | - * @return string Status message |
|
2079 | + * @return integer Status message |
|
2069 | 2080 | */ |
2070 | 2081 | public function CLI_run($countInARun, $sleepTime, $sleepAfterFinish) { |
2071 | 2082 | $result = 0; |
@@ -2337,6 +2348,7 @@ discard block |
||
2337 | 2348 | * Used to determine timeouts and to ensure a proper cleanup if there's a timeout |
2338 | 2349 | * |
2339 | 2350 | * @param string identification string for the process |
2351 | + * @param string $pid |
|
2340 | 2352 | * @return boolean determines if the process is still active / has resources |
2341 | 2353 | * |
2342 | 2354 | * FIXME: Please remove Transaction, not needed as only a select query. |
@@ -2374,7 +2386,7 @@ discard block |
||
2374 | 2386 | /** |
2375 | 2387 | * @param bool $get_as_float |
2376 | 2388 | * |
2377 | - * @return mixed |
|
2389 | + * @return string |
|
2378 | 2390 | * |
2379 | 2391 | * @codeCoverageIgnore |
2380 | 2392 | */ |