Conditions | 4 |
Paths | 6 |
Total Lines | 11 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 4 |
Changes | 3 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
36 | protected function log($level, Stringable|string $message, array $context = []): void |
||
37 | 2 | { |
|
38 | 2 | $logger = null; |
|
39 | 1 | if (isset($this->logger)) { |
|
40 | 2 | $logger = $this->logger; |
|
41 | 2 | } elseif ($auth = $this->getAuth()) { |
|
42 | $logger = $auth->getLogger(); |
||
43 | } |
||
44 | 2 | ||
45 | 1 | if ($logger) { |
|
46 | $logger->log($level, $message, $context); |
||
47 | 2 | } |
|
57 |