public function finishedCrawling()
{
$this->log->info('link checker summary');
collect($this->urlsGroupedByStatusCode)->each(function ($urls, $statusCode) {
if ($this->isSuccessOrRedirect($statusCode)) {
return;
}
$count = count($urls);
if ($statusCode == static::UNRESPONSIVE_HOST) {
$this->log->warning("{$count} url(s) did have unresponsive host(s)");
return;
}
$this->log->warning("Crawled {$count} url(s) with statuscode {$statusCode}");
});
}