source/Parser/DirectiveProcessors/AbstractDirectiveProcessor.php
<?php declare(strict_types=1); namespace t1gor\RobotsTxtParser\Parser\DirectiveProcessors; use Psr\Log\LoggerInterface;use t1gor\RobotsTxtParser\Directive;use t1gor\RobotsTxtParser\LogsIfAvailableTrait; Opening brace of a class must be on the line after the definitionabstract class AbstractDirectiveProcessor implements DirectiveProcessorInterface { Spaces must be used to indent lines; tabs are not allowed use LogsIfAvailableTrait; Spaces must be used to indent lines; tabs are not allowed
Opening brace should be on a new line public function __construct(?LoggerInterface $logger = null) {Spaces must be used to indent lines; tabs are not allowed $this->logger = $logger;Spaces must be used to indent lines; tabs are not allowed } Spaces must be used to indent lines; tabs are not allowed
Opening brace should be on a new line public function getLogger(): ?LoggerInterface {Spaces must be used to indent lines; tabs are not allowed return $this->logger;Spaces must be used to indent lines; tabs are not allowed } Spaces must be used to indent lines; tabs are not allowed
Opening brace should be on a new line public function matches(string $line): bool {Spaces must be used to indent lines; tabs are not allowed return (bool) preg_match('/^' . $this->getDirectiveName() . '\s*:\s+/isu', $line);Spaces must be used to indent lines; tabs are not allowed }}