Completed
Push — issue/182 ( 3b84dc...2c0a23 )
by Tomas Norre
09:54
created
Classes/Hooks/StaticFileCacheCreateUriHook.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
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
      *
Please login to merge, or discard this patch.
Classes/Api/CrawlerApi.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -209,7 +209,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
class.tx_crawler_lib.php 1 patch
Doc Comments   +21 added lines, -7 removed lines patch added patch discarded remove patch
@@ -420,7 +420,7 @@  discard block
 block discarded – undo
420 420
      *
421 421
      * @param  string $piString                     PI to test
422 422
      * @param  array  $incomingProcInstructions     Processing instructions
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)) {
@@ -621,6 +621,9 @@  discard block
 block discarded – undo
621 621
         return $baseUrl;
622 622
     }
623 623
 
624
+    /**
625
+     * @param integer $rootid
626
+     */
624 627
     function getConfigurationsForBranch($rootid, $depth) {
625 628
 
626 629
         $configurationsForBranch = array();
@@ -724,6 +727,7 @@  discard block
 block discarded – undo
724 727
      *
725 728
      * @param    array        Array with key (GET var name) and values (value of GET var which is configuration for expansion)
726 729
      * @param    integer        Current page ID
730
+     * @param integer $pid
727 731
      * @return    array        Array with key (GET var name) with the value being an array of all possible values for that key.
728 732
      */
729 733
     function expandParameters($paramArray, $pid)    {
@@ -842,7 +846,7 @@  discard block
 block discarded – undo
842 846
      * The number of URLs will be the multiplication of the number of parameter values for each key
843 847
      *
844 848
      * @param  array  $paramArray   Output of expandParameters(): Array with keys (GET var names) and for each an array of values
845
-     * @param  array  $urls         URLs accumulated in this array (for recursion)
849
+     * @param  string[]  $urls         URLs accumulated in this array (for recursion)
846 850
      * @return array                URLs accumulated, if number of urls exceed 'maxCompileUrls' it will return false as an error!
847 851
      */
848 852
     function compileUrls($paramArray, $urls = array()) {
@@ -1028,6 +1032,8 @@  discard block
 block discarded – undo
1028 1032
      * @param    integer        Scheduled-time
1029 1033
      * @param     string        (optional) configuration hash
1030 1034
      * @param     bool        (optional) skip inner duplication check
1035
+     * @param string $url
1036
+     * @param double $tstamp
1031 1037
      * @return    bool        true if the url was added, false if it already existed
1032 1038
      */
1033 1039
     function addUrl (
@@ -1103,7 +1109,6 @@  discard block
 block discarded – undo
1103 1109
      * If the timestamp is in the future it will check, if the queued entry has exactly the same timestamp
1104 1110
      *
1105 1111
      * @param int $tstamp
1106
-     * @param string $parameters
1107 1112
      * @author Fabrizio Branca
1108 1113
      * @author Timo Schmidt
1109 1114
      * @return array;
@@ -1467,6 +1472,7 @@  discard block
 block discarded – undo
1467 1472
 
1468 1473
     /**
1469 1474
      * @param message
1475
+     * @param string $message
1470 1476
      */
1471 1477
     protected function log($message) {
1472 1478
         if (!empty($this->extensionSettings['logFileName'])) {
@@ -1480,7 +1486,7 @@  discard block
 block discarded – undo
1480 1486
      * @param array $url
1481 1487
      * @param string $crawlerId
1482 1488
      *
1483
-     * @return array
1489
+     * @return string[]
1484 1490
      */
1485 1491
     protected function buildRequestHeaderArray(array $url, $crawlerId) {
1486 1492
         $reqHeaders = array();
@@ -1583,6 +1589,12 @@  discard block
 block discarded – undo
1583 1589
      * @param    boolean        If set (and submitcrawlUrls is false) will fill $downloadUrls with entries)
1584 1590
      * @param    array        Array of processing instructions
1585 1591
      * @param    array        Array of configuration keys
1592
+     * @param integer $id
1593
+     * @param integer $depth
1594
+     * @param integer $scheduledTime
1595
+     * @param integer $reqMinute
1596
+     * @param boolean $submitCrawlUrls
1597
+     * @param boolean $downloadCrawlUrls
1586 1598
      * @return    string        HTML code
1587 1599
      */
1588 1600
     function getPageTreeAndUrls(
@@ -1731,6 +1743,7 @@  discard block
 block discarded – undo
1731 1743
      *
1732 1744
      * @param    array        Page row
1733 1745
      * @param    string        Page icon and title for row
1746
+     * @param string $pageTitleAndIcon
1734 1747
      * @return    string        HTML <tr> content (one or more)
1735 1748
      */
1736 1749
     public function drawURLs_addRowsForPage(array $pageRow, $pageTitleAndIcon)    {
@@ -2031,7 +2044,7 @@  discard block
 block discarded – undo
2031 2044
     /**
2032 2045
      * Function executed by crawler_im.php cli script.
2033 2046
      *
2034
-     * @return bool
2047
+     * @return null|boolean
2035 2048
      */
2036 2049
     function CLI_main_flush() {
2037 2050
         $this->setAccessMode('cli_flush');
@@ -2088,7 +2101,7 @@  discard block
 block discarded – undo
2088 2101
      * @param  int $countInARun
2089 2102
      * @param  int $sleepTime
2090 2103
      * @param  int $sleepAfterFinish
2091
-     * @return string                   Status message
2104
+     * @return integer                   Status message
2092 2105
      */
2093 2106
     public function CLI_run($countInARun, $sleepTime, $sleepAfterFinish) {
2094 2107
         $result = 0;
@@ -2360,6 +2373,7 @@  discard block
 block discarded – undo
2360 2373
      * Used to determine timeouts and to ensure a proper cleanup if there's a timeout
2361 2374
      *
2362 2375
      * @param  string  identification string for the process
2376
+     * @param string $pid
2363 2377
      * @return boolean determines if the process is still active / has resources
2364 2378
      */
2365 2379
     function CLI_checkIfProcessIsActive($pid) {
@@ -2395,7 +2409,7 @@  discard block
 block discarded – undo
2395 2409
     /**
2396 2410
      * @param bool $get_as_float
2397 2411
      *
2398
-     * @return mixed
2412
+     * @return string
2399 2413
      */
2400 2414
     protected function microtime($get_as_float = false )
2401 2415
     {
Please login to merge, or discard this patch.