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

     * @link https://yandex.com/support/webmaster/robot-workings/clean-param.html#clean-param
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

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

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

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

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

        $this->logger = $logger;

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

        $parts     = explode(':', $line);

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

            $root[$currentUserAgent][$directive][] = $entry;

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

            $this->log(strtr('{directive} with value {faulty} skipped as already exists for {useragent}', [

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

    }

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

        $parts                               = explode(':', $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

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

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

    public function process(string $line, array & $root, string & $currentUserAgent = '*', string $prevLine = '') {

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

            '{directive}' => Directive::HOST,

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

        $parts = explode(':', $line);

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

        if ($this->matches($prevLine)) {

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

            new UserAgentProcessor($logger),

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

    public static function isValid(string $hostName): bool {
Severity: Minor
Found in source/Parser/HostName.php by phpcodesniffer
Severity
Category
Status
Source
Language