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 PSFS_PASS_ON;

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

    public function filter($in, $out, &$consumed, $closing) {

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

            $bucket->data = preg_replace(

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

                return false;
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

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

            || mb_strrpos($value, '?') == (mb_strlen($value) - 1)
Severity: Minor
Found in source/RobotsTxtParser.php by phpcodesniffer

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

        if (substr($value, 0, 2) != '.*') {
Severity: Minor
Found in source/RobotsTxtParser.php by phpcodesniffer

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

            $host, [
Severity: Minor
Found in source/RobotsTxtParser.php by phpcodesniffer

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

    public function isDisallowed(string $url, string $userAgent = '*'): 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

                } else {
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

            $userAgent = $this->userAgentMatcher->getMatching($userAgent, array_keys($this->tree));
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

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

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

     *   this means you will increment consumed by $bucket->datalen for each $bucket.

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

     * @return int

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

     *   - PSFS_FEED_ME: Filter processed successfully, however no data was available to

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

     * Called when creating the filter.
Severity
Category
Status
Source
Language