@@ -68,7 +68,7 @@ |
||
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 | */ |
@@ -2,8 +2,8 @@ |
||
2 | 2 | |
3 | 3 | namespace Spatie\Crawler\CrawlQueue; |
4 | 4 | |
5 | -use Spatie\Crawler\CrawlUrl; |
|
6 | 5 | use Illuminate\Support\Collection; |
6 | +use Spatie\Crawler\CrawlUrl; |
|
7 | 7 | use Spatie\Crawler\Exception\UrlNotFoundByIndex; |
8 | 8 | |
9 | 9 | class CollectionCrawlQueue implements CrawlQueue |
@@ -273,6 +273,9 @@ discard block |
||
273 | 273 | strlen($haystack); |
274 | 274 | } |
275 | 275 | |
276 | + /** |
|
277 | + * @param integer $readMaximumBytes |
|
278 | + */ |
|
276 | 279 | protected function convertBodyToString(StreamInterface $bodyStream, $readMaximumBytes = 1024 * 1024 * 2): string |
277 | 280 | { |
278 | 281 | $body = $bodyStream->read($readMaximumBytes); |
@@ -388,6 +391,9 @@ discard block |
||
388 | 391 | return in_array($uri->getScheme(), ['http', 'https']); |
389 | 392 | } |
390 | 393 | |
394 | + /** |
|
395 | + * @return Node |
|
396 | + */ |
|
391 | 397 | protected function addtoDepthTree(Node $node, UriInterface $url, UriInterface $parentUrl) |
392 | 398 | { |
393 | 399 | $returnNode = null; |