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 function getSitemaps(?string $userAgent = null): array {
Severity: Minor
Found in source/RobotsTxtParser.php by phpcodesniffer

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

     *   consumed, which must always be declared by reference, should be incremented by

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

            $value .= '.*';
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

     *   through the filterchain), the closing parameter will be set to TRUE.

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

            $value = '^' . $value;
Severity: Minor
Found in source/RobotsTxtParser.php by phpcodesniffer

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

     *   The filter() method must return one of three values upon completion.

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

    /**

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

     * Check url wrapper
Severity: Minor
Found in source/RobotsTxtParser.php by phpcodesniffer

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

     *                   bucket brigade.

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

     * @param string|null $userAgent - which robot to check for
Severity: Minor
Found in source/RobotsTxtParser.php by phpcodesniffer

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

     * @param int $consumed

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

     *                   return. More data is required from the stream or prior filter.

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

        $url = new Url($url);
Severity: Minor
Found in source/RobotsTxtParser.php by phpcodesniffer

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

    public $filtername = self::NAME;

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 $this->checkRules(Directive::DISALLOW, $url->getPath(), $userAgent);
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: Not found");
Severity: Minor
Found in source/RobotsTxtParser.php by phpcodesniffer

Line exceeds 120 characters; contains 125 characters
Open

            $bucket->data = preg_replace(Directive::getRequestRateRegex(), '', $bucket->data, -1, $skippedRequestRateValues);
Severity
Category
Status
Source
Language