@@ -292,6 +292,9 @@ discard block |
||
| 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 |
||
| 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) |
@@ -438,6 +441,9 @@ discard block |
||
| 438 | 441 | return in_array($uri->getScheme(), ['http', 'https']); |
| 439 | 442 | } |
| 440 | 443 | |
| 444 | + /** |
|
| 445 | + * @return Node |
|
| 446 | + */ |
|
| 441 | 447 | protected function addtoDepthTree(Node $node, UriInterface $url, UriInterface $parentUrl) |
| 442 | 448 | { |
| 443 | 449 | $returnNode = null; |