Completed
Pull Request — master (#112)
by Freek
05:09 queued 03:55
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
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
     }
179 179
 
180 180
     /**
181
-     * @param \Spatie\Crawler\CrawlObserver|array[\Spatie\Crawler\CrawlObserver] $crawlObserver
181
+     * @param \Spatie\Crawler\CrawlObserver|array[\Spatie\Crawler\CrawlObserver] $crawlObservers
182 182
      *
183 183
      * @return $this
184 184
      */
@@ -291,6 +291,9 @@  discard block
 block discarded – undo
291 291
             strlen($haystack);
292 292
     }
293 293
 
294
+    /**
295
+     * @param integer $readMaximumBytes
296
+     */
294 297
     protected function convertBodyToString(StreamInterface $bodyStream, $readMaximumBytes = 1024 * 1024 * 2): string
295 298
     {
296 299
         $bodyStream->rewind();
@@ -404,6 +407,9 @@  discard block
 block discarded – undo
404 407
         return in_array($uri->getScheme(), ['http', 'https']);
405 408
     }
406 409
 
410
+    /**
411
+     * @return Node
412
+     */
407 413
     protected function addtoDepthTree(Node $node, UriInterface $url, UriInterface $parentUrl)
408 414
     {
409 415
         $returnNode = null;
Please login to merge, or discard this patch.