t1gor/Robots.txt-Parser-Class

View on GitHub
source/LogsIfAvailableTrait.php

Summary

Maintainability
A
0 mins
Test Coverage

Showing 12 of 12 total issues

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

trait LogsIfAvailableTrait {

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

}

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

$this->logger = $logger;

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

$this->logger->log($level, $message, $context);

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

if (!is_null($this->logger)) {

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

private ?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

public function setLogger(LoggerInterface $logger): void {

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

}

Opening brace should be on a new line
Open

public function setLogger(LoggerInterface $logger): void {

Opening brace should be on a new line
Open

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

There are no issues that match your filters.

Category
Status