Completed
Branch master (894d65)
by Freek
07:23 queued 05:39
created
src/CrawlQueue/CollectionCrawlQueue.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@
 block discarded – undo
68 68
     }
69 69
 
70 70
     /**
71
-     * @param CrawlUrl|\Psr\Http\Message\UriInterface|string $crawlUrl
71
+     * @param CrawlUrl $crawlUrl
72 72
      *
73 73
      * @return bool
74 74
      */
Please login to merge, or discard this patch.
src/Crawler.php 1 patch
Doc Comments   +7 added lines, -1 removed lines patch added patch discarded remove patch
@@ -292,6 +292,9 @@  discard block
 block discarded – undo
292 292
             strlen($haystack);
293 293
     }
294 294
 
295
+    /**
296
+     * @param integer $readMaximumBytes
297
+     */
295 298
     protected function convertBodyToString(StreamInterface $bodyStream, $readMaximumBytes = 1024 * 1024 * 2): string
296 299
     {
297 300
         $bodyStream->rewind();
@@ -302,7 +305,7 @@  discard block
 block discarded – undo
302 305
     }
303 306
 
304 307
     /**
305
-     * @param ResponseInterface|null $response
308
+     * @param ResponseInterface $response
306 309
      * @param CrawlUrl $crawlUrl
307 310
      */
308 311
     protected function handleCrawled(ResponseInterface $response, CrawlUrl $crawlUrl)
@@ -429,6 +432,9 @@  discard block
 block discarded – undo
429 432
         return in_array($uri->getScheme(), ['http', 'https']);
430 433
     }
431 434
 
435
+    /**
436
+     * @return Node
437
+     */
432 438
     protected function addtoDepthTree(Node $node, UriInterface $url, UriInterface $parentUrl)
433 439
     {
434 440
         $returnNode = null;
Please login to merge, or discard this patch.