Completed
Push — Chalet21 ( 59574d )
by Tomas Norre
10:34
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   +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
@@ -732,6 +732,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
2374 2386
     /**
2375 2387
      * @param bool $get_as_float
2376 2388
      *
2377
-     * @return mixed
2389
+     * @return string
2378 2390
      *
2379 2391
      * @codeCoverageIgnore
2380 2392
      */
Please login to merge, or discard this patch.