@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace WShafer\PSR11MonoLog; |
5 | 5 |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace WShafer\PSR11MonoLog\Handler; |
5 | 5 | |
@@ -16,9 +16,9 @@ discard block |
||
16 | 16 | public function __invoke(array $options) |
17 | 17 | { |
18 | 18 | $handler = $this->getHandlerManager()->get($options['handler']); |
19 | - $deduplicationStore = $options['deduplicationStore'] ?? null; |
|
20 | - $deduplicationLevel = (int) ($options['deduplicationLevel'] ?? Logger::ERROR); |
|
21 | - $time = (int) ($options['time'] ?? 60); |
|
19 | + $deduplicationStore = $options['deduplicationStore'] ?? null; |
|
20 | + $deduplicationLevel = (int) ($options['deduplicationLevel'] ?? Logger::ERROR); |
|
21 | + $time = (int) ($options['time'] ?? 60); |
|
22 | 22 | $bubble = (boolean) ($options['bubble'] ?? true); |
23 | 23 | |
24 | 24 | return new DeduplicationHandler( |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace WShafer\PSR11MonoLog\Handler; |
5 | 5 | |
@@ -19,10 +19,10 @@ discard block |
||
19 | 19 | { |
20 | 20 | $handler = $this->getHandlerManager()->get($options['handler']); |
21 | 21 | $activationStrategy = $this->getActivationStrategy($options); |
22 | - $bufferSize = (int) ($options['bufferSize'] ?? 0); |
|
22 | + $bufferSize = (int) ($options['bufferSize'] ?? 0); |
|
23 | 23 | $bubble = (boolean) ($options['bubble'] ?? true); |
24 | 24 | $stopBuffering = (boolean) ($options['stopBuffering'] ?? true); |
25 | - $passthruLevel = $options['passthruLevel'] ?? null; |
|
25 | + $passthruLevel = $options['passthruLevel'] ?? null; |
|
26 | 26 | |
27 | 27 | return new FingersCrossedHandler( |
28 | 28 | $handler, |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace WShafer\PSR11MonoLog\Handler; |
5 | 5 | |
@@ -15,8 +15,8 @@ discard block |
||
15 | 15 | public function __invoke(array $options) |
16 | 16 | { |
17 | 17 | $handler = $this->getHandlerManager()->get($options['handler']); |
18 | - $minLevelOrList = $options['minLevelOrList'] ?? null; |
|
19 | - $maxLevel = $options['maxLevel'] ?? null; |
|
18 | + $minLevelOrList = $options['minLevelOrList'] ?? null; |
|
19 | + $maxLevel = $options['maxLevel'] ?? null; |
|
20 | 20 | $bubble = (boolean) ($options['bubble'] ?? true); |
21 | 21 | |
22 | 22 | return new FilterHandler( |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace WShafer\PSR11MonoLog\Handler; |
5 | 5 | |
@@ -16,8 +16,8 @@ discard block |
||
16 | 16 | public function __invoke(array $options) |
17 | 17 | { |
18 | 18 | $handler = $this->getHandlerManager()->get($options['handler']); |
19 | - $bufferLimit = (int) ($options['bufferLimit'] ?? 0); |
|
20 | - $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
19 | + $bufferLimit = (int) ($options['bufferLimit'] ?? 0); |
|
20 | + $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
21 | 21 | $bubble = (boolean) ($options['bubble'] ?? true); |
22 | 22 | $flushOnOverflow = (boolean) ($options['flushOnOverflow'] ?? true); |
23 | 23 |