Conditions | 2 |
Paths | 2 |
Total Lines | 14 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 2.0116 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
24 | protected function write(LogRecord $record): void |
||
25 | 2 | { |
|
26 | /** @psalm-suppress InvalidArgument */ |
||
27 | if (! $this->isHandling($record)) { |
||
28 | // @codeCoverageIgnoreStart |
||
29 | 2 | return; // This is tested in FormattedPsrHandlerTest::notHandled but not picked up by PHPUnit as covered |
|
30 | 2 | ||
31 | 2 | // @codeCoverageIgnoreEnd |
|
32 | 2 | } |
|
33 | |||
34 | 2 | $this->logger->log( |
|
35 | strtolower($record->level->name), |
||
|
|||
36 | formatValue($record->formatted ?? $record->message), |
||
37 | $record->context, |
||
38 | ); |
||
41 |