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

    }

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

                        $prevLine

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

                    break;

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

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

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

    protected function encode(string $url): string {
Severity: Minor
Found in source/Parser/Url.php by phpcodesniffer

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

            '=' => '!%3D!ui',
Severity: Minor
Found in source/Parser/Url.php by phpcodesniffer

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

            '%' => '!%25!ui',
Severity: Minor
Found in source/Parser/Url.php by phpcodesniffer

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

        return preg_replace(array_values($reserved), array_keys($reserved), rawurlencode($url));
Severity: Minor
Found in source/Parser/Url.php by phpcodesniffer

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

        $parsed = $this->parse($this->in);
Severity: Minor
Found in source/Parser/Url.php by phpcodesniffer

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

        if ($parsed !== false) {
Severity: Minor
Found in source/Parser/Url.php by phpcodesniffer

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/RobotsTxtParser.php by phpcodesniffer

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

            $this->log('Reader is not passed, using a default one...');
Severity: Minor
Found in source/RobotsTxtParser.php by phpcodesniffer

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

                : GeneratorBasedReader::fromString($content);
Severity: Minor
Found in source/RobotsTxtParser.php by phpcodesniffer

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

    const SITEMAP = 'sitemap';
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

    const REQUEST_RATE = 'request-rate';
Severity: Minor
Found in source/Directive.php by phpcodesniffer

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

            self::DISALLOW,
Severity: Minor
Found in source/Directive.php by phpcodesniffer

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

            self::HOST,
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
Severity
Category
Status
Source
Language