Completed
Push — issue/184 ( 34dcc8 )
by Tomas Norre
10:00
created
class.tx_crawler_lib.php 1 patch
Doc Comments   +19 added lines, -7 removed lines patch added patch discarded remove patch
@@ -420,7 +420,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
626 626
     }
627 627
 
628 628
     /**
629
-     * @param $rootid
629
+     * @param integer $rootid
630 630
      * @param $depth
631 631
      *
632 632
      * @return array
@@ -734,6 +734,7 @@  discard block
 block discarded – undo
734 734
      *
735 735
      * @param    array        Array with key (GET var name) and values (value of GET var which is configuration for expansion)
736 736
      * @param    integer        Current page ID
737
+     * @param integer $pid
737 738
      * @return    array        Array with key (GET var name) with the value being an array of all possible values for that key.
738 739
      */
739 740
     protected function expandParameters($paramArray, $pid)    {
@@ -852,7 +853,7 @@  discard block
 block discarded – undo
852 853
      * The number of URLs will be the multiplication of the number of parameter values for each key
853 854
      *
854 855
      * @param  array  $paramArray   Output of expandParameters(): Array with keys (GET var names) and for each an array of values
855
-     * @param  array  $urls         URLs accumulated in this array (for recursion)
856
+     * @param  string[]  $urls         URLs accumulated in this array (for recursion)
856 857
      * @return array                URLs accumulated, if number of urls exceed 'maxCompileUrls' it will return false as an error!
857 858
      */
858 859
     public function compileUrls($paramArray, $urls = array()) {
@@ -1020,6 +1021,8 @@  discard block
 block discarded – undo
1020 1021
      * @param    integer        Scheduled-time
1021 1022
      * @param     string        (optional) configuration hash
1022 1023
      * @param     bool        (optional) skip inner duplication check
1024
+     * @param string $url
1025
+     * @param double $tstamp
1023 1026
      * @return    bool        true if the url was added, false if it already existed
1024 1027
      */
1025 1028
     protected function addUrl (
@@ -1459,6 +1462,7 @@  discard block
 block discarded – undo
1459 1462
 
1460 1463
     /**
1461 1464
      * @param message
1465
+     * @param string $message
1462 1466
      */
1463 1467
     protected function log($message) {
1464 1468
         if (!empty($this->extensionSettings['logFileName'])) {
@@ -1472,7 +1476,7 @@  discard block
 block discarded – undo
1472 1476
      * @param array $url
1473 1477
      * @param string $crawlerId
1474 1478
      *
1475
-     * @return array
1479
+     * @return string[]
1476 1480
      */
1477 1481
     protected function buildRequestHeaderArray(array $url, $crawlerId) {
1478 1482
         $reqHeaders = array();
@@ -1566,6 +1570,12 @@  discard block
 block discarded – undo
1566 1570
      * @param    boolean        If set (and submitcrawlUrls is false) will fill $downloadUrls with entries)
1567 1571
      * @param    array        Array of processing instructions
1568 1572
      * @param    array        Array of configuration keys
1573
+     * @param integer $id
1574
+     * @param integer $depth
1575
+     * @param integer $scheduledTime
1576
+     * @param integer $reqMinute
1577
+     * @param boolean $submitCrawlUrls
1578
+     * @param boolean $downloadCrawlUrls
1569 1579
      * @return    string        HTML code
1570 1580
      */
1571 1581
     function getPageTreeAndUrls(
@@ -1714,6 +1724,7 @@  discard block
 block discarded – undo
1714 1724
      *
1715 1725
      * @param    array        Page row
1716 1726
      * @param    string        Page icon and title for row
1727
+     * @param string $pageTitleAndIcon
1717 1728
      * @return    string        HTML <tr> content (one or more)
1718 1729
      */
1719 1730
     public function drawURLs_addRowsForPage(array $pageRow, $pageTitleAndIcon)    {
@@ -2014,7 +2025,7 @@  discard block
 block discarded – undo
2014 2025
     /**
2015 2026
      * Function executed by crawler_im.php cli script.
2016 2027
      *
2017
-     * @return bool
2028
+     * @return null|boolean
2018 2029
      */
2019 2030
     function CLI_main_flush() {
2020 2031
         $this->setAccessMode('cli_flush');
@@ -2071,7 +2082,7 @@  discard block
 block discarded – undo
2071 2082
      * @param  int $countInARun
2072 2083
      * @param  int $sleepTime
2073 2084
      * @param  int $sleepAfterFinish
2074
-     * @return string                   Status message
2085
+     * @return integer                   Status message
2075 2086
      */
2076 2087
     public function CLI_run($countInARun, $sleepTime, $sleepAfterFinish) {
2077 2088
         $result = 0;
@@ -2343,6 +2354,7 @@  discard block
 block discarded – undo
2343 2354
      * Used to determine timeouts and to ensure a proper cleanup if there's a timeout
2344 2355
      *
2345 2356
      * @param  string  identification string for the process
2357
+     * @param string $pid
2346 2358
      * @return boolean determines if the process is still active / has resources
2347 2359
      *
2348 2360
      * FIXME: Please remove Transaction, not needed as only a select query.
@@ -2380,7 +2392,7 @@  discard block
 block discarded – undo
2380 2392
     /**
2381 2393
      * @param bool $get_as_float
2382 2394
      *
2383
-     * @return mixed
2395
+     * @return string
2384 2396
      */
2385 2397
     protected function microtime($get_as_float = false )
2386 2398
     {
Please login to merge, or discard this patch.