@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace WShafer\PSR11MonoLog\Formatter; |
5 | 5 |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace WShafer\PSR11MonoLog\Formatter; |
5 | 5 |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace WShafer\PSR11MonoLog\Formatter; |
5 | 5 |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace WShafer\PSR11MonoLog\Handler; |
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\Formatter; |
5 | 5 | |
@@ -10,7 +10,7 @@ discard block |
||
10 | 10 | { |
11 | 11 | public function __invoke(array $options) |
12 | 12 | { |
13 | - $batchMode = (int) ($options['batchMode'] ?? JsonFormatter::BATCH_MODE_JSON); |
|
13 | + $batchMode = (int) ($options['batchMode'] ?? JsonFormatter::BATCH_MODE_JSON); |
|
14 | 14 | $appendNewline = (boolean) ($options['appendNewline'] ?? true); |
15 | 15 | return new JsonFormatter($batchMode, $appendNewline); |
16 | 16 | } |
@@ -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 | - $slackTeam = (string) ($options['slackTeam'] ?? ''); |
|
15 | - $token = (string) ($options['token'] ?? ''); |
|
16 | - $channel = (string) ($options['channel'] ?? ''); |
|
17 | - $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
14 | + $slackTeam = (string) ($options['slackTeam'] ?? ''); |
|
15 | + $token = (string) ($options['token'] ?? ''); |
|
16 | + $channel = (string) ($options['channel'] ?? ''); |
|
17 | + $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
18 | 18 | $bubble = (boolean) ($options['bubble'] ?? true); |
19 | 19 | |
20 | 20 | return new SlackbotHandler( |
@@ -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,11 +11,11 @@ discard block |
||
11 | 11 | { |
12 | 12 | public function __invoke(array $options) |
13 | 13 | { |
14 | - $ident = (string) ($options['ident'] ?? ''); |
|
15 | - $facility = (int) ($options['facility'] ?? LOG_USER); |
|
16 | - $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
14 | + $ident = (string) ($options['ident'] ?? ''); |
|
15 | + $facility = (int) ($options['facility'] ?? LOG_USER); |
|
16 | + $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
17 | 17 | $bubble = (boolean) ($options['bubble'] ?? true); |
18 | - $logOpts = (int) ($options['logOpts'] ?? LOG_PID); |
|
18 | + $logOpts = (int) ($options['logOpts'] ?? LOG_PID); |
|
19 | 19 | |
20 | 20 | return new SyslogHandler($ident, $facility, $level, $bubble, $logOpts); |
21 | 21 | } |
@@ -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 | - $apiToken = (string) ($options['apiToken'] ?? ''); |
|
15 | - $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
14 | + $apiToken = (string) ($options['apiToken'] ?? ''); |
|
15 | + $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
16 | 16 | $bubble = (boolean) ($options['bubble'] ?? true); |
17 | 17 | |
18 | 18 | return new FlowdockHandler( |
@@ -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 | - $messageType = (int) ($options['messageType'] ?? ErrorLogHandler::OPERATING_SYSTEM); |
|
15 | - $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
14 | + $messageType = (int) ($options['messageType'] ?? ErrorLogHandler::OPERATING_SYSTEM); |
|
15 | + $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
16 | 16 | $bubble = (boolean) ($options['bubble'] ?? true); |
17 | 17 | $expandNewlines = (boolean) ($options['expandNewlines'] ?? false); |
18 | 18 |