Completed
Push — master ( 66151f...efd24e )
by Freek
01:49
created
src/Crawler.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -339,6 +339,9 @@
 block discarded – undo
339 339
         return in_array($uri->getScheme(), ['http', 'https']);
340 340
     }
341 341
 
342
+    /**
343
+     * @return Node
344
+     */
342 345
     protected function addtoDepthTree(Node $node, UriInterface $url, UriInterface $parentUrl)
343 346
     {
344 347
         $returnNode = null;
Please login to merge, or discard this patch.
Unused Use Statements   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -3,23 +3,23 @@
 block discarded – undo
3 3
 namespace Spatie\Crawler;
4 4
 
5 5
 use Generator;
6
-use Psr\Http\Message\StreamInterface;
7
-use Tree\Node\Node;
8
-use GuzzleHttp\Pool;
9 6
 use GuzzleHttp\Client;
10
-use GuzzleHttp\Psr7\Uri;
7
+use GuzzleHttp\Exception\RequestException;
8
+use GuzzleHttp\Pool;
11 9
 use GuzzleHttp\Psr7\Request;
10
+use GuzzleHttp\Psr7\Uri;
12 11
 use GuzzleHttp\RequestOptions;
13 12
 use Illuminate\Support\Collection;
13
+use InvalidArgumentException;
14
+use Psr\Http\Message\ResponseInterface;
15
+use Psr\Http\Message\StreamInterface;
14 16
 use Psr\Http\Message\UriInterface;
15 17
 use Spatie\Browsershot\Browsershot;
16
-use Symfony\Component\DomCrawler\Link;
17
-use Psr\Http\Message\ResponseInterface;
18
-use Spatie\Crawler\CrawlQueue\CrawlQueue;
19
-use GuzzleHttp\Exception\RequestException;
20 18
 use Spatie\Crawler\CrawlQueue\CollectionCrawlQueue;
19
+use Spatie\Crawler\CrawlQueue\CrawlQueue;
21 20
 use Symfony\Component\DomCrawler\Crawler as DomCrawler;
22
-use InvalidArgumentException;
21
+use Symfony\Component\DomCrawler\Link;
22
+use Tree\Node\Node;
23 23
 
24 24
 class Crawler
25 25
 {
Please login to merge, or discard this patch.
src/CrawlQueue/CollectionCrawlQueue.php 2 patches
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.
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,8 +2,8 @@
 block discarded – undo
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
Please login to merge, or discard this patch.