| Conditions | 3 |
| Paths | 3 |
| Total Lines | 11 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 45 | 2 | public function getServiceLogConfig($logName) { |
|
| 46 | |||
| 47 | 2 | foreach($this->configs->services as $logObject) { |
|
| 48 | |||
| 49 | 2 | $config = $this->container->get(LoggingConfig::class); |
|
| 50 | 2 | $config->importJSON($logObject); |
|
| 51 | |||
| 52 | 2 | if($logObject->name === $logName) return $config; |
|
| 53 | } |
||
| 54 | |||
| 55 | 1 | return false; |
|
| 56 | } |
||
| 69 | } |