Completed
Pull Request — master (#49)
by Daniel
01:32
created
src/Crawler.php 1 patch
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -3,13 +3,13 @@
 block discarded – undo
3 3
 namespace Spatie\Crawler;
4 4
 
5 5
 use Generator;
6
-use GuzzleHttp\Pool;
7 6
 use GuzzleHttp\Client;
7
+use GuzzleHttp\Exception\RequestException;
8
+use GuzzleHttp\Pool;
8 9
 use GuzzleHttp\Psr7\Request;
9 10
 use GuzzleHttp\RequestOptions;
10 11
 use Illuminate\Support\Collection;
11 12
 use Psr\Http\Message\ResponseInterface;
12
-use GuzzleHttp\Exception\RequestException;
13 13
 use Symfony\Component\DomCrawler\Crawler as DomCrawler;
14 14
 
15 15
 class Crawler
Please login to merge, or discard this patch.
src/Url.php 1 patch
Doc Comments   +5 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,6 +42,10 @@  discard block
 block discarded – undo
42 42
         return new static(null, $url);
43 43
     }
44 44
 
45
+    /**
46
+     * @param HtmlNode|null $node
47
+     * @param string $url
48
+     */
45 49
     public function __construct($node, $url = null)
46 50
     {
47 51
         if (!is_null($node)) {
@@ -184,7 +188,7 @@  discard block
 block discarded – undo
184 188
 
185 189
     /**
186 190
      * @param string|null $haystack
187
-     * @param string|array $needles
191
+     * @param string $needles
188 192
      *
189 193
      * @return bool
190 194
      */
Please login to merge, or discard this patch.