Spatie\Crawler\Crawler::hasAlreadyCrawled PHP Method

hasAlreadyCrawled() protected method

Determine if the crawled has already crawled the given url.
protected hasAlreadyCrawled ( Url $url ) : boolean
$url Url
return boolean
    protected function hasAlreadyCrawled(Url $url)
    {
        foreach ($this->crawledUrls as $crawledUrl) {
            if ((string) $crawledUrl === (string) $url) {
                return true;
            }
        }
        return false;
    }