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

            new AllowProcessor($logger),

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

    protected array     $processors;

Line exceeds 120 characters; contains 125 characters
Open

    protected function processDirective(string $directive, string $line, &$tree, string &$userAgent, string $prevLine = '') {

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

        $currentUserAgent = '*';

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

                        $currentUserAgent,

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

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

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

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

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

            $this->log("Failed to parse URL from {$url}");
Severity: Minor
Found in source/Parser/Url.php by phpcodesniffer

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

        if ($userAgent === '*') {

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

        if ($this->reader instanceof LoggerAwareInterface) {
Severity: Minor
Found in source/RobotsTxtParser.php by phpcodesniffer

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

            $this->reader->setLogger($this->logger);
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/Directive.php by phpcodesniffer

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

    const USERAGENT = 'user-agent';
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 CLEAN_PARAM = 'clean-param';
Severity: Minor
Found in source/Directive.php by phpcodesniffer

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

    public static function getRequestRateRegex(): string {
Severity: Minor
Found in source/Directive.php by phpcodesniffer

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

    public static function getAllowDisallowRegex(): string {
Severity: Minor
Found in source/Directive.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

            $root[$currentUserAgent][$directive] = [];
Severity
Category
Status
Source
Language