Conditions | 4 |
Paths | 6 |
Total Lines | 7 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 4 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
16 | 13 | public function isHandling(LogRecord $record): bool |
|
17 | { |
||
18 | 13 | $exception = $record->context['exception'] ?? null; |
|
19 | |||
20 | 13 | $ignored = $exception instanceof NoMailLogging || ($exception instanceof Error && $exception->getPrevious() instanceof NoMailLogging); |
|
21 | |||
22 | 13 | return !$ignored && parent::isHandling($record); |
|
23 | } |
||
25 |