Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 2.0054 |
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 | 2 | 'level' => $level, |
|
29 | 2 | 'message' => $message, |
|
30 | 2 | 'context' => $context, |
|
31 | 2 | 'line' => $line, |
|
32 | ]; |
||
48 |
This check looks for private methods that have been defined, but are not used inside the class.