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

    protected function log(string $message, array $context = [], string $level = LogLevel::DEBUG) {

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

        $directive = $this->getDirectiveName();

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

                '{faulty}'    => $entry,

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

        if (!isset($root[$currentUserAgent][$directive])) {

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

    public function getDirectiveName(): string {

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

        $filteredCacheDelay = filter_var($parts[1], FILTER_SANITIZE_NUMBER_FLOAT, FILTER_FLAG_ALLOW_FRACTION);

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

            ]);

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

            $root[$currentUserAgent][Directive::HOST] = $entry;

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

        array_shift($parts);

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

        $trimmed = array_map('trim', $parts);

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 process(string $line, array & $root, string & $currentUserAgent = '*', string $prevLine = '') {

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

        $this->logger = $logger;

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 setContent(\Iterator $content): void {

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

        $this->content = $content;

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

            foreach ($this->processors as $processor) {

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

        return $tree;

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

     * URL encoder according to RFC 3986
Severity: Minor
Found in source/Parser/Url.php by phpcodesniffer
Severity
Category
Status
Source
Language