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 setLogger(LoggerInterface $logger): void {

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

        $entry     = trim($parts[1]);

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

        if (!preg_match("/^\//", $entry)) {

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

            return;

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;

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

        $path                                = $cleanParams[1] ?? '/*';

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

        if (!isset($root[$currentUserAgent])) {

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

            new SitemapProcessor($logger),

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

     * @param DirectiveProcessorInterface[] $processors

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

    public function __construct(array $processors, ?LoggerInterface $logger) {

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

            $this->log("Seems like you've passed an empty processors array.", [], LogLevel::WARNING);

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

                        $line,

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

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

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

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

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

    protected ?int $httpStatusCode;
Severity: Minor
Found in source/RobotsTxtParser.php by phpcodesniffer

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

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

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

        $this->reader           = $reader;
Severity: Minor
Found in source/RobotsTxtParser.php by phpcodesniffer
Severity
Category
Status
Source
Language