| Conditions | 4 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 4 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | 14 | public function filter(array $event): bool |
|
| 16 | { |
||
| 17 | 14 | $exception = $event['extra']['exception'] ?? null; |
|
| 18 | |||
| 19 | 14 | if ($exception instanceof NoMailLogging || ($exception instanceof Error && $exception->getPrevious() instanceof NoMailLogging)) { |
|
| 20 | 3 | return false; |
|
| 21 | } |
||
| 22 | |||
| 23 | 11 | return true; |
|
| 24 | } |
||
| 26 |