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

            foreach ($this->tree as $userAgentBased) {
Severity: Minor
Found in source/RobotsTxtParser.php by phpcodesniffer

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

        $this->log(sprintf("Rules not found for the given User-Agent '%s'", $userAgent));
Severity: Minor
Found in source/RobotsTxtParser.php by phpcodesniffer

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

     *   in is a resource pointing to a bucket brigade which contains one or more bucket

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

            if (isset($userAgentBased[Directive::HOST]) && !empty($userAgentBased[Directive::HOST])) {
Severity: Minor
Found in source/RobotsTxtParser.php by phpcodesniffer

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

     *   - PSFS_PASS_ON: Filter processed successfully with data available in the out

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

    public function onClose();

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

        $maps = [];
Severity: Minor
Found in source/RobotsTxtParser.php by phpcodesniffer

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

                return $this->tree[$userAgent][Directive::SITEMAP];
Severity: Minor
Found in source/RobotsTxtParser.php by phpcodesniffer

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

        while ($bucket = stream_bucket_make_writeable($in)) {

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 125 characters
Open

//            $bucket->data = preg_replace(Directive::getAllowDisallowRegex(), '', $bucket->data, -1, $skippedAllowanceValues);

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

     * @param bool $closing

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

            stream_bucket_append($out, $bucket);

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

            if ($replacedCount > 0

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 $filtername = self::NAME;
Severity
Category
Status
Source
Language