Completed
Pull Request — master (#150)
by Brent
01:40
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/CrawlObserver.php 1 patch
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,9 +2,9 @@
 block discarded – undo
2 2
 
3 3
 namespace Spatie\Crawler;
4 4
 
5
-use Psr\Http\Message\UriInterface;
6
-use Psr\Http\Message\ResponseInterface;
7 5
 use GuzzleHttp\Exception\RequestException;
6
+use Psr\Http\Message\ResponseInterface;
7
+use Psr\Http\Message\UriInterface;
8 8
 
9 9
 abstract class CrawlObserver
10 10
 {
Please login to merge, or discard this patch.
src/Crawler.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -377,6 +377,9 @@
 block discarded – undo
377 377
         return in_array($uri->getScheme(), ['http', 'https']);
378 378
     }
379 379
 
380
+    /**
381
+     * @return Node
382
+     */
380 383
     protected function addToDepthTree(Node $node, UriInterface $url, UriInterface $parentUrl)
381 384
     {
382 385
         $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,22 +3,22 @@
 block discarded – undo
3 3
 namespace Spatie\Crawler;
4 4
 
5 5
 use Generator;
6
-use Spatie\Crawler\Handlers\CrawlRequestFailed;
7
-use Spatie\Crawler\Handlers\CrawlRequestFulfilled;
8
-use Tree\Node\Node;
9
-use GuzzleHttp\Pool;
10 6
 use GuzzleHttp\Client;
11
-use GuzzleHttp\Psr7\Uri;
7
+use GuzzleHttp\Pool;
12 8
 use GuzzleHttp\Psr7\Request;
13
-use Spatie\Robots\RobotsTxt;
14
-use InvalidArgumentException;
9
+use GuzzleHttp\Psr7\Uri;
15 10
 use GuzzleHttp\RequestOptions;
11
+use InvalidArgumentException;
16 12
 use Psr\Http\Message\UriInterface;
17 13
 use Spatie\Browsershot\Browsershot;
18
-use Symfony\Component\DomCrawler\Link;
19
-use Spatie\Crawler\CrawlQueue\CrawlQueue;
20 14
 use Spatie\Crawler\CrawlQueue\CollectionCrawlQueue;
15
+use Spatie\Crawler\CrawlQueue\CrawlQueue;
16
+use Spatie\Crawler\Handlers\CrawlRequestFailed;
17
+use Spatie\Crawler\Handlers\CrawlRequestFulfilled;
18
+use Spatie\Robots\RobotsTxt;
21 19
 use Symfony\Component\DomCrawler\Crawler as DomCrawler;
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.