@@ -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 | |
@@ -11,9 +11,9 @@ discard block |
||
11 | 11 | { |
12 | 12 | public function __invoke(array $options) |
13 | 13 | { |
14 | - $eventName = (string) ($options['eventName'] ?? ''); |
|
15 | - $secretKey = (string) ($options['secretKey'] ?? ''); |
|
16 | - $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
14 | + $eventName = (string) ($options['eventName'] ?? ''); |
|
15 | + $secretKey = (string) ($options['secretKey'] ?? ''); |
|
16 | + $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
17 | 17 | $bubble = (boolean) ($options['bubble'] ?? true); |
18 | 18 | |
19 | 19 | return new IFTTTHandler( |
@@ -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 | |
@@ -11,16 +11,16 @@ discard block |
||
11 | 11 | { |
12 | 12 | public function __invoke(array $options) |
13 | 13 | { |
14 | - $token = (string) ($options['token'] ?? ''); |
|
15 | - $channel = (string) ($options['channel'] ?? ''); |
|
16 | - $userName = (string) ($options['userName'] ?? ''); |
|
14 | + $token = (string) ($options['token'] ?? ''); |
|
15 | + $channel = (string) ($options['channel'] ?? ''); |
|
16 | + $userName = (string) ($options['userName'] ?? ''); |
|
17 | 17 | $useAttachment = (boolean) ($options['useAttachment'] ?? true); |
18 | - $iconEmoji = (string) ($options['iconEmoji'] ?? ''); |
|
19 | - $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
18 | + $iconEmoji = (string) ($options['iconEmoji'] ?? ''); |
|
19 | + $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
20 | 20 | $bubble = (boolean) ($options['bubble'] ?? true); |
21 | 21 | $useShortAttachment = (boolean) ($options['useShortAttachment'] ?? false); |
22 | 22 | $includeContext = (boolean) ($options['includeContextAndExtra'] ?? false); |
23 | - $excludeFields = (array) ($options['excludeFields'] ?? []); |
|
23 | + $excludeFields = (array) ($options['excludeFields'] ?? []); |
|
24 | 24 | |
25 | 25 | return new SlackHandler( |
26 | 26 | $token, |
@@ -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 | |
@@ -11,16 +11,16 @@ discard block |
||
11 | 11 | { |
12 | 12 | public function __invoke(array $options) |
13 | 13 | { |
14 | - $webhookUrl = (string) ($options['webhookUrl'] ?? ''); |
|
15 | - $channel = (string) ($options['channel'] ?? ''); |
|
16 | - $userName = (string) ($options['userName'] ?? ''); |
|
14 | + $webhookUrl = (string) ($options['webhookUrl'] ?? ''); |
|
15 | + $channel = (string) ($options['channel'] ?? ''); |
|
16 | + $userName = (string) ($options['userName'] ?? ''); |
|
17 | 17 | $useAttachment = (boolean) ($options['useAttachment'] ?? true); |
18 | - $iconEmoji = (string) ($options['iconEmoji'] ?? ''); |
|
18 | + $iconEmoji = (string) ($options['iconEmoji'] ?? ''); |
|
19 | 19 | $useShortAttachment = (boolean) ($options['useShortAttachment'] ?? false); |
20 | 20 | $includeContext = (boolean) ($options['includeContextAndExtra'] ?? false); |
21 | - $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
21 | + $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
22 | 22 | $bubble = (boolean) ($options['bubble'] ?? true); |
23 | - $excludeFields = (array) ($options['excludeFields'] ?? []); |
|
23 | + $excludeFields = (array) ($options['excludeFields'] ?? []); |
|
24 | 24 | |
25 | 25 | return new SlackWebhookHandler( |
26 | 26 | $webhookUrl, |
@@ -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 | |
@@ -12,9 +12,9 @@ discard block |
||
12 | 12 | |
13 | 13 | public function __invoke(array $options) |
14 | 14 | { |
15 | - $apiKey = (string) ($options['apiKey'] ?? ''); |
|
15 | + $apiKey = (string) ($options['apiKey'] ?? ''); |
|
16 | 16 | $message = $this->getSwiftMessage($options); |
17 | - $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
17 | + $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
18 | 18 | $bubble = (boolean) ($options['bubble'] ?? true); |
19 | 19 | |
20 | 20 | return new MandrillHandler( |
@@ -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 | |
@@ -11,10 +11,10 @@ discard block |
||
11 | 11 | { |
12 | 12 | public function __invoke(array $options) |
13 | 13 | { |
14 | - $connectionString = (string) ($options['connectionString'] ?? ''); |
|
15 | - $timeout = (string) ($options['timeout'] ?? ''); |
|
16 | - $writeTimeout = (int) ($options['writeTimeout'] ?? ''); |
|
17 | - $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
14 | + $connectionString = (string) ($options['connectionString'] ?? ''); |
|
15 | + $timeout = (string) ($options['timeout'] ?? ''); |
|
16 | + $writeTimeout = (int) ($options['writeTimeout'] ?? ''); |
|
17 | + $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
18 | 18 | $bubble = (boolean) ($options['bubble'] ?? true); |
19 | 19 | |
20 | 20 | $handler = new SocketHandler( |
@@ -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,8 +19,8 @@ discard block |
||
19 | 19 | public function __invoke(array $options) |
20 | 20 | { |
21 | 21 | $exchange = $this->getAmqpExchange($options); |
22 | - $exchangeName = (string) ($options['exchangeName'] ?? 'log'); |
|
23 | - $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
22 | + $exchangeName = (string) ($options['exchangeName'] ?? 'log'); |
|
23 | + $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
24 | 24 | $bubble = (boolean) ($options['bubble'] ?? true); |
25 | 25 | |
26 | 26 | return new AmqpHandler( |
@@ -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,7 +19,7 @@ discard block |
||
19 | 19 | public function __invoke(array $options) |
20 | 20 | { |
21 | 21 | $publisher = $this->getPublisher($options); |
22 | - $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
22 | + $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
23 | 23 | $bubble = (boolean) ($options['bubble'] ?? true); |
24 | 24 | |
25 | 25 | return new GelfHandler( |
@@ -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 | |
@@ -11,8 +11,8 @@ discard block |
||
11 | 11 | { |
12 | 12 | public function __invoke(array $options) |
13 | 13 | { |
14 | - $url = (string) ($options['url'] ?? ''); |
|
15 | - $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
14 | + $url = (string) ($options['url'] ?? ''); |
|
15 | + $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
16 | 16 | $bubble = (boolean) ($options['bubble'] ?? true); |
17 | 17 | |
18 | 18 | return new CubeHandler( |
@@ -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 | |
@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | public function __invoke(array $options) |
19 | 19 | { |
20 | 20 | $client = $this->getClient($options); |
21 | - $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
21 | + $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
22 | 22 | $bubble = (boolean) ($options['bubble'] ?? true); |
23 | 23 | |
24 | 24 | return new RavenHandler( |