serp-spider/search-engine-google

View on GitHub
src/Page/GoogleError.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php
/**
 * @license see LICENSE
 */

namespace Serps\SearchEngine\Google\Page;

use Serps\Core\Dom\WebPage;
use Serps\SearchEngine\Google\Page\GoogleDom;

class GoogleError extends WebPage
{

    /**
     * @return bool Check if the page is a captcha
     */
    public function isCaptcha()
    {
        return $this->cssQuery('#recaptcha')->count() > 0;
    }
}