| Conditions | 3 |
| Paths | 3 |
| Total Lines | 16 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 47 | 6 | public function getConfig(ContainerInterface $container): array |
|
| 48 | { |
||
| 49 | 6 | if (null !== $this->config) { |
|
| 50 | 3 | return $this->config; |
|
| 51 | } |
||
| 52 | |||
| 53 | 5 | $config = $container->get('config'); |
|
| 54 | |||
| 55 | 5 | if (isset($config['EnliteMonolog'])) { |
|
| 56 | 4 | $this->config = $config['EnliteMonolog']; |
|
| 57 | } else { |
||
| 58 | 1 | $this->config = array(); |
|
| 59 | } |
||
| 60 | |||
| 61 | 5 | return $this->config; |
|
| 62 | } |
||
| 63 | |||
| 72 |