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

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

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

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

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

    private static function isValidHostName(string $host): bool {
Severity: Minor
Found in source/RobotsTxtParser.php by phpcodesniffer

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

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

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

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

Line exceeds 120 characters; contains 130 characters
Open

        $cleanParam['path'] = isset($array[1]) ? $this->encode_url(preg_replace('/[^A-Za-z0-9\.-\/\*\_]/', '', $array[1])) : '/*';
Severity: Minor
Found in source/RobotsTxtParser.php by phpcodesniffer

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

        !is_null($this->logger) && $url->setLogger($this->logger);
Severity: Minor
Found in source/RobotsTxtParser.php by phpcodesniffer

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

     * @param string $userAgent
Severity: Minor
Found in source/RobotsTxtParser.php by phpcodesniffer

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

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

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

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

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

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

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

     * @link https://yandex.com/support/webmaster/robot-workings/sitemap.html#sitemap
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 getAll(): array {
Severity: Minor
Found in source/Directive.php by phpcodesniffer

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

            self::REQUEST_RATE,
Severity: Minor
Found in source/Directive.php by phpcodesniffer

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

    public static function getRegex(): string {
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

     * @TODO finish me
Severity: Minor
Found in source/Directive.php by phpcodesniffer

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

    public static function attemptGetInline(string $rule) {
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
Severity
Category
Status
Source
Language