t1gor/Robots.txt-Parser-Class

View on GitHub

Showing 1,364 of 1,364 total issues

Line exceeds 120 characters; contains 130 characters
Open

                    $this->params['logger']->debug($skippedAllowanceValues . ' char(s) dropped as invalid allow/disallow value.');

Line exceeds 120 characters; contains 123 characters
Open

            $bucket->data = preg_replace(Directive::getCrawlDelayRegex(), '', $bucket->data, -1, $skippedCrawlDelayValues);

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

    public function getLog(): array {
Severity: Minor
Found in source/RobotsTxtParser.php by phpcodesniffer

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

    public const NAME = 'RTP_skip_empty_lines';

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

    }

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

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

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

            foreach ($rules as $directive => $value) {
Severity: Minor
Found in source/RobotsTxtParser.php by phpcodesniffer

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

            $bucket->data = preg_replace('/\s*#.*/mui', '', $bucket->data, -1, $replacedCount);

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

            $bucket->data = preg_replace(Directive::getRegex(), '', $bucket->data, -1, $replacedCount);

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

                    foreach ($value as $subValue) {
Severity: Minor
Found in source/RobotsTxtParser.php by phpcodesniffer

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

            $output[] = 'Host: ' . $host;
Severity: Minor
Found in source/RobotsTxtParser.php by phpcodesniffer

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

                && $this->params['logger'] instanceof LoggerInterface

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

        // return all rules
Severity: Minor
Found in source/RobotsTxtParser.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

    private $stream;

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

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

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

     * @param string $input

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

        return $maps;
Severity: Minor
Found in source/RobotsTxtParser.php by phpcodesniffer

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

        ];
Severity
Category
Status
Source
Language