@@ -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,12 +11,12 @@ discard block |
||
11 | 11 | { |
12 | 12 | public function __invoke(array $options) |
13 | 13 | { |
14 | - $toEmail = (array) ($options['to'] ?? []); |
|
15 | - $subject = (string) ($options['subject'] ?? true); |
|
16 | - $fromEmail = (string) ($options['from'] ?? ''); |
|
17 | - $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
14 | + $toEmail = (array) ($options['to'] ?? []); |
|
15 | + $subject = (string) ($options['subject'] ?? true); |
|
16 | + $fromEmail = (string) ($options['from'] ?? ''); |
|
17 | + $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
18 | 18 | $bubble = (boolean) ($options['bubble'] ?? true); |
19 | - $maxColumnWidth = (int) ($options['maxColumnWidth'] ?? 70); |
|
19 | + $maxColumnWidth = (int) ($options['maxColumnWidth'] ?? 70); |
|
20 | 20 | |
21 | 21 | return new NativeMailerHandler($toEmail, $subject, $fromEmail, $level, $bubble, $maxColumnWidth); |
22 | 22 | } |
@@ -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,15 +11,15 @@ discard block |
||
11 | 11 | { |
12 | 12 | public function __invoke(array $options) |
13 | 13 | { |
14 | - $token = (string) ($options['token'] ?? ''); |
|
15 | - $room = (string) ($options['room'] ?? ''); |
|
16 | - $name = (string) ($options['name'] ?? 'Monolog'); |
|
14 | + $token = (string) ($options['token'] ?? ''); |
|
15 | + $room = (string) ($options['room'] ?? ''); |
|
16 | + $name = (string) ($options['name'] ?? 'Monolog'); |
|
17 | 17 | $notify = (boolean) ($options['notify'] ?? false); |
18 | - $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
18 | + $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
19 | 19 | $bubble = (boolean) ($options['bubble'] ?? true); |
20 | 20 | $useSSL = (boolean) ($options['useSSL'] ?? true); |
21 | - $format = (string) ($options['format'] ?? 'text'); |
|
22 | - $host = (string) ($options['host'] ?? 'api.hipchat.com'); |
|
21 | + $format = (string) ($options['format'] ?? 'text'); |
|
22 | + $host = (string) ($options['host'] ?? 'api.hipchat.com'); |
|
23 | 23 | |
24 | 24 | return new HipChatHandler( |
25 | 25 | $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,8 +11,8 @@ discard block |
||
11 | 11 | { |
12 | 12 | public function __invoke(array $options) |
13 | 13 | { |
14 | - $token = (string) ($options['token'] ?? ''); |
|
15 | - $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
14 | + $token = (string) ($options['token'] ?? ''); |
|
15 | + $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
16 | 16 | $bubble = (boolean) ($options['bubble'] ?? true); |
17 | 17 | |
18 | 18 | return new FleepHookHandler( |
@@ -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 | |
@@ -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 | |
@@ -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 | |
@@ -14,7 +14,7 @@ discard block |
||
14 | 14 | { |
15 | 15 | public function __invoke(array $options) |
16 | 16 | { |
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 ZendMonitorHandler( |
@@ -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 | - $token = (string) ($options['token'] ?? ''); |
|
15 | - $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
14 | + $token = (string) ($options['token'] ?? ''); |
|
15 | + $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
16 | 16 | $bubble = (boolean) ($options['bubble'] ?? true); |
17 | 17 | |
18 | 18 | return new LogglyHandler( |