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

        }

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

    public function __construct(?LoggerInterface $logger = null) {

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

                '{faulty}'    => $parts[1],

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

    public function getDirectiveName(): string {

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

                '{faulty}'    => $entry,

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

    public function getDirectiveName(): string;

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

    public function matches(string $line): bool;

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

    public function getDirectiveName(): string {

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

    }

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

            '{ipAddress}' => HostName::isIpAddress($entry) ? ' (IP address is not a valid hostname)' : '',

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

        $entry   = implode(':', $trimmed);

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

            $root[$currentUserAgent][Directive::SITEMAP][] = $entry;

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

            ]));

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

        return Directive::USERAGENT;

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

        if ($newUserAgent === $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

        return false !== $filtered && !$isIpAddress;
Severity: Minor
Found in source/Parser/HostName.php by phpcodesniffer

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

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

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

     * @param LoggerInterface|null          $logger

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

        }
Severity
Category
Status
Source
Language