Conditions | 3 |
Paths | 3 |
Total Lines | 13 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
11 | 10 | protected function getLoggerConfig(string $loggerName) : array |
|
12 | { |
||
13 | 10 | $config = []; |
|
14 | |||
15 | 10 | foreach (['config', 'Config'] as $configServiceName) { |
|
16 | 10 | if ($this->getContainer()->has($configServiceName)) { |
|
17 | 10 | $config = $this->getContainer()->get($configServiceName); |
|
18 | 10 | break; |
|
19 | } |
||
20 | } |
||
21 | |||
22 | 10 | return $config[self::CONFIG_KEY][$loggerName] ?? []; |
|
23 | } |
||
24 | } |
||
25 |