source/LogsIfAvailableTrait.php
Opening brace of a trait must be on the line after the definition Open
Open
trait LogsIfAvailableTrait {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
if (!is_null($this->logger)) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$this->logger = $logger;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
public function setLogger(LoggerInterface $logger): void {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$this->logger->log($level, $message, $context);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
protected function log(string $message, array $context = [], string $level = LogLevel::DEBUG) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
private ?LoggerInterface $logger = null;
- Exclude checks
Opening brace should be on a new line Open
Open
public function setLogger(LoggerInterface $logger): void {
- Exclude checks
Opening brace should be on a new line Open
Open
protected function log(string $message, array $context = [], string $level = LogLevel::DEBUG) {
- Exclude checks