t1gor/Robots.txt-Parser-Class

View on GitHub

Showing 1,364 of 1,364 total issues

Spaces must be used to indent lines; tabs are not allowed
Open

        if (mb_strrpos($value, '/') == (mb_strlen($value) - 1)
Severity: Minor
Found in source/RobotsTxtParser.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    }
Severity: Minor
Found in source/RobotsTxtParser.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

        $directive = in_array($type, [Directive::CACHE, Directive::CACHE_DELAY])
Severity: Minor
Found in source/RobotsTxtParser.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

            $this->log("{$directive} directive (unofficial): Not found, fallback to " . Directive::CRAWL_DELAY . " directive");
Severity: Minor
Found in source/RobotsTxtParser.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

            return $this->tree[$userAgent][Directive::CRAWL_DELAY];
Severity: Minor
Found in source/RobotsTxtParser.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

     * @deprecated
Severity: Minor
Found in source/RobotsTxtParser.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

        return $this->reader->getContentRaw();
Severity: Minor
Found in source/RobotsTxtParser.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    public static function getDefault(?LoggerInterface $logger = null): array {

Spaces must be used to indent lines; tabs are not allowed
Open

            new CacheDelayProcessor($logger),

Spaces must be used to indent lines; tabs are not allowed
Open

            new HostProcessor($logger),

Spaces must be used to indent lines; tabs are not allowed
Open

    }

Spaces must be used to indent lines; tabs are not allowed
Open

        foreach ($processors as $processor) {

Spaces must be used to indent lines; tabs are not allowed
Open

        }

Spaces must be used to indent lines; tabs are not allowed
Open

    use LogsIfAvailableTrait;
Severity: Minor
Found in source/Parser/Url.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

     * @return array|false
Severity: Minor
Found in source/Parser/Url.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

        if (!isset($parsed['scheme']) || !static::isValidScheme($parsed['scheme'])) {
Severity: Minor
Found in source/Parser/Url.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

            return false;
Severity: Minor
Found in source/Parser/Url.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

                $this->log("URL port should be a number, {$parsed['port']} found for {$url}");
Severity: Minor
Found in source/Parser/Url.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

            return $parsed['custom'];
Severity: Minor
Found in source/Parser/Url.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    private $userAgent      = '*';
Severity: Minor
Found in source/RobotsTxtParser.php by phpcodesniffer
Severity
Category
Status
Source
Language