| Conditions | 5 | 
| Paths | 1 | 
| Total Lines | 12 | 
| Code Lines | 6 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php | ||
| 28 | public function __invoke( | ||
| 29 | ContainerInterface $container, | ||
| 30 | string $requestedName, | ||
| 31 | array $options = null | ||
| 32 |     ): ErrorLogHandler { | ||
| 33 | $options = $options ?? $this->getServiceOptions($container, $requestedName); | ||
| 34 | |||
| 35 | return new ErrorLogHandler( | ||
| 36 | isset($options['message_type']) ? (int)$options['message_type'] : ErrorLogHandler::OPERATING_SYSTEM, | ||
| 37 | isset($options['level']) ? (int)$options['level'] : Logger::DEBUG, | ||
| 38 | isset($options['bubble']) ? (bool)$options['bubble'] : true, | ||
| 39 | isset($options['expand_new_lines']) ? (bool)$options['expand_new_lines'] : false | ||
| 40 | ); | ||
| 43 |