t1gor/Robots.txt-Parser-Class

View on GitHub
source/Parser/DirectiveProcessors/AbstractDirectiveProcessor.php

Summary

Maintainability
A
0 mins
Test Coverage

Showing 14 of 14 total issues

Opening brace of a class must be on the line after the definition
Open

abstract class AbstractDirectiveProcessor implements DirectiveProcessorInterface {

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

return (bool) preg_match('/^' . $this->getDirectiveName() . '\s*:\s+/isu', $line);

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

public function __construct(?LoggerInterface $logger = null) {

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

$this->logger = $logger;

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

return $this->logger;

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

public function matches(string $line): bool {

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

use LogsIfAvailableTrait;

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

public function getLogger(): ?LoggerInterface {

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

}

Opening brace should be on a new line
Open

public function matches(string $line): bool {

Opening brace should be on a new line
Open

public function __construct(?LoggerInterface $logger = null) {

Opening brace should be on a new line
Open

public function getLogger(): ?LoggerInterface {

There are no issues that match your filters.

Category
Status