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