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