| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 38 | 30 | private function getLoggerOrThrowException(ContainerInterface $container, $logName) |
|
| 39 | { |
||
| 40 | 30 | $logger = $this->getServiceOrClassObject($container, $logName); |
|
| 41 | |||
| 42 | 30 | if (!$logger instanceof LoggerInterface) { |
|
| 43 | 2 | throw new ServiceNotCreatedException("There is no '$logName' log"); |
|
| 44 | } |
||
| 45 | 28 | return $logger; |
|
| 46 | } |
||
| 47 | |||
| 55 |