Conditions | 2 |
Paths | 2 |
Total Lines | 8 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 2.032 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
49 | 2 | private static function getConfiguredLogger(ActionConfiguration $actionConfiguration): ?Logger |
|
50 | { |
||
51 | 2 | $processedConfiguration = $actionConfiguration->getProcessedConfiguration(); |
|
52 | 2 | if (!$processedConfiguration['logger']['enabled']) { |
|
53 | return null; |
||
54 | } |
||
55 | |||
56 | 2 | return LoggerStack::getInstance($processedConfiguration['logger']['channel'], $processedConfiguration['logger']['file_path']); |
|
57 | } |
||
59 |