t1gor/Robots.txt-Parser-Class

View on GitHub

Showing 1,364 of 1,364 total issues

Opening brace should be on a new line
Open

    public function isAllowed(string $url, ?string $userAgent = '*'): bool {
Severity: Minor
Found in source/RobotsTxtParser.php by phpcodesniffer

Opening brace should be on a new line
Open

    protected function checkRules(string $rule, string $path, string $userAgent = '*'): bool {
Severity: Minor
Found in source/RobotsTxtParser.php by phpcodesniffer

Opening brace should be on a new line
Open

    protected function parseURL($url) {
Severity: Minor
Found in source/RobotsTxtParser.php by phpcodesniffer

Opening brace should be on a new line
Open

    private function explodeCleanParamRule($rule) {
Severity: Minor
Found in source/RobotsTxtParser.php by phpcodesniffer

Opening brace should be on a new line
Open

    protected function checkRuleSwitch(string $rule, string $path): bool {
Severity: Minor
Found in source/RobotsTxtParser.php by phpcodesniffer

Opening brace should be on a new line
Open

    private static function isValidScheme($scheme) {
Severity: Minor
Found in source/RobotsTxtParser.php by phpcodesniffer

Opening brace should be on a new line
Open

    public function setUserAgent(string $userAgent) {
Severity: Minor
Found in source/RobotsTxtParser.php by phpcodesniffer

Opening brace should be on a new line
Open

    protected function prepareRegexRule(string $value): string {
Severity: Minor
Found in source/RobotsTxtParser.php by phpcodesniffer

Opening brace should be on a new line
Open

    private function checkCleanParamRule($rule, $path) {
Severity: Minor
Found in source/RobotsTxtParser.php by phpcodesniffer

Opening brace should be on a new line
Open

    public function isDisallowed(string $url, string $userAgent = '*'): bool {
Severity: Minor
Found in source/RobotsTxtParser.php by phpcodesniffer

Opening brace should be on a new line
Open

    public function getDelay(string $userAgent = "*", string $type = Directive::CRAWL_DELAY) {
Severity: Minor
Found in source/RobotsTxtParser.php by phpcodesniffer

Opening brace should be on a new line
Open

    public function getCleanParam(): array {
Severity: Minor
Found in source/RobotsTxtParser.php by phpcodesniffer

Opening brace should be on a new line
Open

    public function getContent(): string {
Severity: Minor
Found in source/RobotsTxtParser.php by phpcodesniffer

Opening brace should be on a new line
Open

    private function checkHostRule($rule) {
Severity: Minor
Found in source/RobotsTxtParser.php by phpcodesniffer

Opening brace should be on a new line
Open

    private function checkBasicRule(string $rule, string $path): bool {
Severity: Minor
Found in source/RobotsTxtParser.php by phpcodesniffer

Opening brace should be on a new line
Open

    public function getRules(?string $userAgent = null) {
Severity: Minor
Found in source/RobotsTxtParser.php by phpcodesniffer

Opening brace should be on a new line
Open

    public function render($eol = "\r\n") {
Severity: Minor
Found in source/RobotsTxtParser.php by phpcodesniffer

Opening brace should be on a new line
Open

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

Opening brace should be on a new line
Open

    public function getHost(?string $userAgent = null) {
Severity: Minor
Found in source/RobotsTxtParser.php by phpcodesniffer

Opening brace should be on a new line
Open

    public function filter($in, $out, &$consumed, $closing) {
Severity
Category
Status
Source
Language