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

    public const NAME = 'RTP_skip_commented_lines';

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

        while ($bucket = stream_bucket_make_writeable($in)) {

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

            $consumed += $bucket->datalen;

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

            if ($replacedCount > 0

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

            }

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

    public const NAME = 'RTP_trim_spaces_both';

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

    public function filter($in, $out, &$consumed, $closing) {

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

     * Set the HTTP status code
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

            return ($rule === Directive::DISALLOW);
Severity: Minor
Found in source/RobotsTxtParser.php by phpcodesniffer

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

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

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

        if (isset($this->httpStatusCode) && $this->httpStatusCode >= 500 && $this->httpStatusCode <= 599) {
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

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

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

     * @param string $rule
Severity: Minor
Found in source/RobotsTxtParser.php by phpcodesniffer

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

        return true;
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

        $host = trim(str_ireplace(Directive::HOST . ':', '', mb_strtolower($rule)));
Severity: Minor
Found in source/RobotsTxtParser.php by phpcodesniffer

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

    public function getCleanParam(): array {
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
Severity
Category
Status
Source
Language