| Conditions | 5 | 
| Paths | 2 | 
| Total Lines | 15 | 
| Code Lines | 7 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 7 | 
| CRAP Score | 5 | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php | ||
| 32 | 1 | public function __invoke( | |
| 33 | ContainerInterface $container, | ||
| 34 | string $requestedName, | ||
| 35 | array $options = null | ||
| 36 |     ): ErrorLogHandler { | ||
| 37 | 1 | $options = $options ?? $this->getServiceOptions($container, $requestedName); | |
| 38 | |||
| 39 | /** @var Level|LevelName|LogLevel::* $level */ | ||
| 40 | 1 | $level = isset($options['level']) ? (int)$options['level'] : Logger::DEBUG; | |
| 41 | |||
| 42 | 1 | return new ErrorLogHandler( | |
| 43 | 1 | isset($options['message_type']) ? (int)$options['message_type'] : ErrorLogHandler::OPERATING_SYSTEM, | |
| 44 | $level, | ||
| 45 | 1 | !isset($options['bubble']) || $options['bubble'], | |
| 46 | 1 | isset($options['expand_new_lines']) && $options['expand_new_lines'] | |
| 47 | ); | ||
| 50 |