Completed
Push — master ( 847f6a...e930d8 )
by Freek
01:38
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/CrawlerRobots.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 Spatie\Robots\RobotsMeta;
6
-use Spatie\Robots\RobotsHeaders;
7 5
 use Psr\Http\Message\ResponseInterface;
6
+use Spatie\Robots\RobotsHeaders;
7
+use Spatie\Robots\RobotsMeta;
8 8
 
9 9
 class CrawlerRobots
10 10
 {
Please login to merge, or discard this patch.
src/Crawler.php 2 patches
Unused Use Statements   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -3,20 +3,20 @@
 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\Pool;
10 8
 use GuzzleHttp\Psr7\Request;
11
-use Spatie\Robots\RobotsTxt;
9
+use GuzzleHttp\Psr7\Uri;
12 10
 use GuzzleHttp\RequestOptions;
13 11
 use Psr\Http\Message\UriInterface;
14 12
 use Spatie\Browsershot\Browsershot;
13
+use Spatie\Crawler\CrawlQueue\CollectionCrawlQueue;
15 14
 use Spatie\Crawler\CrawlQueue\CrawlQueue;
15
+use Spatie\Crawler\Exception\InvalidCrawlRequestHandler;
16 16
 use Spatie\Crawler\Handlers\CrawlRequestFailed;
17 17
 use Spatie\Crawler\Handlers\CrawlRequestFulfilled;
18
-use Spatie\Crawler\CrawlQueue\CollectionCrawlQueue;
19
-use Spatie\Crawler\Exception\InvalidCrawlRequestHandler;
18
+use Spatie\Robots\RobotsTxt;
19
+use Tree\Node\Node;
20 20
 
21 21
 class Crawler
22 22
 {
Please login to merge, or discard this patch.
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -340,6 +340,9 @@
 block discarded – undo
340 340
         }
341 341
     }
342 342
 
343
+    /**
344
+     * @return Node
345
+     */
343 346
     public function addToDepthTree(UriInterface $url, UriInterface $parentUrl, Node $node = null): ?Node
344 347
     {
345 348
         if (is_null($this->maximumDepth)) {
Please login to merge, or discard this patch.