Completed
Push — master ( cc6627...66151f )
by Freek
01:24
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   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -3,22 +3,22 @@
 block discarded – undo
3 3
 namespace Spatie\Crawler;
4 4
 
5 5
 use Generator;
6
-use Tree\Node\Node;
7
-use GuzzleHttp\Pool;
8 6
 use GuzzleHttp\Client;
9
-use GuzzleHttp\Psr7\Uri;
7
+use GuzzleHttp\Exception\RequestException;
8
+use GuzzleHttp\Pool;
10 9
 use GuzzleHttp\Psr7\Request;
10
+use GuzzleHttp\Psr7\Uri;
11 11
 use GuzzleHttp\RequestOptions;
12 12
 use Illuminate\Support\Collection;
13
+use InvalidArgumentException;
14
+use Psr\Http\Message\ResponseInterface;
13 15
 use Psr\Http\Message\UriInterface;
14 16
 use Spatie\Browsershot\Browsershot;
15
-use Symfony\Component\DomCrawler\Link;
16
-use Psr\Http\Message\ResponseInterface;
17
-use Spatie\Crawler\CrawlQueue\CrawlQueue;
18
-use GuzzleHttp\Exception\RequestException;
19 17
 use Spatie\Crawler\CrawlQueue\CollectionCrawlQueue;
18
+use Spatie\Crawler\CrawlQueue\CrawlQueue;
20 19
 use Symfony\Component\DomCrawler\Crawler as DomCrawler;
21
-use InvalidArgumentException;
20
+use Symfony\Component\DomCrawler\Link;
21
+use Tree\Node\Node;
22 22
 
23 23
 class Crawler
24 24
 {
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.