| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 2 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 3 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 29 | 4 | public function createInjection( |
|
| 30 | \ReflectionClass $class, |
||
| 31 | \ReflectionParameter|null|string $context = null, |
||
| 32 | ): LoggerInterface { |
||
| 33 | 4 | $channel = \is_object($context) ? $this->extractChannelAttribute($context) : null; |
|
| 34 | |||
| 35 | // always return default logger as injection |
||
| 36 | 4 | return $this->factory->getLogger($channel); |
|
|
|
|||
| 37 | } |
||
| 50 |