| Conditions | 3 |
| Paths | 2 |
| Total Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 45 | 15 | public function log($level, $message, array $context = []) |
|
| 46 | { |
||
| 47 | 15 | $value = get_in($context, $this->field); |
|
| 48 | 15 | if ($value !== null && in_array($value, $this->values, true) === $this->exclude) { |
|
| 49 | 2 | return; |
|
| 50 | } |
||
| 51 | |||
| 52 | 15 | $this->logger->log($level, $message, $context); |
|
| 53 | 14 | } |
|
| 54 | } |
||
| 55 |