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

                STREAM_FILTER_READ,

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 string $encoding

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

    public function setEncoding(string $encoding) {

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

        while (!feof($this->stream)) {

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

        . 'See https://developers.google.com/search/reference/robots_txt#file-format for more info.';
Severity: Minor
Found in source/WarmingMessages.php by phpcodesniffer

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

                if (is_resource($instance)) {

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

        $reader = new GeneratorBasedReader();

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 getContentRaw(): string {

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

    public function getContentIterated(): \Generator {

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

        rewind($stream);

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

    public static function fromStream($stream): self {

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

        foreach ($this->filters as $filterClass => & $filter) {

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

     */

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

        if (strtoupper($encoding) === RobotsTxtParser::DEFAULT_ENCODING) {

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

            return;
Severity
Category
Status
Source
Language