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

        return $hostName === filter_var($hostName, FILTER_VALIDATE_IP);
Severity: Minor
Found in source/Parser/HostName.php by phpcodesniffer

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

        if (empty($processors)) {

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

        // reformat processors

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

        $this->processors[$directive]->process($line, $tree, $userAgent, $prevLine);

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

    /**

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

     * @param \Iterator $content

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

        $tree             = [];

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

        $reserved = [
Severity: Minor
Found in source/Parser/Url.php by phpcodesniffer

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

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

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

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

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

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

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

        if ($parsed === false) {
Severity: Minor
Found in source/Parser/Url.php by phpcodesniffer

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

            $this->log("URL scheme invalid or missing for {$url}");
Severity: Minor
Found in source/Parser/Url.php by phpcodesniffer

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

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

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

        if (!isset($parsed['port'])) {
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

    public function getMatching(string $userAgent, array $available = []): string {

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

            $this->log("Matched {$userAgentMatch} for user agent {$userAgent}");

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

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

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

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