| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 2.032 |
| Changes | 0 | ||
| 1 | <?php |
||
| 20 | 2 | public function collect(string $level, $message, array $context, string $line): void |
|
| 21 | { |
||
| 22 | 2 | if (!$this->isActive()) { |
|
| 23 | return; |
||
| 24 | } |
||
| 25 | |||
| 26 | 2 | $this->messages[] = [ |
|
| 27 | 2 | 'time' => microtime(true), |
|
| 28 | 'level' => $level, |
||
| 29 | 'message' => $message, |
||
| 30 | 'context' => $context, |
||
| 31 | 'line' => $line, |
||
| 32 | ]; |
||
| 48 |
This check looks for private methods that have been defined, but are not used inside the class.