Completed
Push — master ( 537349...e26b4a )
by Westin
11:04
created

FallbackGroupHandlerFactory::__invoke()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 10

Duplication

Lines 10
Ratio 100 %

Importance

Changes 0
Metric Value
dl 10
loc 10
rs 9.9332
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
declare(strict_types=1);
3
4
namespace WShafer\PSR11MonoLog\Handler;
5
6
use Monolog\Handler\FallbackGroupHandler;
7
8 View Code Duplication
class FallbackGroupHandlerFactory extends GroupHandlerFactory
9
{
10
    public function __invoke(array $options)
11
    {
12
        $handlers = $this->getHandlers($options);
13
        $bubble   = (boolean) ($options['bubble'] ?? true);
14
15
        return new FallbackGroupHandler(
16
            $handlers,
17
            $bubble
18
        );
19
    }
20
}
21