Spatie\LinkChecker\Reporters\LogBrokenLinks::finishedCrawling PHP Метод

finishedCrawling() публичный Метод

Called when the crawl has ended.
public finishedCrawling ( )
    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}");
        });
    }