Conditions | 2 |
Paths | 2 |
Total Lines | 14 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 3 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
26 | public function collect(string $level, mixed $message, array $context, string $line): void |
||
27 | { |
||
28 | if (!$this->isActive()) { |
||
29 | return; |
||
30 | } |
||
31 | |||
32 | $this->messages[] = [ |
||
33 | 1 | 'time' => microtime(true), |
|
34 | 'level' => $level, |
||
35 | 1 | 'message' => $message, |
|
36 | 'context' => $context, |
||
37 | 'line' => $line, |
||
38 | 1 | ]; |
|
39 | $this->timelineCollector->collect($this, count($this->messages)); |
||
40 | } |
||
59 |
This check looks for private methods that have been defined, but are not used inside the class.