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

        if ($directive !== false) {
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

        if (!is_null($this->logger)) {

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

                '{useragent}' => $currentUserAgent,

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

        }

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

        if (!in_array($entry, $root[$currentUserAgent][$directive])) {

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

        return Directive::ALLOW;

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

    }

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

            $pervLineUserAgent = trim($prevParts[1]);

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

            new DisallowProcessor($logger),

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

     */

Spaces must be used to indent lines; tabs are not allowed
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

            $this->log(strtr('{directive} met, but no processor found for it. Skipping.', [

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

    /**

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

                if ($processor->matches($line)) {

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

                    );

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

            // override

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

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

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

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

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

            ']' => '!%5D!ui',
Severity: Minor
Found in source/Parser/Url.php by phpcodesniffer
Severity
Category
Status
Source
Language