Completed
Pull Request — master (#164)
by Freek
09:36 queued 07:39
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
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -305,6 +305,9 @@
 block discarded – undo
305 305
         }
306 306
     }
307 307
 
308
+    /**
309
+     * @return Node
310
+     */
308 311
     public function addToDepthTree(UriInterface $url, UriInterface $parentUrl, Node $node = null): ?Node
309 312
     {
310 313
         $node = $node ?? $this->depthTree;
Please login to merge, or discard this patch.
Unused Use Statements   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -3,19 +3,19 @@
 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;
16 15
 use Spatie\Crawler\Handlers\CrawlRequestFailed;
17 16
 use Spatie\Crawler\Handlers\CrawlRequestFulfilled;
18
-use Spatie\Crawler\CrawlQueue\CollectionCrawlQueue;
17
+use Spatie\Robots\RobotsTxt;
18
+use Tree\Node\Node;
19 19
 
20 20
 class Crawler
21 21
 {
Please login to merge, or discard this patch.