Completed
Pull Request — master (#87)
by Peter
01:11
created
src/Url.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -192,7 +192,7 @@
 block discarded – undo
192 192
 
193 193
     /**
194 194
      * @param string|null $haystack
195
-     * @param string|array $needles
195
+     * @param string $needles
196 196
      *
197 197
      * @return bool
198 198
      */
Please login to merge, or discard this patch.
src/Crawler.php 2 patches
Unused Use Statements   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -3,17 +3,17 @@
 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;
7
+use GuzzleHttp\Exception\RequestException;
8
+use GuzzleHttp\Pool;
9 9
 use GuzzleHttp\Psr7\Request;
10 10
 use GuzzleHttp\RequestOptions;
11 11
 use Illuminate\Support\Collection;
12
-use Spatie\Browsershot\Browsershot;
13
-use Symfony\Component\DomCrawler\Link;
14 12
 use Psr\Http\Message\ResponseInterface;
15
-use GuzzleHttp\Exception\RequestException;
13
+use Spatie\Browsershot\Browsershot;
16 14
 use Symfony\Component\DomCrawler\Crawler as DomCrawler;
15
+use Symfony\Component\DomCrawler\Link;
16
+use Tree\Node\Node;
17 17
 
18 18
 class Crawler
19 19
 {
Please login to merge, or discard this patch.
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -322,6 +322,9 @@
 block discarded – undo
322 322
         return $url->removeFragment();
323 323
     }
324 324
 
325
+    /**
326
+     * @return Node
327
+     */
325 328
     protected function addtoDepthTree(Node $node, string $url, string $parentUrl)
326 329
     {
327 330
         $returnNode = null;
Please login to merge, or discard this patch.
src/CollectionCrawlQueue.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
67 67
     }
68 68
 
69 69
     /**
70
-     * @param CrawlUrl|Url $crawlUrl
70
+     * @param CrawlUrl $crawlUrl
71 71
      *
72 72
      * @return bool
73 73
      */
Please login to merge, or discard this patch.