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

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

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

            $root[$pervLineUserAgent] = & $root[$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

     * @var DirectiveProcessorInterface[]

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

     */

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

    }

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 build(): array {

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

        foreach ($this->content as $line) {

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

                    $this->processDirective(

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

    public function __construct(string $in) {
Severity: Minor
Found in source/Parser/Url.php by phpcodesniffer

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

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

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

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

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

            $parsed['port'] = getservbyname($parsed['scheme'], 'tcp');
Severity: Minor
Found in source/Parser/Url.php by phpcodesniffer

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

            if (!is_int($parsed['port'])) {
Severity: Minor
Found in source/Parser/Url.php by phpcodesniffer

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

        return $parsed;
Severity: Minor
Found in source/Parser/Url.php by phpcodesniffer

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

    private string $encoding = '';
Severity: Minor
Found in source/RobotsTxtParser.php by phpcodesniffer

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

        ?UserAgentMatcherInterface $userAgentMatcher = null
Severity: Minor
Found in source/RobotsTxtParser.php by phpcodesniffer
Severity
Category
Status
Source
Language