@@ -4,8 +4,8 @@ |
||
| 4 | 4 | |
| 5 | 5 | use GuzzleHttp\RequestOptions; |
| 6 | 6 | use Spatie\Crawler\CrawlAllUrls; |
| 7 | -use Spatie\Crawler\Crawler; |
|
| 8 | 7 | use Spatie\Crawler\CrawlInternalUrls; |
| 8 | +use Spatie\Crawler\Crawler; |
|
| 9 | 9 | use Symfony\Component\Console\Command\Command; |
| 10 | 10 | use Symfony\Component\Console\Input\InputArgument; |
| 11 | 11 | use Symfony\Component\Console\Input\InputInterface; |
@@ -87,7 +87,7 @@ discard block |
||
| 87 | 87 | |
| 88 | 88 | /** |
| 89 | 89 | * @param string|null $haystack |
| 90 | - * @param string|array $needles |
|
| 90 | + * @param string $needles |
|
| 91 | 91 | * |
| 92 | 92 | * @return bool |
| 93 | 93 | */ |
@@ -163,6 +163,11 @@ discard block |
||
| 163 | 163 | } |
| 164 | 164 | } |
| 165 | 165 | |
| 166 | + /** |
|
| 167 | + * @param string $url |
|
| 168 | + * @param string $foundOnUrl |
|
| 169 | + * @param string $reason |
|
| 170 | + */ |
|
| 166 | 171 | public function addResult($url, $foundOnUrl, $statusCode, $reason){ |
| 167 | 172 | $colorTag = $this->getColorTagForStatusCode($statusCode); |
| 168 | 173 | |