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

    /**
Severity: Minor
Found in source/Directive.php by phpcodesniffer

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

        return "/^(?!(" . implode('|', Directive::getAll()) . ")\s*:+).+/mui";
Severity: Minor
Found in source/Directive.php by phpcodesniffer

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

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

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

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

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

        $directive = static::attemptGetInline($rule);
Severity: Minor
Found in source/Directive.php by phpcodesniffer

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

    private ?LoggerInterface $logger = null;

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

        if (empty($entry)) {

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

                '{directive}' => $directive,

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

        return Directive::CLEAN_PARAM;

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

        $filteredCrawlDelay = filter_var($entry, FILTER_VALIDATE_FLOAT, FILTER_FLAG_ALLOW_FRACTION);

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

        $root[$currentUserAgent][Directive::CRAWL_DELAY] = $filteredCrawlDelay;

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

        $trimmed     = array_map('trim', $parts);

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

            '{useragent}' => $currentUserAgent,

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

        if (!in_array($entry, $root[$currentUserAgent][Directive::SITEMAP])) {

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

            $this->log(strtr('{directive} with value {faulty} skipped as already exists for {useragent}', [

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

    public static function isIpAddress(string $hostName): bool {
Severity: Minor
Found in source/Parser/HostName.php by phpcodesniffer

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

    use LogsIfAvailableTrait;

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

    }

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

        $this->log('Building directives tree...');

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

    }
Severity
Category
Status
Source
Language